Git Product home page Git Product logo

Comments (4)

joan2937 avatar joan2937 commented on September 26, 2024

Probably.

I use the following type of code

t1=0;
t2=10;
while ((t2-t1) > 2)
{
   t1 = gpioTick();
   c = time_time();
   t2 = gpioTick();
}

That will show the correspondence between Linux time and the system tick to within a couple of microseconds.

from pigpio.

nachoplus avatar nachoplus commented on September 26, 2024

I'll try. Thank you Joan2937!

Also I am thinking about to take advantange of the PPS signal reading it with pigpio lib in order to get the ticks from the start of each seconds.

Is pigpio compatible with gpio_pps kernel module? I mean it is safe to read PPS signal with pigpio without disturbing it?

Nacho

from pigpio.

joan2937 avatar joan2937 commented on September 26, 2024

Yes, you can use pigpio to monitor any GPIO, regardless of whether they have been set up as inputs or outputs. Note that the PPS signal will have to be 5 µs or greater in width to be seen at the default pigpio sampling rate of 5 µs.

from pigpio.

nachoplus avatar nachoplus commented on September 26, 2024

Hi,
Finally everything work as as expected and I concluded my project. A timestamping raspi used to get the picture time with precision below 5micros form UTC! I use for astrophoto of space junk. If you feel curiosity see https://github.com/nachoplus/cronoStamper The docs are on the way..

Thanks!

from pigpio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.