Measure Current and Voltage Using a Microcontroller || Voltage Divider || ACS712 || INA219

by Tesalex in Circuits > Arduino

10154 Views, 27 Favorites, 0 Comments

Measure Current and Voltage Using a Microcontroller || Voltage Divider || ACS712 || INA219

Cover.jpg

If you ever felt the need of continuously monitoring the voltage or current or both in a project, of any device or the project itself, you have come to the right place. In this video, I'll show you how you can measure current and voltage with your microcontroller and hence you can perform your said operation according to it. You'll learn what can we do with the mostly unused AREF pin of Arduino, Voltage Divider and how to use ACS712 and INA219.

Watch the Video!

Measure Current and Voltage using a Microcontroller || AREF || Voltage Divider || ACS712 || INA219

The video contains all the steps for calculating voltage and current. There are also more than one method for each, so that you can use what suits your needs.

Connections.

WP_20170720_10_28_30_Pro.jpg
WP_20170720_10_28_48_Pro.jpg
WP_20170720_10_37_47_Pro.jpg
WP_20170720_10_38_04_Pro.jpg
WP_20170725_00_24_35_Pro_edited.jpg
WP_20170720_16_07_49_Pro.jpg
WP_20170720_16_07_58_Pro.jpg
WP_20170720_16_08_12_Pro.jpg
WP_20170721_10_29_44_Pro.jpg
WP_20170721_10_30_04_Pro.jpg
WP_20170721_10_30_12_Pro.jpg
WP_20170721_10_30_25_Pro.jpg
Capture.JPG

This step contains the images for connection for various methods and also schematic representation of Hall Effect in a semiconductor.

Download the Library.

Download the Adafruit Library for INA219 from this link: https://github.com/adafruit/Adafruit_INA219

Arduino Sketches.

Capture 2.JPG

The sketches for different sensors are attached in this step.

Be sure to change the '5' to you reference voltage in case you are using analog reference (see picture).

Voltage Divider and Resolution of ADC.

WP_20170725_16_21_50_Pro_(2)[1].jpg
WP_20170725_16_22_03_Pro[1].jpg

The picture contains formula for voltage divider output voltage and some resolution thingy.

Done!

WP_20170721_10_34_09_Pro.jpg

Feel free to ask any questions and leave comments.
Thank you :)