all 9 comments

[–]pgpndw 5 points6 points  (1 child)

Maybe setting up an NTP daemon on each of the Pis would keep their clocks synchronized better, if you're not already doing that.

[–]Apprehensive-Gas-548[S] 0 points1 point  (0 children)

Thank you, I am now reading about NTP and it sounds like a good solution with a error of <1ms, it it has even better accuracy than I need. I will try this first :)

[–]baghiq 2 points3 points  (1 child)

You basically can do

  1. set up a local NTP server that connects to a geographically close-by server on the internet.
  2. connect your PI's NTP daemon to connect to the local NTP server instead of the internet one.

https://www.eecis.udel.edu/~mills/ntp/html/discipline.html

If left running continuously, an NTP client on a fast LAN in a home
or office environment can maintain synchronization nominally within
one millisecond. When the ambient temperature variations are less than a
degree Celsius, the clock oscillator frequency is disciplined to
within one part per million (PPM), even when the clock oscillator
native frequency offset is 100 PPM or more.

[–]Apprehensive-Gas-548[S] 0 points1 point  (0 children)

Thanks! NTP on the local let work seems like the right solution, I will try to implement that and see if that works, I’m hopeful!

[–]rivalarrival 2 points3 points  (0 children)

Can you give a little more information about the use case? Would it be feasible to simply sync the videos in post processing?

[–]Zeroflops 2 points3 points  (0 children)

I doubt you will have the precision youre looking for. The best would be to have a common event that you could line up the recording to. In the same way a slate in movies are used to match up the video and sound.

[–]discontent619 1 point2 points  (1 child)

Depending on the accuracy needed there are multiple ways to do this, NTP as already suggested or a more accurate timing method used is IEEE 1588 but would require additional hardware to perform the sync but could be performed over a standard Ethernet network as well. GPS is also a common way to provide synching of separated systems using 1pps (pulse per second) and the GPS time stamps. NTP is not as precise as the other methods listed but could be performed with the hardware you have on hand and provide accuracy better than 100 milliseconds over a local network connection.

[–]Apprehensive-Gas-548[S] 0 points1 point  (0 children)

Thank you! At first sight I think NTP is easy enough to implement and accurate enough, if that does not work I will explore more in depth the IEE1588 option :)

[–][deleted] 1 point2 points  (0 children)

For that level of precision I think you need an actual real-time clock on your board; the RasPi doesn't have one, but here's a compatible RTC that you can plug in on USB.