luigicalligaris / dcfake77

DCFake77 is an emulator for the DCF77 LF time synchronization signal.
GNU General Public License v3.0
19 stars 5 forks source link
dcf77 low-frequency-radio time-sig time-signals watch

DCFake77

DCFake77 is an emulator for the DCF77 time signal, used to synchronize clocks, watches, appliances and industrial equipment. DCFake77 exploits hardware available on common development boards to generate a 77.5 kHz signal, AM-modulated to encode the DCF77 protocol.

Available implementations

So far three implementations are provided:

Quick start

You'll need the following hardware:

ESP32 implementation

This implementation drives the PWM at 77.5 kHZ using the led PWM library.

(ESP32 GPIO16)----(330 ohm)----(COIL)----(GND ESP32)

ESP8266 implementation

Due to limitations in the ESP8266 SDK, generating a 77.5 kHz PWM signal is not natively supported and would require re-writing a number of drivers. To make things simpler for this implementation the PWM is run at 25.833 kHz, which results in a third harmonic signal at 77.5 kHz.

Follow the same wiring instructions as the ESP32, choosing a suitable GPIO output pin, such as GPIO5 (also labeled as "D1" on a Lolin D1 Mini), and setting that in the .ino file.

(ESP8266 GPIO5)----(330 ohm)----(COIL)----(GND ESP8266)

Set the WiFi username and password in the .ino file and adjust your local time offset w.r.t. to UTC by monitoring the USB UART interface of the board with a program line GtkTerm, which will print the local time to be transmitted by the emulated DCF77 signal on each second.

Raspberry implementation

Guide to be written