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

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
ANENG
cooleme TV
PCBWay Ad



AFFILATE



Anet A8







Gearbest Anycubic I3 MEGA Full Metal Frame FDM 3D Printer
Anycubic I3 MEGA Full Metal Frame FDM 3D Printer only $379.99 with coupon "Anycubici3ch"
Gearbest Anet A8 Desktop 3D Printer
Anet A8 Desktop 3D Printer only $145.99 with coupon "A8KIDA"


Gearbest Tronxy X3S Aluminum Frame LCD Screen  3D Printer DIY Kit
Tronxy X3S Aluminum Frame LCD Screen 3D Printer DIY Kit only $259.99 with coupon "GBX3S"


Gearbest Min DS202 Oscilloscope 113€
Min DS202 Oscilloscope 113€


Gearbest UTD2052CL DIGITAL 2-ch Oscilloscope 275€
UTD2052CL DIGITAL 2-ch Oscilloscope 275€


Gearbest UT139C True RMS Digital Multimeter 29€
UT139C True RMS Digital Multimeter 29€


Gearbest SBK8586 Soldering station Hot Air + Iron 63€
SBK8586 Soldering station Hot Air + Iron 63€


Gearbest BAYANGTOYS X21 Brushless RC Quadcopter
BAYANGTOYS X21 Brushless RC Quadcopter 153€