The grid frequency is measured using a Raspberry Pi Pico, a microcontroller that can be programmed in Python (MicroPython) or C++. A GPIO pin on the Pico is connected to the electricity grid via a measuring transformer and a voltage divider, allowing it to measure the frequency of the alternating voltage (nominally 50 Hz in Europe).
The software running on the Pico measures the period of the sinusoidal voltage and calculates the frequency from it. Measurements are averaged over 5-second intervals. The results are then sent to an InfluxDB database, where frequency values are stored with timestamps for further analysis.
The measurements are displayed in Grafana, a dashboard platform that makes graphs and trends visible in near real time. This provides an overview of the stability of the electricity grid. Small fluctuations in frequency reflect the balance between electricity supply and demand: when demand exceeds supply, the frequency decreases slightly; when there is a surplus, it increases.
Grid operators continuously respond to these changes on a larger scale by adjusting or switching generating units on and off. Frequency is therefore a direct indicator of the stability of the electricity grid. In the event of significant deviations (for example, below 49.8 Hz or above 50.2 Hz), automatic protection mechanisms may intervene to prevent widespread power outages.
The time deviation graph shows the time deviation of the electricity grid. This deviation occurs because the grid frequency is continuously slightly higher or lower than the nominal frequency of 50 Hz. Clocks that derive their time from the grid frequency will therefore run ahead or fall behind. When the time deviation becomes too large, European grid operators can correct it by temporarily adjusting the grid frequency slightly upwards or downwards. In practice, this correction is coordinated by ENTSO-E, the European Network of Transmission System Operators for Electricity.