Hello Miti from France and thank you very much for your posts.
I have a few DCF77 clocks, they can get the signal from Germany only from outside so every time the summer time or winter time comes, I put the clocks on the balcony and wait for a few minutes. But after a few weeks, the clocks start to drift and it's time to put them outside again. I would like to keep my clocks synchronized even from inside. So I have tried to reproduce your work.
For me your project works but only at a distance of 30 centimeters, far from the 3 to 4 meters I was expecting. What am I missing?
ESP32 board:
| connection | Pin | | | Pin | connection |
| ESP32 - 8 - D25 | 1 | EN | D23 | 30 | AD9833 - DAT |
| 2 | VP | D22 | 29 | |
| 3 | VIN | TX0 | 28 | |
| 4 | D34 | RX0 | 27 | |
| 5 | D35 | D21 | 26 | |
| 6 | D32 | D19 | 25 | |
| 7 | D33 | D18 | 24 | AD9833 - CLK |
| ESP32 - 1 - EN | 8 | D25 | D5 | 23 | |
| AD9833 - FSY | 9 | D26 | D17 | 22 | |
| AD9833 - CS | 10 | D27 | D16 | 21 | |
| AD9833 - Pin 6 PCP41010 SOIC8 | 11 | D14 | D4 | 20 | |
| 12 | D12 | D2 | 19 | |
| 13 | D13 | D15 | 18 | |
| AD9833 - GND | 14 | GND | GND | 17 | |
| AD9833 - VCC (5V USB) | 15 | VIN | 3V3 | 16 | |
https://www.etechnophiles.com/wp-content/uploads/2021/02/ESP32-Board-PINOUT-with-30-pins.pngAD9833 board:
GND - antenna - 6.8 nF capacitor - 1 Ohm resistor - PGA
The antenna is a ferrite 50 x 7 x 3 mm, bought from Aliexpress. I don't know the characteristics of the coil.
I have a PicoScope 2000 Series to measure signals.
At the antenna terminals, i have a sine signal, frequency is 77.5 kHz and voltage is 1.8 V peak to peak, is it enough?
Also in your code:
#define LEDBUILTIN 2 // This is the pin for a ESP32 Dev Module 30 pin from Aliexpress
#define MODULATION 12 => Is it used for debug?#define MOD_PIN 14 => D14, pin 11
#define RESPIN 25 => D25, pin 8
#define FNC_PIN 26 => D26, pin 9
#define MCP41_CS 27 => D27, pin 10
#define ANTENNAPIN 15 => I don't understand what is this 15. Do I have to change something on my wiring?