Data logger, oscilloscope, signal generator and more!

DrDAQ is a versatile instrument that connects to the USB port of any PC. Using the supplied PicoScope software it can be used as an oscilloscope, spectrum analyzer and signal generator.

From just

Find out more  

Measurement of mains voltage fluctuation and frequency over a week

IntroductionEducational data logger

The purpose of this experiment is to monitor mains voltage and frequency fluctuations over a seven day period. This information should show the effects of loading of the National Grid.

The electricity generating companies have tolerances which they are required to meet.

The single phase mains tolerances in Europe are:

  • Voltage 230 volts AC RMS +10% / - 6%
  • Mains frequency 50.00 Hz +/- 0.2 Hz

Equipment required

Equipment setup

The ADC-42 reads voltages in the range of ±5 volts. The mains voltage has to be dropped to ±4 volts (leaves room for the voltage fluctuations).

One of the simplest and safest ways to measure mains voltages is to use a simple ‘plug in the wall’ power block to drop the mains voltage to a safer level. This has the advantage that it provides electrical isolation from the dangerous mains voltage.

Mains Voltage experiment - Equipment Used

Figure 1: equipment used

There are two types of basic power block available:

AC output types

These are most easily used since they simply give a scaled version of the mains voltage. They usually give an output in the range 6 Vac to 12 V AC, and therefore a simple potential divider circuit may still be required to attenuate the output to a suitable range (see below).

DC output types

These are similar to the AC types above but they also have a built in rectifier to convert the AC voltage to DC and also usually a capacitor to provide some smoothing of the DC signal - some types may also have some kind of voltage regulator. To use this type, you need to remove the rectifier and capacitor (and regulator if fitted) — this should only be attempted by a qualified electrician.

Warning: if you are in any doubt then seek advice from a qualified electrician.

The output from the power block may need attenuating further to suit the ADC-42 input range. This is best done with a simple resistor voltage divider as shown with the formula below.

Circuit Diagram

Figure 2: circuit diagram

Potential divider calculation

Vo = Vs x Rb / (Ra+Rb)
Vo / Vs = Rb / Ra+Rb
Vs / Vo = Ra+Rb / Rb
(Vs / Vo)Rb = Ra+Rb
Ra = (Vs / Vo) Rb - Rb

Potential divider calculation example

Vs = 20 volts peak
Vo = 4 volts peak
So Ra = 5Rb - Rb
Therefore Ra = 4Rb

With the equation above and Rb = 10l, Ra = 40k. A value of 40k is not a standard resistor value, so a 30k resistor and a 10k resistor in series can be used.

Using these power blocks with PicoLog and PicoScope:

The PicoScope spectrum analyzer can be used to investigate the harmonic content of the mains supply.

PicoLog can be used to trend the longer term changes in supply voltage and also supply.

Carrying out the experiment

The experiment was carried out over one week using the equipment above and PicoLog software. Samples were taken every 30 seconds.


  1. What happened to the mains voltage?
  2. What happened the the mains frequency?
  3. Did the mains stay within the tolerances specified for the electricity company?


  • The kit (2408B) is of obvious quality, easy to setup and calibrate and the free to download software has a reasonable learning curve. Superb kit, superb support, what more can I say.

    Rop Honnor
  • I have been using my 4224 PicoScope for years. I travel abroad so this has been ideal due to its physical size. Storage of waveforms on my Laptop is very easy allowing me to quickly email waveforms to my Colleagues.

  • Not many USB scopes works on Win & Mac & Linux too, so that proves me that guys from Pico really cares about us, customers. This made my decision much easier when I was looking to buy an USB scope.

    Raul Trifan
  • We have been using Picoscope 6404D for quite some time, and are amazed by its accuracy and powerful emulations while working with numerous signal evaluations.

    J Mohanty
  • PicoLog TC-08: This is a very nice unit that works consistently and reliably.

    Jeff Hulett
  • It is a great scope. I had a weird problem - it did not work on one of my PC’s. Customer service gave me first class service. If I could give 6 stars for customer service - I would do so.

    Niels Larsen
  • Perfect Partner for Development of Encoder controlled Stepper Motor Actuators. Since the included software is really stable, this type of device is a great tool for great tasks!

    Helmut Schoettner
  • A superb piece of equipment worth its weight in gold

    Nigel Clinch
  • So simple to use & beats any other I have ever used hands down.

    John D Samsing
  • Rather than webcam our benchtop scope screen, it was suggested we use a PicoScope to share waveforms via screen share.

    We were a bit hesitant at first … but it worked flawlessly, and everybody is now out shopping for PicoScopes!

    T Lövskog • SVP of Innovation at Additude AB
  • Great functionality in a compact size. I really like moving the mouse pointer to a position and having the Time and Voltage display the values at that point. Calibration equipment is a breeze with that feature.

    Don Horein

PC oscilloscope and data logger products