Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elehobica/pico_dcf77_tx
DCF77 transmitter for Raspberry Pi Pico W
https://github.com/elehobica/pico_dcf77_tx
dcf77 micropython raspberry-pi-pico-w
Last synced: about 2 months ago
JSON representation
DCF77 transmitter for Raspberry Pi Pico W
- Host: GitHub
- URL: https://github.com/elehobica/pico_dcf77_tx
- Owner: elehobica
- License: gpl-3.0
- Created: 2023-05-28T00:09:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-05T14:38:19.000Z (10 months ago)
- Last Synced: 2024-08-05T00:07:02.096Z (5 months ago)
- Topics: dcf77, micropython, raspberry-pi-pico-w
- Language: Python
- Homepage:
- Size: 185 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - pico_dcf77_tx - DCF77 transmitter for Raspberry Pi Pico W. (Libraries / Communications)
README
# DCF77 transmitter for Raspberry Pi Pico W
## Overview
This project is DCF77 transmitter for Raspberry Pi Pico W in proximate usageThis project supports:
* fetch CET (CEST) time by NTP
* DCF77 carrier frequency at 77500 Hz
* DCF77 amplitude modulation (High: 100%, Low: 12.5%)
* DCF77 phase modulation (0°, +15.6°, -15.6°) (Implemented, not verified yet)
* minimum peripheral circuits with wired headphones to emit weak radio waves## Supported Board
* Raspberry Pi Pico W## Pin Assignment
| Pico Pin # | Pin Name | Function | Note |
----|----|----|----
| 4 | GP2 | PIN_MOD_P | DCF77 signal differential output Pch |
| 5 | GP3 | PIN_MOD_N | DCF77 signal differential output Nch |* Single-ended signal is not available since pair signals are asymmetrically driven in actual to have effect of PWM. Use a transformer to convert into single-ended output.
## Connection Diagram
![Connection Diagram](doc/pico_dcf77_tx_connection.png)## How to make the program work
* Use [Thonny](https://thonny.org/) (Confirmed with Thonny 4.0.2, Python 3.10.9)
* Install MicroPython (Raspberry Pi Pico) interpreter firmware on Raspberry Pi Pico W by Thonny
* Confirmed with MicroPython v1.22.2
* Add `secrets.py` to include your WiFi configuration and put it on the storage of Raspberry Pi Pico W
```
# secrets.py
secrets = {
'ssid': 'xxxx',
'password': 'xxxx',
}
```
* Excecute `pico_dcf77_tx.py` from Thonny
* For stand-alone application, please rename `pico_dcf77_tx.py` as `main.py` and store in the storage of Raspberry Pi Pico W## Log
Bit description log displayed in the console is made compliant to https://www.dcf77logs.de/live except for Civil warning bits / weather information
```
Timecode: Sat, Jun 03, 2023 21:17:00 0-000000000000000-001001-11101000-1000010-110000-011-01100-110001001
```## Tips for emitting DCF77
* The recommended way to make the clock detect DCF77 emulated singal in limited proximate environment, is just to connect wired earphone between PIN_MOD_P and PIN_MOD_N pins through designated circuit (LPF) and put the clock close to the earphone cable. (This could damage the earphone. please try with cheaper one.)
![Scene](doc/pico_dcf77_tx_scene01.jpg)