elpuls · Gotland mains frequency

Measured once per second from a wall outlet. Nominal 50 Hz.

--Hz
Loading…

Frequency, last hour

Every second. Shaded band: 49.95 to 50.05 Hz.

Show as table (last 60 minutes)
MinuteMean HzMinMaxIn normal band
A black 9 V AC plug adapter in a wall socket, its cable running to a breadboard with a small ESP32-C6 board whose LED glows green.
The sensor: plug adapter, three resistors and an ESP32-C6 on a breadboard.

How it is measured

A sealed 9 V AC plug adapter turns the 230 V from the wall into a small, safe AC voltage with the same frequency. It is the only part that touches mains, and it isolates everything else.

Three 100 kΩ resistors lift that wave so it sits around 1.65 V, which lets an ESP32-C6 microcontroller read it on an ordinary input pin. The chip records the exact time, to the microsecond, every time the wave crosses upward. Edges closer than 15 ms apart are treated as noise and ignored.

Once per second the device counts the cycles (about 50) and divides by the time between the first and last of them. That gives the frequency to a few thousandths of a hertz. The LED on the board shows the same colour as above, and readings are sent here over Wi-Fi every 10 seconds. Accuracy has not yet been checked against an independent source.