What's the point in reading posts like this when the solution "they" came up with is basically, "tell Claude to make a script which does whatever"? I read blog posts to read thoughts from people, not computers
Most Stable Raspberry Pi? Better NTP with Thermal Management
31–40 of 99 posts
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#32Why not put a resistor (for heating) and a bit of foam insulation on the crystal? This is way more direct than spacebar heating. You could also add a transistor attached to the resistor and a GPIO and use the clock drift as a proxy for temperature. PID is probably enough but since you have a 24 hour cycle you could calculate a baseline heating schedule.
I have test equipment made as recently as the early 2000s that uses a crystal oscillator in an oven as a frequency standard. It takes a good five minutes to fully stabilise.
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#33Amazing project, great write-up. Would love to see a temperature graph as well! I'm wondering how good the PID controller here is working. For future improvements, a cheap but effective win might be to put a temperature sensor on the oscillator (or two or three in various places). And use that to drive the PID loop. Even if just experimental & not long term, it would be nice to have data on how strong the correlation…
> put a temperature sensor on the oscillator At that point, couldn't we just use the temperature value to compensate for the drift?
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#34Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#35Earlier quoted context omitted.
What is this even supposed to mean? What's "the Pentium 4 route"?
I'm an old fart :) Intel tried to scale frequency up with the Pentium 4 in the name of performance, and it ended up extremely hot and power hungry. Just like some high end CPUs now, but then it applied to every model from Intel. I suppose you don't remember when a Raspberry Pi could run fine even without a heatsink, let alone active cooling. That's more recent than the Pentium 4.
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#36A microsecond is still quite a lot if GPS is involved, that's about 1000 light-feet!
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#37It's an SBC-scale OXCO. I half wonder if adding a larger heatsink, or even putting thermal mass around the existing oscillator could also help, or if the heating is more localized in the PCB itself. Always fun new things to learn when doing something "simple" like setting up an NTP server!
I was thinking along these lines as well. Put a metal block on the CPU and oscillator for thermal mass (not sure if separate blocks would be better). Ideally, with a large enough thermal capacity, the block should reach an average temperature and remain there.
Inertia is also good even if the temperature is not constant: clock drift can be measured and compensated. If the temperature rises slowly, the clock speed will increase slowly: the rate can be measured and compensated for. Jitter is the issue here, and thermal inertia should dampen it.
It may also be worth preventing convection from happening on the board. Putting the Pi in a wool sock may not be the best idea depending on its temperature, but an electrically insulating thermal conductor (or an electrical insulation layer + steel wool may do it).
Heatsinks may also be counter-productive (if they have a small thermal capacity), as their temperature depends on room temperature, which changes during the day.
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#38Couldn't you model the effect of temperature on clock drift and try to factor that in dynamically (e.g. using a temperature sensor) instead of burning CPU unnecessarily?
An advantage of constantly loading at least one core of the CPU might be preventing the deeper power states from kicking in, which should make the RX timestamping latency more stable and improve stability of synchronization of NTP clients.
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#39A microsecond is still quite a lot if GPS is involved, that's about 1000 light-feet!
Re: Most Stable Raspberry Pi? Better NTP with Thermal Management
#40There was a paper on this in 2022. Not sure if it's used in production or not. https://www.usenix.org/conference/nsdi22/presentation/najafi