How measure DC Voltage and Current and build Energy meter with LCD Display | Lesson 104

  Переглядів 25,432

Robojax

Robojax

День тому

In this lesson we learn how to use shunt resistor to measure the current using Arduino. then we show you how to display the current on LCD1602. Then we learn how to measure any DC voltage using Arduino and the same time measuring current to calculate the power and energy and display it on LCD or serial monitor.
This lecture is part of Arduino Step by Step course that starts here • Lesson 00 What is Ardu...
The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
*** Purchase Shunt resistor from ***
Amazon US: amzn.to/3uF0mzq
Amazon Canada: amzn.to/2R4KPdm
Amazon Europe: amzn.to/3exy3gH
** Purchase LCD2004 Display with I2C from **
Amazon USA: amzn.to/3uIqAAY
Amazon Canada: amzn.to/2RLGKLd
All Europe Amazon: amzn.to/3y5t9yV
AliExpress: s.click.aliexpress.com/e/_AlBp3N
Banggood www.banggood.com/custlink/vGK...
** Purchase Arduino Start Kit **
Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
AliExpress: s.click.aliexpress.com/e/_9uc7Xe
Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
eBay: ebay.us/B1JWLi
***** Purchase Authentic Arduino Uno from ***
Amazon USA: amzn.to/2KApAwK
Amazon Canada: amzn.to/37LZ8sW
All Europe Amazon: amzn.to/36YDSzn
Download Arduino code for this video:
robojax.com/course1/?vid=lect...
Use Chapters from timeline or click on the time
00:00 Project 1: Introduction to Shunt
7:19 Arduino Code for Shunt Resistor Explained
13:15 Demonstration: Measuring current using Shunt resistor
17:23 Demonstration: 100A Shunt
20:28 Project 2: Shunt Current on LCD display
22:27 Code for Shunt current on LCD
25:30 Demonstration: Measuring current using shunt and displaying it on LCD
27:27 Demonstration: 100A Shunt and LCD
29:31 Project 3: Measuring Voltage and Current to make Energy Meter
32:22 Voltage divider to measure any DC voltage using Arduino
36:27 Energy meter wiring explained
40:20 Energy meter Arduino Code explained
48:07 Demonstration: Arduino Shunt Energy Meter with LCD display
49:54 Demonstration: Arduino Shunt Energy Meter without display
Tutorial by Ahmad Shamshiri form Canada
****************************
Worth $200 Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link bit.ly/donate-robojax
Power Supply I use:
DC 30V 60A Power supply: s.click.aliexpress.com/e/_98Ah5c
DC 60V 30A Power supply: s.click.aliexpress.com/e/_APyPJ0
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Follow me on TikTok : tickTok.com/@robojaxtv
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/
#robojax #robojaxArduinoCourse #robojax_
*** AFFILIATE PROGRAM ***
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

