惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator Blog

Blog on KittenLabs

Marantz UD5007 power supply replacement GPD Pocket 4 Speaker DSP Extreme Pi Boot Optimization WiFi auth with OsmoHLR/SIM cards Windows 11 tweaks & usability improvements Using custom domains as a Fediverse redirect 25GBit/s on macOS & iOS Manage RDP certificates on Windows using SSH Reviving a dead Gigabyte MJ11-EC1 mainboard Dead TROTEC PAC2000S air conditioner PlutoSDR standalone ADS-B FR24 feeder Micro8088 build log OpenWRT als WireGuard-Appliance Es'hail-2 transceiver setup ThinkPad PowerSeries 820 PlutoSDR clock input WiFi over satellite TV coax
GPS locked Raspberry Pi
By Manawyrm (@manawyrm@chaos.social) | Sunday, June 23, 2019 · 2019-06-23 · via Blog on KittenLabs

Feeding a high-accuracy external frequency reference into a Raspberry Pi 1

Raspberry Pi 1 PCB backside, crystal removed, coax connnected instead Oscilloscope, showing sine waveform

For highly-accurate timekeeping or signal generation with a Raspberry Pi, it’s possible to replace the on-board crystal with an external reference input. On the Raspberry Pi 1 the main system oscillator is a 19.2 MHz quarz crystal.

In order to be able to feed a square wave input signal (like the output from the GPS-reference or a u-blox NEO module), a (quick-and-dirty) low-pass filter was built. It uses 47pF capacitor and 1µH inductor.

Metal circuit board, prototype low-pass-filter in Manhattan construction Low-pass filter, connected to Raspberry Pi 1

Software like WsprryPi and rpitx can be locked with this method as well.

Without the LPF, the Raspberry Pi seemed to run off some harmonic frequency from the square wave clock signal. The ACT led would still blink, network didn’t come up and serial console output was unreadable. Measurements with a scope showed a UART frequency of ~210000 baud, but I wasn’t able to decode any of that.

I’ve been running the Pi with ntpd against the servers of the PTB (National Metrology Institute of Germany), which is locked to their atomic clocks. So far the results look nice, I think I’m probably only measuring the jitter and latency of my internet connection.
munin graph

A more common approach is GPS synchronization via a 1 PPS signal over the GPIO pins. This can then be handled via a kernel module, but can only be used for timekeeping.