The most accurate Raspberry Pi atomic clock IN THE WORLD!

  Переглядів 160,109

Jeff Geerling

Jeff Geerling

День тому

Will the fabric of space-time be split if I plug this highly-accurate Rubidium-oscillator-backed Time card into the Raspberry Pi?
Probably not, but we'll test the driver on the Pi, probably recompile a kernel or two, and learn about Linux PTP networking and GNSS-based timekeeping along the way!
Mentioned in this video (some links are affiliate links):
- Linux recompile shirt: redshirtjeff.com/listing/linu...
- GitHub issue for CM4 PTP support: github.com/raspberrypi/linux/...
- PCI x1 to x16 adapter: amzn.to/32oz9ou
- Time Card on the Pi PCIe Database: pipci.jeffgeerling.com/cards_...
- TechTechPotato video on Time Card: • Democratizing Time: Ha...
- LTT video on Time Card: • Why is this PCIe Card ...
- Technology Connections turn signal video: • Why it's not possible ...
Support me on Patreon: / geerlingguy
Sponsor me on GitHub: github.com/sponsors/geerlingguy
Merch: redshirtjeff.com
#RaspberryPi #TimeCard #OpenComputeProject
Contents:
00:00 - Meet the Time Card
01:16 - Who needs a nanosecond?
03:49 - Board tour
05:18 - Plugging it in
05:56 - Time Card driver
07:12 - PTP on the Pi
09:30 - There will be more...
10:44 - Outtro and outtakes