КОМЕНТАРІ: 59
@electronic7979
@electronic7979 Рік тому
Helpful video 👍
@keeper1855
@keeper1855 Рік тому
Thanks for your hard work!
@Electorr
@Electorr Рік тому
great . shokran.
@nadasahraoui8392
@nadasahraoui8392 Рік тому
thenk you, you are the best
@robojax
@robojax Рік тому
You are the best. شکرا
@yousaftoki1599
@yousaftoki1599 Рік тому
Amazing project sir.....
@robojax
@robojax Рік тому
Thank you! Cheers!
@jendelakelas501
@jendelakelas501 Рік тому
what app do you use to change the output current setpoint
@sureshsukumaran7474
@sureshsukumaran7474 5 місяців тому
Thanks
@arhamupadhye5157
@arhamupadhye5157 6 місяців тому
Hii My question is when you set the analog refrence to internal i.e 1.1v won't it affect the readings of voltage coming from voltage divider?
@AI.AUTOMATION.
@AI.AUTOMATION. Місяць тому
Hii sir In my project my dc voltage is 450v dc 40A and i need to measure the current with Arduino it's safe to Arduino to connect control ground and arduino ground?? Please reply love from India 🇮🇳❤
@sayax4464
@sayax4464 Рік тому
Hello I am in sti2d terminal and I have a project to present which is the smart cane for blind people and in this project I must use an accelerometer which plays the role of the motion detector and I must add the alarm clock/sleep function it that is to say when the cane moves towards an axis it lights up and when it does not move it is off. I need help because I'm really lost
@SimjetAU
@SimjetAU Рік тому
AC current and voltage project with LCD would be really good..there is very little info on the internet other than the Emon stuff
@robojax
@robojax Рік тому
Here is current sensor for Ac ukposts.info/have/v-deo/o6qJo6uKsayU0Ww.html
@edinfific2576
@edinfific2576 Рік тому
Isn't there a sort of an averaging function that can be placed in the code, so that your current readings contain less noise and variations?
@robojax
@robojax Рік тому
I have shown how to take the average. The rest depends on the tolerance of the shunt resistor. Get better shunt resistor.
@jeffvenqueleir2036
@jeffvenqueleir2036 Рік тому
nice video but mabe you can give a example in the futur with a ads1015 or a ads1115 for a shunt and voltmeter with a voltdivider
@robojax
@robojax Рік тому
I have got converter and God willing will make the video. Thanks
@Giannix
@Giannix Рік тому
helpful video😍🤟 hmm just wanted to ask if i wanted to show the (Ah) of the battery instead of energy. what would be the code?
@robojax
@robojax Рік тому
Hi, I have explained the code fully and if you know how to calculate the capacity of battery with pen , easily you can do it as we have all the information needed to calculate capacity. Just learn the formula and then come back to the video and use the values from the code.
@arhamupadhye5157
@arhamupadhye5157 Рік тому
Hey!! Great explanation!!! Can you please write this code for displaying voltage and current in tm1637 display
@robojax
@robojax Рік тому
Hi, TM 1637 is just junk. Very hard to use with decimal points as I spent hours in many days . Then gave up. I found a display that can display easily any value here is the video ukposts.info/have/v-deo/bJF0m36FgaJqzI0.html just watch and it would be very each to use the energy meter code and display it.
@arhamupadhye5157
@arhamupadhye5157 Рік тому
Hey!! thanks for the support, but the problem is hk16k33 is not easily available. What if I wanted to display only the current and voltage part from the energy meter in a 16x2 lcd display. Please tell the changes that I would have to make in the code!!
@robojax
@robojax Рік тому
Hi, the HT16K33 should replace this junk TM1637. I have made so many videos unfortunately for TM1673. I wish I could delete them . I remember when I found the HT16K33 I was like "yes I found it" kind display. I have the link to purchase under the above video and I am also selling it on Amazon. Good luck.
@mohammadmohd2541
@mohammadmohd2541 Рік тому
I have a question, since the current is suppose to move in the bath witch has the lowest resistance and assuming that that the resistance of the load is higher than the resistance of the voltage measuring circuit, then this would create a problem. The whole current would be moving in the voltage measuring circuit. Do you have an explanation?
@robojax
@robojax Рік тому
This will not happen. Measuring voltage is separate from current.
@raghvendrasutar9880
@raghvendrasutar9880 11 місяців тому
Hello sir thank you for the helpful video, Can I measure current upto 500A and voltage upto 35V with your circuit and code ?
@robojax
@robojax 11 місяців тому
Hi, it seems you have not watched the video. Please watch
@raghvendrasutar9880
@raghvendrasutar9880 11 місяців тому
@@robojax I watched, just confirming that because I am doing a project in which I have to measure current upto 500A and voltage upto 35V and I am new in electronics. If you ans me then it will be very helpful. Thank you 🙏🏿
@raoufselwaness
@raoufselwaness Рік тому
can i use the same method to measure 10 -15 amps through 0.1 ohm resistor thanks in advance
@robojax
@robojax Рік тому
Yea you can use it with the shunt . Just calculate the mC value of the resistor and A ratings. Like 20A 30mV
@raoufselwaness
@raoufselwaness Рік тому
@@robojax thanks a lot 👍
@herrkronen9694
@herrkronen9694 5 місяців тому
Hi ! Does this method work for AC Current? or is neccesary to make constant sampling to get Peak to Peak Current and then pass it to IRMS Current ? Plz
@robojax
@robojax 5 місяців тому
if you convert it DC and then do what you said, it should work.
@ALLINONE-ec9jq
@ALLINONE-ec9jq Рік тому
please add bidirectional dc current measurement with esp32
@robojax
@robojax Рік тому
It would be Very useful and I put it on my list. Thanks
@fellpower
@fellpower 5 місяців тому
The code in the link IS NOT the code at the video ^^
@weisichen6438
@weisichen6438 9 місяців тому
can use the arduino to track the DC charging date and save it to excel?
@robojax
@robojax 9 місяців тому
See this video fully ukposts.info/have/v-deo/jJSmh4WPbXl-02g.html
@mostafaelwatidy355
@mostafaelwatidy355 Рік тому
Can it be used with an op amp to read current less 10 amps?
@robojax
@robojax Рік тому
No. Hyde smaller shunt for any current you want . I thought there won’t any questions as I explained the tolerance of 6.5% for 100A shunt . Please b watch carefully
@user-zs5nn2pd6i
@user-zs5nn2pd6i Рік тому
@@robojax Hello, What´s your recomendation for this case to measure current lesst 10 amps?
@mazharsultan492
@mazharsultan492 Рік тому
Dear robojax How can i used this code for arduino dc energy meter for battery high voltage and low voltage protection pls help me
@robojax
@robojax Рік тому
It can work with virtually any voltage. For protection, it has already action and I have show how to take action. You just need use a relay to connect or disconnect something when your protection condition is met.
@mazharsultan492
@mazharsultan492 Рік тому
@@robojax I was tried but code is not complied pls help me how can I take action both current voltage protection with relay
@KuntalGhosh
@KuntalGhosh Рік тому
Do this with stm32 or esp8266 or esp32 .
@robojax
@robojax Рік тому
I will see if I can. My statistics show very few people have interests. I try to make videos that most of my audience benefit from it.
@user-xz8ew5ki4n
@user-xz8ew5ki4n Рік тому
Hello brother. I want to move the servo 180 degrees if the voltage reading is less than 20 and I want to go back to normal if the voltage reading is more than 20 volts .. Can you give me the additional code
@robojax
@robojax Рік тому
Hello, all my videos are to teach. So learnd it from this video ukposts.info/have/v-deo/fV15YWqgnq-Y23U.html
@user-xz8ew5ki4n
@user-xz8ew5ki4n Рік тому
@@robojax i need the code . i saw your video but useless
@robojax
@robojax Рік тому
just go there and get it. All videos have description below and there is link. didn't you see the "Roboajx.com" on the video?
@nandkishoreparmar4016
@nandkishoreparmar4016 Рік тому
can we measure negative dc current also
@robojax
@robojax Рік тому
no. Just connect positive and negative in reverse and measure.
@SouravDutta-fj6zc
@SouravDutta-fj6zc 11 місяців тому
Can you please implement the same project in NodeMCU ESP8266 ?
@robojax
@robojax 11 місяців тому
I spent over a week to write code and library and test the project to make it work Z I just checked it and in 363 days it was been watched about 12000 time and brought me $29. Now if we calculate hourly earnings it is $0.58/hour . My knowledge and experience worth $100/h and this UKposts is not appreciating knowledge. Only prank and junk is earning. Not worth working on it. I am sorry for myself.
@the_entertainer
@the_entertainer Рік тому
Can i get the code?
@robojax
@robojax Рік тому
Hi, I might have shown robojax.com more than 10 times on the screen. Beside all videos on UKposts below them there is "show more" which is called description. I have link in the description of this video.
@TheUnofficialMaker
@TheUnofficialMaker Рік тому
don’t use on ac could kill you. use ct’s. don’t use on high voltage!
@robojax
@robojax Рік тому
This is for DC only.
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Переглядів 191 тис.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 2,4 млн
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
I PUT MY ARMOR ON (Creeper) (PG Version)
00:19
Sam Green
Переглядів 4 млн
Arduino based current meter with i2c LCD screen
12:50
Electronoobs
Переглядів 110 тис.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 30 тис.
Different Ways for Measuring Current With Arduino
13:32
Electronoobs
Переглядів 66 тис.
How to Make a Shunt Current Sense Resistor
11:17
ElectroBOOM
Переглядів 2,3 млн
Current Sense Amplifiers (1/2): Why not to use an OpAmp (CMRR etc.)
37:09
Robert's Smorgasbord
Переглядів 85 тис.
How Potentiometer Works - Unravel the Mysteries of How potentiometers Work!
18:12
The Engineering Mindset
Переглядів 245 тис.
Нужен ли робот пылесос?
0:54
Катя и Лайфхаки
Переглядів 813 тис.
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 522 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 817 тис.