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

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

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.

Step 1: Watch the Video!

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.

Step 2: Connections.

Picture of Connections.

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

Step 3: Download the Library.

Download the Adafruit Library for INA219 from this link:

Step 4: Arduino Sketches.

Picture of Arduino Sketches.

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).

Step 5: Voltage Divider and Resolution of ADC.

Picture of Voltage Divider and Resolution of ADC.

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

Step 6: Done!

Picture of Done!

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


Ejay11 made it! (author)2017-09-23

I made only for voltage measurement

Tesalex (author)Ejay112017-09-24

Wow. That looks great. Congrats :)

Ejay11 (author)Tesalex2017-09-25

Learning is fun with tutorials like these :)

ToddR40 (author)2017-07-31

This was very well explained and highly informative. The video is easy to follow and concise enough not to lose my interest. I have an extra Uno on route and I will definitely make this, adding an lcd monitor for it.

Tesalex (author)ToddR402017-07-31

This means a lot. Thanks.

About This Instructable




Bio: Make your life more lazy and awesome by the touch of electronics. Check out awesome project videos and learn how to build them easily and ... More »
More by Tesalex:RGB Matrix + Spectrum AnalyzerUltrasonic Sensor Based Water Level IndicatorAdd Bluetooth to Your Helmet (Call and Music)
Add instructable to: