Hackaday Prize 2023: Pi Pico Measures Volts, Amps And Watts

A PCB with an OLED display, a screw terminal block and a Raspberry Pi Zero board

Measuring a voltage is pretty easy: just place your multimeter’s probes across the relevant pins and read the value. Probing currents is a bit trickier, since you need to open up the circuit and place your probes in series. Checking a circuit’s power consumption is the hardest, since you need to measure both voltage and current as well as multiply them at each moment in time. Fed up with having to hook up two multimeters and running a bunch of synchronized measurements, [Per-Simon Saal] built himself an automatic digital power meter.

The heart of this instrument is an INA219 chip, which can measure and digitize voltage and current simultaneously. It outputs the results through an I2C bus, which [Per-Simon] hooked up to a miniaturized version of the Raspberry Pi Pico called an RP2040-Zero. A screw terminal block is provided to connect the system to the device under test, while a 0.96″ OLED display shows the measured voltage, current and power.

A small OLED display showing voltage, current and power measurementsThe maximum voltage that can be measured is 26 V, while the current range is determined by the shunt resistor mounted on the board. The default shunt is 0.1 Ω, resulting in a 3.2 A maximum current range, but you can get pretty much any range you want by simply mounting a different resistor and changing the software configuration. In addition to displaying the instantaneous values, the power meter can also keep a log of its measurements – very useful for debugging circuits that use more energy than expected or for measuring things like the capacity of a battery.

There are lots of ways to measure electric power, but they all boil down to multiplying current and voltage in some way. The multiplication was done magnetically in the old days, but modern meters like [Per-Simon]’s of course use digital systems. Some can even plug directly into a USB port. If you want to measure mains power, transformers are an essential component for safety reasons.

6 thoughts on “Hackaday Prize 2023: Pi Pico Measures Volts, Amps And Watts

  1. Wow! So much innovative. And it only runs on a dual core 100MHz+ computer with pebble 256kB RAM! I am petrified.

    Anyway, it is nice and working and all, but why such mundane project gets chosen for HaD article is beyond my mind.

    1. The best part is the fact that INA219 even does power calculation internally. I did more advanced stuff when working on my own calibration tool that used precise delta-sigma ADC, precise DAC and precise voltage reference. And precise 8-bit uC with 4kWords of program memory and 384 bytes of RAM. This included some advanced math operations so the device itself could be calibrated to display accurate values…

    2. I feel the same way. 10 years of innovation looks different, it’s more like reinventing the wheel for the hundredth time. There are so many innovative projects on hackerday.io. You just have to take the time to find them or maybe check the submit-a-tip inbox more often.

  2. Well I rather liked this project – I have an INA219 and its bigger brother sitting that I ordered a week or two ago with a view to making an ESP32 wifi based bench top multimeter with a nice large TFT display.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.