Arduino power logger

Arduino power logger - DIY

Help me by sharing this post

PART 5 - Make your shunt

See the full part list here:

If you don’t want to use a huge shunt resistor like the one before, you could make one yourself but probably not that accurate. For example, I’ve used a thick copper wire and made some sort of small coil with it. Now, I plug it into my power supply and apply 0.5 Voltage.

commercial power meter tutorial

In my case, with 0.48 volts and 4 amps of current gives me a resistance of 0.12 ohms which would work for low values of current. So basically, you could make your own crude shunt resistor and probably not give it a coil shape, that would be better.
The resistance that we have measured is not precise, but once again, once the code and the board is done, you could test it using another meter, and adjust the code so you get same values.

PART 5 - Use a current module max471

Below, you will also find the schematic and codes for the same project but using the current meter module. This module will sense the current without the huge shunt resistor and the extra OpAmp circuit so that will make the project smaller and probably easier. So, check the links below for all the extra schematics and codes. Use any USB charger to charge the battery. Be careful, the boar input has polarity. The load in the middle, and positive on one side and ground on the other, otherwise the board won’t work.

max471 power meter current tutorial

max471 power meter schematic

The code for MAX471

void get_values()
  voltage = (fmap(analogRead(A1),0.0,1023.0,0.0,3.7)) / 0.218;
  //The module gives one volt per Amp.
  RawValue = analogRead(A0); 
  current = (RawValue * 5.0 )/ 1024.0; // scale the ADC, we get current value in Amps
  power = voltage*current;              //Calculate power and energy
  energy = energy + (power/3600)/1000;

Downlaod the full code here (MAX471):

Downlaod the Adafruit_GFX library here:

Downlaod the Adafruit_SSD1306 library here.

Ok guys, so this is my power meter board. Kind of the same as in the current meter project. I hope that you like it and learn something new. If you would like to support this kind of projects, check my Patreon page. I would appreciate that guys. Now you know how to build a multimeter with Arduino because we have seen the resistance meter, also measured capacitance and finally inductance and current. A frequency meter would be very easy, so that means that this will be the last meter of this video series.

Go to next part

Help me by sharing this post

PCBWAY PCB Manufacturing

PCBWAY Christas PCB Manufacturing

Advanced PCB Manufacturing
Advanced PCB Manufacturing


Gearbest Tronxy X8 220 x 220 x 200mm Desktop DIY 3D Printer
Tronxy X8 220 x 220 x 200mm Desktop DIY 3D Printer only $139.99

Gearbest Hubsan H117S Zino GPS 5.8G 1KM FPV with 4K UHD Camera 3-Axis Gimbal RC Drone - RTF
Hubsan H117S Zino GPS 5.8G 1KM FPV with 4K UHD Camera 3-Axis Gimbal RC Drone - RTF only $394.99

Gearbest 37-in-1 Sensor Modules Kit
37-in-1 Sensor Modules Kit only $13.99