yt_link
insta_link
fb_link
twitter_link
Blog#7 - Power logger


Last tutorial - Logic gates!
Check here my last tutorial. I hope that you will like it. Keep up you guys!

last tutorial


Arduino Power logger - DIY
Help me by sharing this post

Go back ↞ See other blog→


Author: Andrei
11/06/2018
ELECTRONOOBS teach us once again with a new meter made with Arduino. This time the measured value is power. Well, power is voltage time current. The first thing he did in his tutorial is show us how to easily measure current using the Arduino. The microcontroller can’t directly measure current, but it can voltage. So, the idea is simple. Place a shunt in series with the load and the current that passes will create a voltage drop. Measure the voltage, divide it by the shunt value and get the current. Easy right?
The voltage drop was small since the shunt was of 0.01 ohms. So, he used an OPAMP LM324 and amplified the voltage then measured it using one of the Arduino ADCs. Once the current is measured, the rest is easy.
Is time to measure the main input voltage. The power will be the measure current multiplied by this voltage. To do that, EN just connected the input to a voltage divider and then to the analog input of the Arduino. Why a voltage divider? Well, Arduino works at 5V and the input of the meter could be way more than that.

The used OPAMP is the LM324 which as EN say, is not that good but works well for a DIY project like this one. The amplifier is placed in a non-inverting configuration and amplified 2 times. The gain is given by 2 resistors.
To supply the circuit a 3.7V lipo battery was used. And to charge it a USB battery charger. The main input is connected to the blue PCB connectors and the values are printed on the OLED screen. The printed values are voltage, current in amps, power in mWh, the energy and the elapsed time.

If you want to see the tutorial, check his page here.



Help me by sharing this post

Go back ↞ See other blog→
ADVERTISERS
PCBWay Ad

AFFILATE

Gearbest SG - 700 Satellite Navigation Foldable RC Drone Quadcopter - WHITE 720P WIFI FPV CAMERA
SG - 700 Satellite Navigation Foldable RC Drone Quadcopter - WHITE 720P WIFI FPV CAMERA only $46.99

Gearbest Xiaomi AMAZFIT Heart Rate Smartwatch - BLACK INTERNATIONAL VERSION
Xiaomi AMAZFIT Heart Rate Smartwatch - BLACK INTERNATIONAL VERSION only $89.99

Gearbest FeiLun FT011 2.4GHz Brushless RC Racing Boat - BLACK AND WHITE AND RED
FeiLun FT011 2.4GHz Brushless RC Racing Boat - BLACK AND WHITE AND RED only $96.99