КОМЕНТАРІ: 487
@deefdragon
@deefdragon 2 роки тому
The technology connections quip.... take your darn like. seriously tho, I cant wait for a video showing off two computers with the EXACT same time using that hardware standard
@rhekman
@rhekman 2 роки тому
To demonstrate PTP across multiple computers, through the magic of buying two of them.
@vincentguttmann2231
@vincentguttmann2231 2 роки тому
@@rhekman And through the magic of buying three of them, I have an already taken apart one right here!
@ethans4783
@ethans4783 2 роки тому
stole my comment! I'm super excited to see what this card can do for us in the mass market
@arjdroid
@arjdroid 2 роки тому
A Technology Connections Connection?
@user-ir2fu4cx6p
@user-ir2fu4cx6p 2 роки тому
What's about connections latency,
@rougenaxela
@rougenaxela 2 роки тому
1:13 Okay, I just have to call this out. The "> 200,000x more accurate!" card here implying that a higher frequency makes it more accurate (or that these two frequencies even related to each other in a meaningful way) is **highly** misleading, straight up wrong even. Higher frequency does not mean better, not in the slightest. You can have a 1THz oscillator that is absolute garbage at keeping time. What matters for an oscillator is it's tolerance, stability, and phase noise. In this case since the oscillator is GPS-steered, tolerance matters slightly less, but stability and phase noise are still critical, and this is what something like a rubidium oscillator excels at, but it has nothing to do with how high a frequency it is, it has to do with how stable that frequency is, how little it shifts due to both environmental conditions and random fluctuations. Now, there are technical reasons related to phase-locked loops (which is used to get a different frequency out) why an underlying frequency standard should be reasonably high frequency, but that's not what sets quartz and rubidium oscillators apart from eachother, you can get quartz crystals tuned for the GHz region. What sets it apart is that a rubidium oscillator depends on atomic scale properties of electron energy levels in individual rubidium atoms which are relatively fundamental and unchanging, rather than depending on the relatively 'macroscopic' properties of a chunk of quartz crystal as a whole which depend on physical dimensions and environmental conditions.
@JeffGeerling
@JeffGeerling 2 роки тому
This is true. Indeed in running the numbers after I had recorded my script, I realized the accuracy of the rubidium clock is actually more like 300,000x better than oven-controlled quartz-which shows the ~200,000x difference in frequency isn't the reason for the better accuracy. But in these videos, I can't splice in anything or even add annotations. So I'll just hit the heart on this comment, leave this reply, and hope that people see it :P
@vincentguttmann2231
@vincentguttmann2231 2 роки тому
Since you seem to know a thing or two about oscillators, you might be able to answer a question I've been having ever since I heard of this project (and the price for the rubidium clock): What is the main cause of drift in quartz clocks? Is it temperature? Or manufacturing tolerance?
@tuppyglossop222
@tuppyglossop222 2 роки тому
@@JeffGeerling Don’t worry Jeff, I saw it...
@771racing
@771racing 2 роки тому
@@vincentguttmann2231 Typically temp is the primary offender. An old school method of improving an NTP server's perf was to purposely insulate it a bit to force the temp up, as holding an elevated temp stably is slightly easier than a consistent cool temp. Or you could move up to an ovenized quartz oscillator, which as the name implies does the same thing for just the oscillator itself.
@vincentguttmann2231
@vincentguttmann2231 2 роки тому
@@771racing Hmm. Now I'm thinking of how to make a PCB sandwich for a quartz oscillator and temperature sensor. It won't be as stable as a properly ovenized quartz at like 70 °C, but with no big fluctuations it should be better than a room temp quartz.
@keithmiller9665
@keithmiller9665 2 роки тому
You compile the Linux kernel so often it would be interesting for a video of how to do it. Just a suggestion.
@abyagowi7
@abyagowi7 2 роки тому
I second it. Jeff, I think it would be great to have a video about it.
@inventalone4339
@inventalone4339 2 роки тому
Yes please,sir do a video on this.
@Anthony-rp9rg
@Anthony-rp9rg 2 роки тому
@Keith Miller He must have already made the video: ukposts.info/have/v-deo/n3ODrqSeboKksn0.html
@SebastianScholle
@SebastianScholle 2 роки тому
i'm onboard for that video!
@208Concepts
@208Concepts 2 роки тому
Compiling the straight kernel isn't too bad... Cross compiling for different arches is where it gets fun 🤣
@famitory
@famitory 2 роки тому
love when open source projects like this come out, not because of the projects themselves, but because it makes the appliances they replace drop in price on the used market. finally, an evertz msc5700 for my very own home
@jrlx86
@jrlx86 2 роки тому
Quite. Pretty sure the timecard that Jeff has is something developed by Facebook engineers. It's open source but to buy it built is around $1k used from memory. Of course, I don't have my own atomic clock so I don't remember when I read this info, if ever. - EDIT: Just watched the video, good to know I'm part of this universe and not a parallel one.
@abyagowi7
@abyagowi7 2 роки тому
@@jrlx86 I am working with several vendors to make the card (just the card with the atomic clock, SOM and GNSS) for about $200. Then you can put the parts based on need. Stay tuned
@perwestermark8920
@perwestermark8920 2 роки тому
I manage quite fine with just a uBlox. Given that it listens on 4 different satellite networks, it would take a GNSS jammer or a broken antenna for me to lose track of satellites. And the ubx protocol will happily show the confidence error of the emitted time, while the 1-second pulse avoids the latency from sending out the time data over a serial interface. This is the pulse that would be used for IEEE 1588.
@mikeiver
@mikeiver 2 роки тому
Why not just bur a card from a decommissioned cellular site. They are already aged and easy to interface to. They have a really good GPS receiver built in for clock sync and usually a TCXO or a OCXO. The one I have also has a pair of outputs, a 2Hz and a 10MHz. Interface is via RS232. Frequency stability without a GPS lock nudging the XO is better than one cellular frame in 24 hours. Best part is that they are dirt cheap. Far less than $100.00 when I bought mine.
@MarcoGPUtuber
@MarcoGPUtuber 2 роки тому
An atomic clock? It's everything I've ever wanted! It will finally ensure I am on time for work. I always end up 1 ns late. Got written up for it too!
@BenCos2018
@BenCos2018 2 роки тому
lmao
@mattparker9726
@mattparker9726 2 роки тому
this card is doing the rounds for sure, just watched LTTs vod in it.
@leonn3k
@leonn3k 2 роки тому
Jeff and Raspberry Pi were the first things I thought of when I watched that video.
@ccflan
@ccflan 2 роки тому
I guess that jeff speaks more technically in details more than ltt, i love when he include kernels compile sin hus talks
@Wordsnwood
@Wordsnwood 2 роки тому
You're making me nostalgic, Jeff. Setting up NTP / XNTP on our network was my first duty wayyyy back when I got my first job as a sysadmin. Stratum 3 or maybe 2 was about as close as I got, though. Everybody needs accurate time, but they don't realize it. Also +1 for the Technology Connections comment. Very meta.
@careytschritter1108
@careytschritter1108 2 роки тому
Please don’t let Red shirt Jeff near the atomic elements. We would risk too much to the North American continent.
@JeffGeerling
@JeffGeerling 2 роки тому
I got a call from the EPA yesterday... they said something about a superfund?
@zombie_pigdragon
@zombie_pigdragon 2 роки тому
@@JeffGeerling Hey, that sounds like a good thing! You can get Red Shirt some toys of his own, with that kind of funds!
@JeffGeerling
@JeffGeerling 2 роки тому
@@zombie_pigdragon Oh, so that's how it works! Let me go tell Red Shirt Jeff he's good to go!
@steveswartz1875
@steveswartz1875 2 роки тому
Sorry to say Rb has two common isotopes neither of which is particularly dangerous. A typical Rubidium cell in a miniature clock probably les than a milligram of the stuff anyway. The pure metal is quite reactive, more than sodium, or potassium .
@richardkicklighter8280
@richardkicklighter8280 2 роки тому
Jeff, you never fail to amaze me. I'll be looking for more on this. Great subject.
@muddyexport5639
@muddyexport5639 2 роки тому
Good job. As usual, rewarding new vid notification. Always interesting, topical, and "in the end -- funny". Thanks! Keep on keeping on.
@MarcusPHagen
@MarcusPHagen 2 роки тому
Once again, Jeff, you provide a thought-provoking video which has me spending even more time reading through the debates & information in the comments. I'm grateful for the level of engagement that you have with your viewers, as well as as the way in which you accept corrections when additional information is presented by others. Yours is one of my favorite channels, providing both information & humor. I wish you a long & successful run.
@JeffGeerling
@JeffGeerling 2 роки тому
Thank you!
@ur1friend437
@ur1friend437 2 роки тому
Your humor and great work is, in my opinion, the best “family friendly tech channel”. I am eternally grateful for all your great work. I will keep sending you, and love ones, endless great wishes and blessings.🙏🏻
@CaioVinicius-nc3cy
@CaioVinicius-nc3cy 2 роки тому
Very nice Jeff, as always. Thanks for the video.
@Itsdirtnaptime
@Itsdirtnaptime 2 роки тому
I love the Technology Connections reference. It is great when people reference other channels, especially when they aren't in the same category of films.
@JeffGeerling
@JeffGeerling 2 роки тому
We are all in the category of "trying to satisfy our insatiable curiosities" :)
@Itsdirtnaptime
@Itsdirtnaptime 2 роки тому
@@JeffGeerling that is true but uh. You are on raspberry pi's and he was on a 6 part lantern series. 🤣 So I am still sticking to different categories. But as for the passion brought into your specific areas, I agree that is the same category. You both do create unique and very intriguing videos.
@JeffGeerling
@JeffGeerling 2 роки тому
@@Itsdirtnaptime Well now, he hasn't yet done a 6-part series on powering Raspberry Pis off the heat generated by portable lanterns, has he? Sounds like it's time for a collab! :D
@Itsdirtnaptime
@Itsdirtnaptime 2 роки тому
@@JeffGeerling that would be great. He can comes up with the fuel and wick types and the concept of how to control the fuel being supplied. You do the technical side to control numerous lanterns across different states that turn on exactly at the same time and control fuel delivery. Good way to put that $700 clock chip to work. 😂🤣😂🤣 Internet lanterns. 😳😳 old meets new. Would that be considered a Technological Connection?
@vincei4252
@vincei4252 2 роки тому
The Rubidium unit on the card generates a 10MHz TTL clock. I have working Symmetricom Rubidium clocks that were bought a fraction of the $700 for the Microsemi unit so I think I'll go head and build one of these and connect it up to my existing 10Mhz TTL reference. Thanks for sharing, Jeff. Oh, and this is the best coverage of this device I've seen to date.
@deefdragon
@deefdragon 2 роки тому
it managed to strike the good middle ground complexity wise. Ian was for to indepth, while linus was basically a quick summary and the obligatory pointless "play games with it"
@JeffGeerling
@JeffGeerling 2 роки тому
Linus definitely has the monopoly on 'sexy video shots of the card' though. I'd kill to have more than 12' sq ft for my entire media production and test bench setup :D
@dave_dennis
@dave_dennis 2 роки тому
Vince, I didn’t follow exactly. Does the card have a 10 MHz TTL output on one of the SMA connectors?
@vincei4252
@vincei4252 2 роки тому
@@dave_dennis Hi, that I'm not sure - I need to look at the full circuit diagram in Altiium, however, the rubidium clock source that is soldered to the board has a 10Mhz TTL clock output. What I meant is that rather than fork over $700 I can jury-rig a connector and cable from my larger rubidium sources (also made by symmetricom, now Microsemi?) and solder the cable to the clock-in on the pcie card. The source they use also has rs232 which mine does too but it'd lay bets that whatever is exchanged over that serial interface is the same protocol. I remember being able to open a putty rs232 session to my rubidium and query the device for status, etc.
@JeffGeerling
@JeffGeerling 2 роки тому
@@dave_dennis According to the specs, it has "1PPS / 10MHz SMA output" & "1PPS / 10MHz SMA input" - see github.com/opencomputeproject/Time-Appliance-Project/tree/master/Time-Card#interfaces I haven't dug into it yet, but it looks like those interfaces go through the FPGA, and are not *directly* attached to the Rb source.
@eesachariwala2145
@eesachariwala2145 Рік тому
Thank u sm I rlly need this video, I’m working on an amateur global radio interferometer and I needed a way to integrate the atomic clock mechanism for data recording… ur a lifesaver
@ed.puckett
@ed.puckett 2 роки тому
Another typically informative video! Thank you!
@jockinafrock
@jockinafrock 2 роки тому
I work as a tech support field engineer for a major telecoms provider. Our entire network is synchronised to 3 Caesium clocks, cross referenced to each other and with GNSS receivers. We distribute this sync to our customers, most of whom have no idea of the ramifications. However we have one customer who are halfway through migrating their entire platform from TDM (i.e. E1 2Mbps circuits), to Ethernet. Because of the mixed technologies, their services are critically sensitive to clock jitter, and we are spending a fortune in analysing, adapting and managing their circuits to reduce these issues. I have been using Symmetricom Rubidium / GNSS test equipment as reference clocks to monitor their circuits, and the tolerance levels are so miniscule. Great video.
@niklasxl
@niklasxl 2 роки тому
When i saw Linus and Ians viodes i was think if it was possible to run it on the raspi and i am happy to see that you did :D looking forward to more videos about time :D
@ImprovisedExpletiveDevice
@ImprovisedExpletiveDevice 2 роки тому
That's pretty cool. I just picked up an HP5065A, an old school Rubidium frequency standard. Lot of cool things you can do with a super accurate clock.
@TechTechPotato
@TechTechPotato 2 роки тому
11:08 Loved it!
@stefandriesner5026
@stefandriesner5026 2 роки тому
Already gave you a like, but the Pirates! reference earned it all by itself.
@IstvanNagy86
@IstvanNagy86 2 роки тому
So this is the third video I watch about this time card, yet you've added a ton of new info which I was not aware of. Like how Linux identifies the card, or that PTP requires hardware support on the network interface to work. I got a bit more excited about the possibilities this card offers. I was stuck in my head thinking on the database level only, that you can organize transactions in such way that you can essentially use optimistic locking all the time and non of them will collide. As a developer I thought "yeah, that's cool", but it's the more practical use cases which opened up my eyes. I'm really looking forward for the next video in this topic :) Also, I was thinking the other day about making a GPS based NTP time server on my network from a Pi, because "I can"(tm). GPS radios are not that expensive now. That could also be a good intro video to network time services. Shame on me, I never had the urge to look up how even NTP synchronization work, and PTP was completly unknown to me before this card. But it's an interesting topic.
@IstvanNagy86
@IstvanNagy86 2 роки тому
Thanks for the heart Jeff by the way. But one of the typos was getting on my nerves and editing a "hearted" comment makes YT remove the heart. Well.. I'm now heartless :D
@ezzeldin101
@ezzeldin101 2 роки тому
Dude your videos are REALLY... REALLYYYY awesome
@dangeist2899
@dangeist2899 2 роки тому
Nice video on the Rb + PTP + CM4 setup. Looking forward to support for the HW timestamp in Broadcom chipset. Although it's not as a sexy as the "atomic clock" rubidium setup, it might be nice to do a quick build on the CM4 with a normal GPS HAT +quartz RTC setup. It could still give you microsecond-level accuracy and with chrony's partial hardware timestamping support would be a quite capable NTP/PTP source for slightly lower accuracy requirements (like homelans :) )
@thecorley
@thecorley 2 роки тому
When I got to my first submarine, we used 2 cesium clocks to provide reference signals to most of the equipment. The Cesium clocks weighed about 75 to 100 pounds and we had to take them to get calibrated every 6 months. They had a battery backup that lasted about 20 minutes, so we had to get them to the shop quick. On my last submarine we used a rubidium clock. Smaller and cheaper is better. We could sync it up with GPS ever few days to make sure it stayed accurate.
@seangraves3509
@seangraves3509 2 роки тому
Wow there I thought having just got my RPi4 being an NTP server was great a time piece ... I do hope that card does not glow in the dark ;-) Nice video Jeff 👍
@johngangemi1361
@johngangemi1361 Рік тому
Accurate time is also important in electrical power networks and telecommunications. Great video.
@trelauney
@trelauney 2 роки тому
I was waiting for this. And UKposts waited a day more to show it to me.
@IamYuto
@IamYuto 2 роки тому
It's always nice to see you giving a shoutout to small content creators like Linus.
@JeffGeerling
@JeffGeerling 2 роки тому
Gotta help promote those smaller channels! :D
@mitchellmnr
@mitchellmnr 2 роки тому
The puns are timeless :/
@royk7712
@royk7712 2 роки тому
Stop, get some help
@mitchellmnr
@mitchellmnr 2 роки тому
@@royk7712 You cannot stop time ...
@CristianConsonni
@CristianConsonni 2 роки тому
@Mitchell R BA DUM TISS, sir
@comicsansgreenkirby
@comicsansgreenkirby 2 роки тому
* sighs in exasperation *
@matuzaato
@matuzaato 2 роки тому
This piece of hardware is sooo cool!
@DanDrown
@DanDrown 2 роки тому
Thank you for the video, I'm excited to see what you can do with this hardware. I have a few responses to your video: - The rubidium clock's accuracy is not based on it running at a higher frequency than quartz, but rather a more stable frequency. Temperature changes cause quartz crystals to change frequency more dramatically than rubidium - The 32khz crystal runs the real time clock (RTC), which can keep time between reboots. The RTC is typically ignored on the pi because it does not have a battery backup for the RTC, so the program fake-hwclock is used instead. The main system time comes from a counter in the CPU on the pi (driver is named "arch_sys_counter") which is driven at 54MHz - NTP can use hardware timestamping as well, and can reach microsecond to hundreds of nanosecond levels of sync in proper conditions
@JeffGeerling
@JeffGeerling 2 роки тому
I shall consider myself educated! To be honest, prior to this project I've only worked with NTP and only really cared about millisecond-level resolution. Though that darned Chicago server has made me more interested in better holdover accuracy.
@DanDrown
@DanDrown 2 роки тому
@@JeffGeerling due to denial of service attacks, it's been popular by service providers to block or rate limit UDP in general or NTP in specific. This could be what happened to your Chicago server. I know Linode is blocking IPv4 NTP outbound, but IPv6 is allowed.
@JeffGeerling
@JeffGeerling 2 роки тому
@@DanDrown That could very well be the problem.
@charlesgantz5865
@charlesgantz5865 2 роки тому
Also, as I recall, while the rubidium clock frequency is very stable, its phase noise isn't very good. Crystal oscillators, on the other hand, have frequencies that aren't very stable but have very good phase noise characteristics. That is why the rubidium clock is used, through a phase lock loop or some other mechanism, to maintain the crystal frequency. Then the crystal output will be highly stable in frequency as well as have excellent phase noise.
@ghostdog0424
@ghostdog0424 Рік тому
3:30 Many time standards (at least in my grandfather's collection) are 2-3U rack mount chassis, with about a quarter to a third of that space being the cesium beam tube in its high-vacuum housing and oven. The size difference is truly dramatic.
@hikaru-live
@hikaru-live 2 роки тому
There is a Dallas DS3231 chip that packs a DTCXO. It is a lot less precise than atomic clock, but much better than a regular crystal, and much cheaper too. I have a Pi NTP server project that uses GPS for time base, a DS3231 for local timekeeping, and a STM32F030 as the governor of DS3231.
@BienestarMutuo
@BienestarMutuo 2 роки тому
Yes, your idea is the right solution. millisecond precision at low cost is a very good solution for many time problems. You can please share your project, or sell your device, i and many will buy it.
@hikaru-live
@hikaru-live 2 роки тому
@@BienestarMutuo It was available on my Tindie page but I currently have no manufacturing facility available to make them.
@jakenkid
@jakenkid 2 роки тому
It was so damn pleasing to get a TC blinker reference!!! You don't even know! 😁😁😁
@avejst
@avejst 2 роки тому
Great video 👍
@vlademir32
@vlademir32 2 роки тому
Great Scott!
@JeffGeerling
@JeffGeerling 2 роки тому
Another excellent UKposts channel. Go subscribe to him too! :D
@thompsant
@thompsant 2 роки тому
From a personal perspective, having a potential open source PTP clock as a grandmaster for 2110 is very exciting. On the other hand, I work for a company that used to provide a Raspberry Pi as a hardware solution for a broadcast product and well... it was not received very well by sales staff or customers, which I think is kind of a bummer. I'd love to run into these when commissioning broadcast facilities.
@DETERNET
@DETERNET 2 роки тому
My job is working for one of the manufacturers that makes SMPTE 2110 gear, PTP is very important for doing uncompressed video over IP. It’s a neat field to be in.
@abyagowi7
@abyagowi7 2 роки тому
Let us discuss this in more detail.
@blacktrooper100
@blacktrooper100 2 роки тому
This is so AWESOME I want to build my own stratum-1 server now. 🤩🤩🤩
@vincentguttmann2231
@vincentguttmann2231 2 роки тому
0:05 I love the sound of cicadas. Here in Germany we don't have them, and they always remind me of our holidays in Croatia. Although the Croatian cicadas sound a lot different to yours, interestingly.
@thomasruwart1722
@thomasruwart1722 2 роки тому
Mee too😁 I have a memory of laying in my crib when I was about 2 or 3 years old, looking at a nice blue sky and the big tree outside the open window right next to my crib. I remember feeling a gentle breeze blowing in thru the window, and hearing the cicadas "wind" up and down. Hearing cicadas always relaxes me and triggers that calm memory from more than 60 years ago.
@BrianBoniMakes
@BrianBoniMakes 2 роки тому
Another bleeding edge RPi episode. I'm interested in following where this goes.
@haroldbridges515
@haroldbridges515 2 роки тому
I wish I needed one of these.
@porm1930
@porm1930 2 роки тому
Good stuff you create, both professional and entertaining. I am planning to build a small server at home with some 10-20 Pi. How do you do and which Pi to chose? Is Kubernetes something to use? Which board is the best? Do you think you can do a video about this?
@mitnoxin
@mitnoxin 2 роки тому
I used to use a similar system for calibrating the A2D in seismographs. It would output a square wave at a series of fixed frequencies. It was a lot bigger than your card there.
@KirilMiloshev
@KirilMiloshev 2 роки тому
Nice video! There is a good option with GPSDO Gps disciplined oscilator. You can get one for about 100 bucks and hook it to the raspberry. It has several nanoseconds drift.
@danielriossuarez
@danielriossuarez 2 роки тому
Hi Jeff, loved the video, watching you is always interesting but I was thinking… what about your vid for Wifi 6 access point on the AX200? Thank you!
@JeffGeerling
@JeffGeerling 2 роки тому
Still working on that (now with AX210). Note that it seems Intel's drivers don't allow it to work in AP mode so I've been testing some other chips too.
@almeiras1984
@almeiras1984 2 роки тому
@@JeffGeerling Too bad! I had hoped to create a full GPON router with my PCIe switch. Maybe there is some other interesting 6E card for hostapd? Maybe one with MIMO 2x2 (I looked closely at the AX2?0 and the shielding says MAIN and AUX, so just one Tx antenna)
@Openspeedtest
@Openspeedtest 2 роки тому
I was waiting for Atomic Pi
@JeffGeerling
@JeffGeerling 2 роки тому
A _truly_ Atomic Pi ;)
@rhekman
@rhekman 2 роки тому
@@JeffGeerling and here I thought you couldn't trust atoms. Since they make up everything. ... I'll see myself out.
@MrMftech
@MrMftech 2 роки тому
Thanks for your clever explanation...clocking is everything in Digital :-)!
@JoesPalace
@JoesPalace 2 роки тому
Thanks!
@AustinSteingrube
@AustinSteingrube 2 роки тому
On the industrial manufacturing side, there are exceptionally few things that need more than 1/10 sec precision. The things that DO need to be coordinated are not done over a network, but rather point-to-point discrete signals. It is far faster to look for a rising edge of a 24V signal over 20m than it is to wait for network traffic to propagate to the devices. The PLC’s that run and connect things are themselves very slow compared to a netbook, so any PTP precision would go straight out of the window.
@funskaterfriedberg579
@funskaterfriedberg579 2 роки тому
Hi Jeff, in our Mainframe we use a STP (sysplex timer Protocol) that Provider an Atomic Signal also. STP is a mix of the Hardware and the Software of the operating Systems. It is doing s nandshake, so that very Mashine measures the runtime of the Signal and corrects automatically the time to be correct. Do normal Servers are Build in the Same way)? Because, if not, Evelyn Server will run with different timestamps again.
@TrollingAround
@TrollingAround 2 роки тому
Jeff, you could make a video about drying a towel and I'd watch it, probably to the end, and then click 'like' - please don't! Please keep the fascinating content coming. :D
@ordepcaetano
@ordepcaetano 2 роки тому
Congratulations on the video. How do you know how many gps satellites can it sync to? Synching via ptp is one job, creating a non blocking switching fabric via multicast is another job. Would the rpi cm4 handle it?
@LimitedWard
@LimitedWard 2 роки тому
If every self-driving car had one of these atomic clock modules in them, they could communicate with each other to warn about the position and speed of potential obstacles with a high degree of accuracy. They could also use it to coordinate traffic and reduce congestion.
@phillee2814
@phillee2814 2 роки тому
You only need precision to a few milliseconds for that though, and if the cars cross synchronised in an NTP peer group, you could have µS precision easily - and with GPS practically universal in cars anyway (but most lack PPS, which would be a simple fix), each car could be stratum 1 PPS peered to all the others around it also at stratum 1, so the worst that could happen on the loss of GPS, Galileo, BeiDou, IRNSS, QZSS and GLONASS signals simultaneously is that the whole group could drift by a few µS. One car with a faulty GPS would just drop to stratum 2 automatically, as that is built into NTP already. That just means it gets its time from the other cars around it, with very little loss of precision (offset due to distance [a nS is about 30cm] is built-in). Galileo gives horizontal
@ConnorisseurYT
@ConnorisseurYT 11 місяців тому
You definitely don't need an atomic clock to do that
@betterlifeexe4378
@betterlifeexe4378 2 роки тому
10:04 an open source, simplified time synchronization platform could be made more secure and cross-platform. If adopted as part of a standard for communicating info between smart cars, we might see automatic safety features get a lot better. particularly in traffic streams where several smart cars can respond to each other predictively. Autonomous and maybe semi-autonomous caravanning also becomes more practical.
@IMBlakeley
@IMBlakeley 2 роки тому
My last job we used the GPS receiver on a small outdoor radio to let it run as a mini GM clock, the proper big Grand Masters were so pricey there was quite a bit of customer interest. I'd bet they'd be even more interested in a Pi solution.
@unperrier5998
@unperrier5998 2 роки тому
Many cristals and oscillators are running at a high frequency (dozen of MHz) and are actually precise. And they can be calibrated, even in software. The problem is not the low frequency but environmental changes in temperature (like you said) but also voltage that make them drift at runtime and unpredictively.
@vmsysprog
@vmsysprog 2 роки тому
Timing is everything.
@rougenaxela
@rougenaxela 2 роки тому
2:43 I see you there corner text that is a critical factor in the story
@JeffGeerling
@JeffGeerling 2 роки тому
Maybe I am insane.
@abelgerli
@abelgerli 2 роки тому
There's also another option. When the atomic clocks send their signal on local positions on eart you can do differential GPS with centimeter accuracy. Would may be a genius projects out of the ordinary.
@user-ub2do3bt5h
@user-ub2do3bt5h 2 роки тому
To actually sync the clock in a data centre over the network you need a support from network devices. You mentioned that the card does not have the support yet but it is only software. Well many networking devices also do not have hardware timestaming. This is actually a heavy topic if you want to dive into it. For 5G application for example the accurate time is used so multiple base stations can send data over to a handset at the same time. There are multiple options to distribute time over the network the first one is via Synchronous Ethernet links and the second one is EEE 1588v2 PTP Boundary Clock. Many if the telecom providers use the second option as the hardware is cheaper. Same as on your cards the vendors like Broadcom created ASICs with support for hardware timestamping.
@net_news
@net_news 2 роки тому
audiophiles could be interested in this clock to be used as master clock for DACs.
@perwestermark8920
@perwestermark8920 2 роки тому
Better CD/DVD/BD players sends out the clock signal and better amplifiers have an input to control the DAC. It is normally not that important to run at exactly 44100 Hz absolute frequency. But it's important that the DAC runs at same frequency as the generated PCM data so the DAC doesn't skip some samples or dual-samples some.
@RandornCanis
@RandornCanis 2 роки тому
Snake oil. Accurate sync between hardware clocks is important. Dante, AES67, and SMPTE already use PTP V2 with the oscillators we already have to achieve this in professional audio. Beyond sync, a precise global clock would still yield frequency stability in ppb from ppm. It takes specialized frequency counters to properly characterize stability at this order. Hearing any difference - not remotely possible. Phase noise of any local oscillator would dominate. Does sound like the bait audiophiles would burn cash on, but only meaningful to broadcasters mandated to deliver a middle A at precisely 440.000 000Hz.
@perwestermark8920
@perwestermark8920 2 роки тому
@@RandornCanis I was one time told to buy a $200 (more like $400 in todays money) optical cable (with gold-plated connectors) from CD to amp. As if that would make it sound better. Best is the gold-plated connectors for the *optical* cable that doesn't even need any electrical circuit to transfer the sound...
@RandornCanis
@RandornCanis 2 роки тому
@@perwestermark8920 Sounds about right. Probably for the directional wide-stage copper. Buzzwords!
@perwestermark8920
@perwestermark8920 2 роки тому
@@RandornCanis All audio cables are marketed as using oxygen free copper. Just that is was relevant maybe 1950. Today all copper manages the conductivity levels required for oxygen-free copper. But audiophile sales pitches are magical. Who would dare to not use gold-plated mains fuses for their equipment - the shame...
@Codeaholic1
@Codeaholic1 2 роки тому
Jeff, Im curious what the issues are that prevent you from using NTP on your Chicago server?
@ghostdog0424
@ghostdog0424 Рік тому
My grandpa helped pioneer CSACs! I have one of his 10mhz frequency standards and it's rock solid. He still fools with cesium beam tubes using a raspberry pi for logging the data
@ghostdog0424
@ghostdog0424 Рік тому
i'm going to send this video to him, will post a response with his reaction
@trueriver1950
@trueriver1950 2 роки тому
Talking of interfacing PCIe stuff to the Pi4, can you do a video on using the Pi4 to drive a GPU for grid computing. Some people might be thinking crypto here, but my interest is for BOINC grid projects like Rosetta, or Folding@home.
@SebastianScholle
@SebastianScholle 2 роки тому
the field of metrology uses highly stable and calibrated measuring equipment. this device promises a more widespread adoption of such science, which i think is a very exclusive club at the moment. Having this card run on a PI really makes this field in science more accessible to a larger demographic therefore helping further the research and opening up more opportunities.
@jmr
@jmr 2 роки тому
That's just a little more accurate then what I personally need right now but maybe I'll need something like that next week.
@JeffGeerling
@JeffGeerling 2 роки тому
Once you start running HFT in your homelab... 😂
@creesch
@creesch 2 роки тому
Interesting video :) Small bit of feedback on editing, you are putting text near the bottom of the video which disapears quickly which is normally fine as you can pauze vidoes. However due to the position of the text the youtube video controls cover it when the video is pauzed.
@JeffGeerling
@JeffGeerling 2 роки тому
Gah, I have to try to remember that. I wish UKposts would let you hide the controls while paused.
@FolixOrision
@FolixOrision 2 роки тому
Nice call out to the synchronized blinkers
@johnkunze5362
@johnkunze5362 8 місяців тому
We use an array of AC's all around the world interlinked for NASA, correlated to our telescopes to determine the wobble of the earth. The timekeeper is Dr. Phillip Arctender(really...birthname). A polar shift potential is high. Loss of Antarctic ice is prime factor. Nice to know we have it on a pi.,jpk
@chris-tal
@chris-tal 2 роки тому
It's also used in the test & measurement industry when one has to distribute the same 1PPS ,10Mhz sync and PTP time domain over a dozen hundred meters with as minimal drift as possible. Mostly for making time sensitive measurements in sync across distant data aquisition points of a distributed system. Symmetricom is a well established and known name on the market. Ofcourse this card will bring a more affordable solution to smaller companies and even individuals. Hurrah Time Appliance Project!
@autohmae
@autohmae 2 роки тому
I wonder what the Low-Frequency Array (LOFAR) project uses.
@chris-tal
@chris-tal 2 роки тому
That's a good question. It's way larger than to sync inside a factory building's several business units which manufactures and tests high-freq radio equipment. On that large scale (across bordering countries) I guess it's the same GPS+Rb per receiving station. Combined with singlemode fiber on shorter distances just like the CERN white rabbit network. Plus some magic code that handles exceptions and maybe even mapreduces large chunks of data. You can easily find some articles on the net about both projects if you're very interested. It's a deep hole. Just "follow the white rabbit"! :)
@artemartemov1242
@artemartemov1242 6 місяців тому
​@@chris-talPlease explain to me how to get 1pps with a frequency of 1hz taking into account the time update. Raspberry doesn't allow this. Using a python script I get a stable pulse, but it doesn't have synchronization like pps
@MauricioPessoaMauker
@MauricioPessoaMauker 2 роки тому
Oh yes, it's about time!
@briceperdue7587
@briceperdue7587 Рік тому
I've watched a handful of your videos. This is the one that really got me. Our fiber build is running ethernet frames and keeping a very good clock is a new thing i've had to even think about. Very good stuff very boring topic like NTP and DNS no one really cares until it doesn't.
@roelesch
@roelesch 2 роки тому
If you have the antenna well positioned, you might be able to run an NTRIP server. You can help people nearby improve their GPS accuracy.
@DJ-Manuel
@DJ-Manuel 2 роки тому
Or you could run NTRIP client and get more accurat timing 😉 With NTRIP server it is best to have multiple receivers and have a differential setup, in order to have more accuracy in location.
@borbetomagus
@borbetomagus 2 роки тому
Thanks for this project! Just wondering: Are you overstating the accuracy of the the SA.31m? Datasheets for the Microsemi SA.31m, SA.33m and SA.35m (along with the SA.45s) imply they all have an accuracy of '±5.0E-11 accuracy at shipment', while Microsemi vendor Sparkfun says: 'That puts the SA.35m Miniature Atomic Clock in the picosecond category of eight seconds per 31,689 years. Said differently, the MAC loses a second every 4,000 years or so.' Then again, I may not understand the long-term accuracy.
@locusf2
@locusf2 2 роки тому
Also if you are going with the hardware timestamping route, use level 3 multicast first, ie. UDP. The ethernet multicast can be tricky if there are multiple switches or routers that don't support it.
@shubinternet
@shubinternet 2 роки тому
I think the hardware support for timestamping only works at the Ethernet layer. I agree that multicast is the most scalable solution, but many switches and routers don’t support it, or it’s turned off by default. This has been an issue for many years.
@benverdel3073
@benverdel3073 2 роки тому
In Europe we have DCF77. A cesium based signal from the hart of Germany with a range of about 100 miles or 1500 km. It the reference for all of Europe. Trains, postoffices etc. You can get receivers for home use as well.
@JeffGeerling
@JeffGeerling 2 роки тому
The US has WWVB, which does a similar thing-once you know your relative distance to it, you can get pretty accurate time from the radio signal, too!
@datachu
@datachu 2 роки тому
Lol, love the tech connections reference. And the bad puns.
@JeffGeerling
@JeffGeerling 2 роки тому
I see you too are a person of culture!
@highendcustomdesigncaraudi1777
@highendcustomdesigncaraudi1777 Рік тому
Thank god keept all this material in side the earth .
@phillee2814
@phillee2814 2 роки тому
For the vast majority of users, a version of this at a fraction of the cost with ONLY the GPS system - and with backup to other NTP servers on the internet. Selling such a simplified version would be a real money-spinner, and provide easily sufficient precision for the vast majority of PC or LANs, and potentially increase the number of available stratum 1 NTP servers available in the pools to the point where the load on each would be insignificant. Such a basic GPS/PPS PCIe card (with drivers for all current operating systems) is a major missing link. Once you get distribution around a variety of devices on a network, NTP is quite sufficient. PTP is major overkill for almost everything we do at less than data centre or physics laboratory level.
@perwestermark8920
@perwestermark8920 2 роки тому
You don't even need PCIe for GNSS-only time reference to host a NTP server. But you do need the 1 pps signal if you want IEEE 1588 where the network data is timestamped in hardware.
@mauisam1
@mauisam1 2 роки тому
I liked your outatime joke and the shaun the sheep clip.
@jwillisbarrie
@jwillisbarrie 2 роки тому
Thanks for adding actual captions for the Deaf and clear explanation.
@leexgx
@leexgx 2 роки тому
Issue with time drifting will likely to be with the virtual environment had it happen on mine when the virtual machine was being throttled but the problem was the time clock was linked to this in some way (usual fix is to change the high precision timing settings turn it off or on depending on the setup)
@JeffGeerling
@JeffGeerling 2 роки тому
Yeah, that could be it too... these servers I use for Server Check.in (the ones with no user data on them, just running the checks) are on low-budget VPSes on hardware that's likely a bit oversubscribed anyways. But that's how I target the low $15/year price point!
@leexgx
@leexgx 2 роки тому
@@JeffGeerling should be able to raise a ticket to get them to fix it (or if your using Linux change the clock timing source)
@wyohman00
@wyohman00 2 роки тому
This is an interesting topic and one that I have long term experience with. Back in the day, we used WWV as one primary time reference. I'm having a hard time understanding why I should care about the differences between these references and NTP? What is the to gain in the specific examples you presented?
@autohmae
@autohmae 2 роки тому
NTP has less accuracy.
@wyohman00
@wyohman00 2 роки тому
@@autohmae Clearly. Internal NTP can be accurate to 1ms or less whereas Internet-based NTP is often 10 or more ms. What I'm finding challenging is the use case for time more accurate than 1ms in normal use. I'm just looking for some examples as to why I might want to consider this for my own stuff. Maybe there's something I'm missing...
@briangoldberg4439
@briangoldberg4439 2 роки тому
wow man. this is a very pun-heavy video. good job
@JeffGeerling
@JeffGeerling 2 роки тому
I had a few more to add, but I ran out of time :(
@n2kra
@n2kra 2 роки тому
Installed a 1 Rack unit GPS NTP at Bell Labs/Telcordia. Need to have the antenna run to the roof. Hmm would the ham station have been easier? Would it have been allowed on the corporate LAN?
@doitaljosh
@doitaljosh 2 роки тому
Wow, so if the PHY hardware on the CM4 supports hardware IEEE1588 timestamping, would real-time protocols like AVB work when software support is enabled? That would make the CM4 much more useful in automotive and AV applications.
@maxheadrom3088
@maxheadrom3088 Рік тому
Curiosity: mechanical watches (the type with the torsion pendulum - wristwatches) was created to know the longitude! It required a sun dial to do that, though. another: never had an iPod - still have my Sandisk mp3/ogg/flac player, though.
@upcsatx
@upcsatx 2 роки тому
Show us how to deploy a low cost array of radio receivers at known locations, each equipped with time cards, and each on a network so they can be remotely tasked to receive a specific radio frequency being transmitted from an unknown location (e.g. from a drone). The receivers would then send the peak signal spike times back to a command unit, which then geolocates the transmitter using TDOA(?).
@Jerry_from_analytics
@Jerry_from_analytics Рік тому
Now that's an application I'd love to see.
@DiyintheGhetto
@DiyintheGhetto 2 роки тому
We would love to see a update to this timecard to see how it advance in software or hardware.
@JeffGeerling
@JeffGeerling 2 роки тому
Check on github.com/raspberrypi/linux/issues/4151 - there is finally some progress on a driver!
@DiyintheGhetto
@DiyintheGhetto 2 роки тому
@@JeffGeerling Nice Thank you. Takiong A look now.
@MikeStavola
@MikeStavola 2 роки тому
I have a few atomic clock modules. I need to figure out how to use one to make my own atomic clock.
@FennecTECH
@FennecTECH 2 роки тому
There is actualy a use for all clocks having a time card like that…. Temporal accuracy is necessary for self driving cars to cooperate creating a more efficient network. Being half a second off when deciding who is going to do what when at 200 mph can and will have deadly conciquences. So for cooperative self driving to work you will need accurate clocks.
@perwestermark8920
@perwestermark8920 2 роки тому
The cars don't need nanoseconds. And proper ntp does not have 0.5 seconds time errors. Given that this board sets the time from a GNSS module, the current GNSS in the car is already managing quite well. Even redundant GNSS modules with redundant GNSS antennas is a small fraction of the cost of the rubidium module.
@DerekMurawsky
@DerekMurawsky 2 роки тому
This is so cool...
@GregTheHun
@GregTheHun 2 роки тому
I'm surprised you didn't use something like Manjaro Arm for the kernel aspect. But I also get not wanting to be on the leading edge of software.
@user-ls6hr3tb1v
@user-ls6hr3tb1v 6 місяців тому
For over a decade I have been aware of the systemic benefits of hardware clock module upgrades. These benefits go beyond synchronization issues, and improve board functions resolution and noise levels. Might there be some way to rig this clock to REPLACE the clock functions that run processing and GPU functions? There might be significant benefits to be realized!
@vincentguttmann2231
@vincentguttmann2231 2 роки тому
9:35 I think you meant to say that Red Shirt Jeff has barely scratched the surface of the card...
@theoriginalrecycler
@theoriginalrecycler 2 роки тому
Key use for this is transactional analysis, stock trading etc… minutes give 60 transaction windows per hour, seconds give 3600 transaction windows per hour. The rubidium source allows more time slots per hour, hence more transactions per hour executed. I won’t list assumptions etc.. you get the idea.
@muhammetfurkancankaya777
@muhammetfurkancankaya777 2 роки тому
Yargı reformu paketi: judicial reform package. I didn't expect to see something in Turkish.
Why would you build a Raspberry Pi Cluster?
10:30
Jeff Geerling
Переглядів 524 тис.
Nanosecond clock sync with a Raspberry Pi
13:56
Jeff Geerling
Переглядів 168 тис.
КТО СМОГ ПОБЕДИТЬ?😳
00:36
МЯТНАЯ ФАНТА
Переглядів 824 тис.
Анита просто на химии, поэтому такая сильная
00:21
Женя Лизогуб SHORTS
Переглядів 2,8 млн
Put An Atomic Clock in Your PC - Open Source Time Card
11:57
Gary Explains
Переглядів 28 тис.
Why is this PCIe Card RADIOACTIVE?
14:12
Linus Tech Tips
Переглядів 2,2 млн
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Переглядів 791 тис.
Did Raspberry Pi just Sherlock RealVNC?
7:52
Jeff Geerling
Переглядів 58 тис.
This Raspberry Pi has the most I/O EVER!
8:47
Jeff Geerling
Переглядів 166 тис.
Atomic Clock Sync: ESP32 NTP Magic in Just 2 Lines of Code!
8:01
Top 10 Raspberry Pi Projects for 2022
7:54
Jeff Geerling
Переглядів 1,5 млн
I interviewed a REAL Time Lord (in St. Louis!)
12:12
Geerling Engineering
Переглядів 45 тис.
Inside The Most Precise Atomic Clock in the World
7:35
Motherboard
Переглядів 430 тис.
Какой телефон лучше всего снимает? 🤯
0:42
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 67 тис.
I shouldn’t have kept the $1,000,000 computer
28:05
Linus Tech Tips
Переглядів 1,6 млн
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
Ремонтяш
Переглядів 392 тис.
Phone repairs are getting ridiculous - Here's why.
22:24
Mrwhosetheboss
Переглядів 2,3 млн