@@ogomah The Pi does not have analogue inputs so would not work directly with some of these sensors. You would need an ADC / analogue to digital converter. I have moved from Pi Zero's as sensor devices to Arduino for this reason. I'm now moving again to ESP32 as they have built in WiFi / Bluetooth and analogue inputs :) had fun along the way so far and they are far cheaper to replace when the magic smoke escapes :)
you are also one bit to high with the ADC the 10 bit analog converter go from 1-1023 not to 1024. the formula is Decimal = (2^bit)-1 because it have to show 0 as well.
I have wanted this for quite some time. Thank you very much for all the tutorials. I learned so much from you that I'm short of words to express how thankful I am.
It's been said many many times before but I have to add myself to the long list of people who LOVE you videos! I own a few invasive meters for tracking my solar and wing turbine efficiency but I look forward to building my own with these modules. Also looking forward to the AC tutorial! Please never stop teaching us. You are a valuable resource.
I had to watch this one again! Years ago, I was more concerned with voltage. Recently, I needed to know more about current. Thanks for what you do. As a retired programmer I now play with the other side of the coin. Thanks!😊
To make this code more efficient, before the setup() method but after R1 and R2 are defined, do this: constexpr float resistance_ratio = R2 / (R1 + R2); This will cause the compiler to do the math for you, so there's no penalty at startup. Then, in the loop: in_voltage = adc_voltage / resistance_ratio; This may well save a couple of operations in each iteration of the loop: The addition of the two resistance values, and (more importantly) the division operation involved in finding the resistance_ratio. Since there's no floating point unit on the Arduino, any floating point operation you can eliminate will be a good thing. Note that it's entirely possible that the compiler will have noticed you're doing this operation each time through the loop and optimize it for you automatically--but unless you examine the assembly code you won't really know.
I've been looking around but....not satisfied but when I played this video randomly and heard you voice I became happy 😁 and I'm sure I'll find all I'm looking for concerning this topic. Thanks for the tutorial sir 👏
4:12 A correction: A voltage divider will decrease the input impedance. The input impedance of the ADC is extremely high. For a voltage divider to be accurate, it must be much lower in resistance than the input resistance of the ADC. Certainly in this case, it is MUCH lower. I find it a good idea to insert a resistor between an external reference voltage and Aref. The reason being, when the microcontroller is first powered up, Aref is connected internally to Vcc until your setup alters it.
Bill, This was another great video from you. I was really excited when I saw the topic this video was on. I've watched a video Robojax released on the topic a while back. But whenever you cover topics you tend to be more thorough in your coverage and expand my knowledge on the content. I had no idea what the external voltage reference pin was for. The increased accuracy was really good to know. And now I know how to use that Hall Effect sensor that came with a sensor kit I purchased a while back. Thank you very much for taking the time to make this wonderful video and share it with us all. Jonathan
Excellent video - like every single one is. As i'm a non nativ english speaker i often get better information from your videos then from the ones in my native language 👌😎 thanks a lot !
Yet another amazing video. Your explanation is so easy to understand! The pace is also excellent. Keep us enlightening. Let the world be knowledge rich.
I was just making a data logger for voltage and current today. What a coincidence! Was encouraged to see the content of the video matches what I’m doing. Great video :)
Great demonstration as always. Thank you! Also I didn't realise that if you are using discreet resistors instead of the voltage sensor, it makes a difference which end of your resistor array connects to the positive of the source and which end connects to the ground. Reading your article was explained much better.
Thanks to you I got my first three ESP32s and those Sunfounder 5 breadboards for $10 is amazing price on Amazon. Putting the two short boards side by side and connecting them with the power rails still attached makes the width across the two power rails the Perfect size for putting the ESP32-WROOM-32D DevKitC v4 boards across. Pins line up perfectly. Passing on the tip. Digital output from ESP is 40 mA so looking at dropping that to Arduino 20 mA levels to interface the two. Arduino defaults to 1024 values on ADC but most will support manually setting it to 4096 values if you really need that resolution.
Thanks for covering DC current measurement! I need to setup an Arduino circuit in my RV that checks to see if someone left the water pump running. If the water pump has been running for more than 15 minutes I want the Arduino to break the circuit. Current measuring and relay (normally closed) with the Arduino should do the trick.
Nice vid, thanks! Small note: at 23:38, you do not divide by 1000 because you want millivolts, but rather to get the average of the 1000-sample accumulation from the loop before.
Thanks for this great tutorial. I'd like to note however that the information @ 3:10 is somewhat misleading. There is only one analog-to-digital conversion unit in these microcontrollers and the inputs are multiplexed, so saying, for instance, « _there are 16 ADC's in the Mega_ » is not quite correct; instead « _there are 16 analog channels, multiplexed_ ».
Very good training. I only had bad experience with PIC microcontrollers if I need to take measurements lower than 200mV. It works still works but it is non linear comparing with the higher measure till 5 volt, who are the same result as the Voltmeter Fluke or R/S. External reference and 12 bits controllers gives me the same results. So the low site of the A/D converter is non linear. I like some comment on this.
Raspberry released their very first Microcontroller, the Pico I think they call it. To me it was less interesting than ESP32 but you might want to cover it. Seems like a non wireless microcontroller with a massive amount of ram but that’s all it seemed to me on cursory look to have going for it. To me microcontroller doesn’t need heaps of ram and I’d be interfacing to raspberry pi zero w wireless microcomputer if I need the big boost on processing power and ram while letting the microcontrollers do what they do best with their strengths of always on and instant or near instant execution of programming.
Excellent topic... this is always a challenge especially current over time... and graphing it. Also, charging up Lithium batteries using these tools would be awesome since you can control the cut-off point in time per the readings to get many batteries "topped off" at the same values.
AGH! what an idea for a dip switch.. makes me feel like a troglodyte .. Shine on brother! This was a good one for me.. it seems you always cover projects I am thinking about doing.. Carry on!
Hi, you can use an homemade shunt you measure precisely and then calibrate using a variable load (eg. 0.15 ohm, and have the load downstream. You can achieve decent accuracy when using avr 1.1 volt internal reference and the voltage drop is greatly acceptable. The range is 30mA to above 2000 mA For the voltage, just do a resistive divider adapted to your voltage.
This video was really helpful! Although I have a question, my current output is giving -0.12 Amps with no load... but when I use a LED diode it went up to -0.05 Amps. is this due to the small current that its reading that's why its in the negative?
Thank you for this video! I was searching for a highly accurate volt meter and the external voltage reference was just the ticket. I do have two questions though. A) how accurate is the ina219. The reason I want an accurate volt meter is I am using it to check battery cells while they charge and to shut the charger off when the batteries reach the desired voltage. B) Since the ina219 uses scl and sda how can I attach an external display such as a ssd1306? How do I change the addresses so they don’t conflict? Thanks again. A brilliant job of explaining arduino voltmeter!
I want to made a 'battery monitor' for my van's 12v house system. My current plan is using an esp32 board and INA260, both from adafruit. The INA260 supposedly has a maximum current capacity of 15A, and my maximum load (with all lights on, heater on, etc) could be about 15A or a little more. I'm wondering if there are any devices like the INA260 but with higher capacity? Or can I use a higher capacity shunt inline, and then use the INA260 to read the voltage drop across the shunt and then calculate current. I'm pretty new to this 'hardware' stuff, this being my first time experimenting with microcontrollers, and I'm slowly reading "Practical Electronics for Inventors" by Scherz and Monk. Your videos have also been a great help for me understanding this new realm.
If I have a 3 V coin battery that lights a light, how can I make a check to see if there is voltage and make a counter of how many times the light comes on and off. So basically, it would track the amount of times the flashlight was turned on and off and the duration it was on.
Bill, this is yet another "thumbs up" video and I'm looking forward to Part 2. Also, could you set your future videos to have (automatically generated English) closed-captions? I wasn't able to turn them on due to no "CC" at the bottom of the window.
Could you please make a video about AC current/voltage reading as well as you said? i've looked around for one, but the ones that i have seen so far aren't as good as yours.
Thanks for the tutorial with such an excellent quality content... I want to make a DC voltage measurement circuit for measuring and auto logging the cell voltages (will be in the order of 1.2V) of a big battery set to an SD card.. But the problem is, how to tackle the negative input (bcz the person who takes the measurements will reverse the probes between positive and negative terminals of cells) - plz tell me any solution
At 13.00 you mention looking at the sketch using the lm4040 voltage reference but then cut directly to the testing of the circuit. An editing error maybe?
I'm trying to build a device that will turn on my well pump from my solar panels. That would sense Peak voltage and run the pump for a certain amount of time, and then divert and split the power back to 36 V to charge my lipf po 4 batterie pack. The well pump runs on 120 volts, with the solar panels in series. 300w solar panels, 36 V. But I need the amperage to charge the batteries, and run the 4 solar panels parallel while charging batteries. I believe many people need this system, keep your well pump from coming on randomly over and over again which wire's out the well pump. Thanks for your great videos especially these days very useful for off-grid. Still looking to make a lifep04, lithium BMS from Arduino. Once again thanks bro awesome teaching thank you
Informative video. But I have a question. If current sensor reads out both current and voltage why bother using voltage only sensor? Just curious, why did you need a lantern for a load? Could you just measure a current going into your mcu?
Hello, I have a 30W solar panel with Vmpp 17.2 V and Impp 1.74A, I'm using the ACS712 5A module but it's always giving me wrong measurements. not more that 4V actually. what do you think is the problem and how can I fix it? thanks
Thank you for this tutorial. If I use esp32 - should I change float ref_voltage to 3.3 ? Because when I use 5.0 - on 13V it shows 18.9V-19.4V And is it possible to add LM4040 / analogReference(EXTERNAL) on esp32 ? when I'm trying to compile - it gives me an error
i have a question that doesn't really have anything to do with the video but i hope that i can still get an answer. to me it makes sense that esc's are connected to a pwm digital output of the arduino. but i've seen an illustration where the esc's are connected to both pwm and normal digital outputs. now i'm confused whether the esc's need a pwm output or not.
Good day sir! I am using ACS712ELCTR-30A-T and I strictly follow your instructions on this tutorial but I am not getting close to the values you have. when there is no load connected to the sensor, the Vout fluctuates from 2.48 and 2.49 while the current is changing from -0.26 and -0.22. When load is connected, the Vout reaches 2.51 while current is at around 0.13 to 0.11 amps. My ammeter reading is at around 0.31 to 0.35 amps. What should I do? Thank you so much!
Same issue using same hardware and exact code. Power supply indicates 3.00v/0.271Amps yet the serial output is showing 2.48v/-0.377 Amps with a load. When the load is switched OFF, the power supply indicates 3.00v/0.00 Amps and 2.49v/-0.413 Amps on the serial output. Anyone out there able to tell me/us what we're doing wrong or something?
The “delay” set for voltage measurements is 500 ms. What’s the shortest delay possible with a Uno? I’m interested in getting short spikes that might only last ms. To avoid writing out massive amounts of data, I’d program the Uno to find the maximum value within a time period of say 100 ms.
PSA: I built a voltage divider network two nights back with resistors that came in my Arduino kit. The 330 Ohm and 100 Ohm is what I used. It turns out the 330 Ohm was actually just 282.7 Ohms when measured with my DMM. I will have to go back with a magnifier these days with such small parts and read the color code on the resistor. I assume it was 10% tolerance but 282.7 is 16% less than the stated 330 Ohms on the resistor way more than 10% out of whack. Usually 3 band colors is 20% or the worst tolerance/cheapest of parts but 4 band colors are 10% (silver) or 5% (gold) tolerance. If it turns out to be a 4 band resistor I am going to have to check all the Chinese made resistors in my kit. Once I discovered the large deviation I could feed the actual Ohm value back into my formulae and everything started agreeing with each other again in what I saw versus what I expected.
what do you use the AREF pin for, what does it do and if I have a solar cell powering my weather station could I hook up another set of wires to attach to the sensor?
It is possible to run arduino code using int main() instead of setup and loop. if you look at the bootloader code on the arduino, it uses the int main() function and calls setup and loop, but if you substitute setup and loop for int main(), then what would be run in the setup is run in the main function and the loop code can be run in a while(true) loop.
Hi Bill, can you please educate me in whether I could use Hx711 dual channel module to convert the acs712 values to corresponding ac voltage. I am working on a project using esp8266 and unfortunately it has only one adc. Now I could use ADS1115 but it costs around 7 times compared to Hx711 module. Can please help me out?
Thanks for the video. Very helpful. What discrete resistor values (for the resistor array) do people suggest when measuring battery voltage, for a battery powered Arduino project? I had a datalogging project in the past. When the rechargeable 9V battery died the datafile would almost always be corrupted and I lost all the data. I tried to get the power as low as I could. And I ended up adding two 10kOhm resistors for a voltage divider, read the voltage in between them, and programmed the Arduino to stop logging before the voltage got too low. It worked, but I wondered if higher resistor values would work better to reduce the current draw of the two resistors even more. So I was curious what other people used.
Dear Sir, please recommend or advice.. I want to create a system based on Arduino and stepper motors along with other components so that the stepper motor ON and OFF is triggered in the voltage or amperage range (Min, Max) from other systems. Thank You
I missed a section on using the LM4040 when I assembled this video, however, it is in the article. Sorry about that!
excellent video, would he have a version with the Raspberry
@@ogomah The Pi does not have analogue inputs so would not work directly with some of these sensors. You would need an ADC / analogue to digital converter. I have moved from Pi Zero's as sensor devices to Arduino for this reason. I'm now moving again to ESP32 as they have built in WiFi / Bluetooth and analogue inputs :) had fun along the way so far and they are far cheaper to replace when the magic smoke escapes :)
you are also one bit to high with the ADC the 10 bit analog converter go from 1-1023 not to 1024. the formula is Decimal = (2^bit)-1 because it have to show 0 as well.
Can you do it for ac current measurement plzz, or suggest me some article or something like that.It's urgent
@@ogomah I had same issue, but then i used the arduino as a peripheral(slave) to raspberry pi(Master). Works Awesome!
I have wanted this for quite some time. Thank you very much for all the tutorials. I learned so much from you that I'm short of words to express how thankful I am.
It's been said many many times before but I have to add myself to the long list of people who LOVE you videos! I own a few invasive meters for tracking my solar and wing turbine efficiency but I look forward to building my own with these modules. Also looking forward to the AC tutorial! Please never stop teaching us. You are a valuable resource.
Thank you for speaking clear english. I am from Germany, but I uderstand nearly every word. And the content is brilliant too! Thanks again👍
I had to watch this one again! Years ago, I was more concerned with voltage. Recently, I needed to know more about current. Thanks for what you do. As a retired programmer I now play with the other side of the coin. Thanks!😊
To make this code more efficient, before the setup() method but after R1 and R2 are defined, do this:
constexpr float resistance_ratio = R2 / (R1 + R2);
This will cause the compiler to do the math for you, so there's no penalty at startup.
Then, in the loop:
in_voltage = adc_voltage / resistance_ratio;
This may well save a couple of operations in each iteration of the loop: The addition of the two resistance values, and (more importantly) the division operation involved in finding the resistance_ratio. Since there's no floating point unit on the Arduino, any floating point operation you can eliminate will be a good thing. Note that it's entirely possible that the compiler will have noticed you're doing this operation each time through the loop and optimize it for you automatically--but unless you examine the assembly code you won't really know.
This is why we have the comments section, to get useful suggestions to great videos. 👍🏻
I wanted exactly this for my PhD research. Thank you so much for this tutorial
I've been looking around but....not satisfied but when I played this video randomly and heard you voice I became happy 😁 and I'm sure I'll find all I'm looking for concerning this topic. Thanks for the tutorial sir 👏
4:12 A correction: A voltage divider will decrease the input impedance. The input impedance of the ADC is extremely high. For a voltage divider to be accurate, it must be much lower in resistance than the input resistance of the ADC. Certainly in this case, it is MUCH lower.
I find it a good idea to insert a resistor between an external reference voltage and Aref. The reason being, when the microcontroller is first powered up, Aref is connected internally to Vcc until your setup alters it.
Thank you for including the hall effect sensor in the video.😀
Bill,
This was another great video from you. I was really excited when I saw the topic this video was on. I've watched a video Robojax released on the topic a while back. But whenever you cover topics you tend to be more thorough in your coverage and expand my knowledge on the content. I had no idea what the external voltage reference pin was for. The increased accuracy was really good to know. And now I know how to use that Hall Effect sensor that came with a sensor kit I purchased a while back. Thank you very much for taking the time to make this wonderful video and share it with us all.
Jonathan
Excellent video - like every single one is.
As i'm a non nativ english speaker i often get better information from your videos then from the ones in my native language 👌😎 thanks a lot !
Yet another amazing video. Your explanation is so easy to understand! The pace is also excellent. Keep us enlightening. Let the world be knowledge rich.
I was just making a data logger for voltage and current today. What a coincidence! Was encouraged to see the content of the video matches what I’m doing. Great video :)
Great demonstration as always. Thank you!
Also I didn't realise that if you are using discreet resistors instead of the voltage sensor, it makes a difference which end of your resistor array connects to the positive of the source and which end connects to the ground. Reading your article was explained much better.
Thank you, your communication on the specific topic is very clear and exhaustive. Bye
Thanks to you I got my first three ESP32s and those Sunfounder 5 breadboards for $10 is amazing price on Amazon. Putting the two short boards side by side and connecting them with the power rails still attached makes the width across the two power rails the Perfect size for putting the ESP32-WROOM-32D DevKitC v4 boards across. Pins line up perfectly. Passing on the tip. Digital output from ESP is 40 mA so looking at dropping that to Arduino 20 mA levels to interface the two. Arduino defaults to 1024 values on ADC but most will support manually setting it to 4096 values if you really need that resolution.
Fantastic tutorial. Keep up the great work. I am planning to incorporate this into my variable bench power supply.
Everytime I start a new project, I find a vid you've made :)
Thank you for covering the INA219!!!! :)
Great episode. Appreciate your hard work! Keep it going!
Excellent! Just what i was looking for! Thanks, Bill!
Another great episode!
Thanks for covering DC current measurement! I need to setup an Arduino circuit in my RV that checks to see if someone left the water pump running. If the water pump has been running for more than 15 minutes I want the Arduino to break the circuit. Current measuring and relay (normally closed) with the Arduino should do the trick.
Thank you so much for this informative video, You explain so well, God Bless you and your Family.
A very useful video, thanks for all the effort you put into these, they are a great learning source.
Nice vid, thanks! Small note: at 23:38, you do not divide by 1000 because you want millivolts, but rather to get the average of the 1000-sample accumulation from the loop before.
I was going to mention the same thing but I just happen to check if anyone else posted it too!
Thanks for this great tutorial. I'd like to note however that the information @ 3:10 is somewhat misleading. There is only one analog-to-digital conversion unit in these microcontrollers and the inputs are multiplexed, so saying, for instance, « _there are 16 ADC's in the Mega_ » is not quite correct; instead « _there are 16 analog channels, multiplexed_ ».
Nicely explained 👏👏. As always
I play your playlist through my earbuds at night when I go to bed and in the morning when I wake up I know all of this stuff, Thanks!
Very helpful video 👍
Interesting as always👍
I would have liked to see the amp meter (instrument) in the last test too
Thanks for sharing your knowledge to all of us👍😀
Very good training. I only had bad experience with PIC microcontrollers if I need to take measurements lower than 200mV. It works still works but it is non linear comparing with the higher measure till 5 volt, who are the same result as the Voltmeter Fluke or R/S. External reference and 12 bits controllers gives me the same results. So the low site of the A/D converter is non linear. I like some comment on this.
I have been wanting to build an accurate wattmeter for audio speakers for AGES, so an AC version of this video would be VERY COOL...
Raspberry released their very first Microcontroller, the Pico I think they call it. To me it was less interesting than ESP32 but you might want to cover it. Seems like a non wireless microcontroller with a massive amount of ram but that’s all it seemed to me on cursory look to have going for it. To me microcontroller doesn’t need heaps of ram and I’d be interfacing to raspberry pi zero w wireless microcomputer if I need the big boost on processing power and ram while letting the microcontrollers do what they do best with their strengths of always on and instant or near instant execution of programming.
Excellent topic... this is always a challenge especially current over time... and graphing it. Also, charging up Lithium batteries using these tools would be awesome since you can control the cut-off point in time per the readings to get many batteries "topped off" at the same values.
Use a timer and take a measurement every x seconds and use an sd card for storage.
AGH! what an idea for a dip switch.. makes me feel like a troglodyte .. Shine on brother! This was a good one for me.. it seems you always cover projects I am thinking about doing.. Carry on!
Awesome video as always. Cannot wait until you get your hands on the ESP32-C3-DevKitC so we can see what this new module has on offer!
very nice explanation prof
Please can you explain what you mean when you said the ADC will not "load down" the circuit it's measuring when increasing the input impedance?
Excellent! I've had a projects in mind that need voltage/current measuring.
Hi, you can use an homemade shunt you measure precisely and then calibrate using a variable load (eg. 0.15 ohm, and have the load downstream. You can achieve decent accuracy when using avr 1.1 volt internal reference and the voltage drop is greatly acceptable. The range is 30mA to above 2000 mA For the voltage, just do a resistive divider adapted to your voltage.
Fantastic presentation - A lot of really good information - Thanks
Can you explain the 1000 loop on the hall effect sensor, I don't understand from that loop how you get the average?
Exactly what i was looking for. Thank you so much.
Thank you! Couple of days I’ve got necessity of measuring current and voltage using arduino.
This video was really helpful! Although I have a question, my current output is giving -0.12 Amps with no load... but when I use a LED diode it went up to -0.05 Amps. is this due to the small current that its reading that's why its in the negative?
Excellent video. Well done and easy to understand. Thank you.
Thank you for this video! I was searching for a highly accurate volt meter and the external voltage reference was just the ticket. I do have two questions though. A) how accurate is the ina219. The reason I want an accurate volt meter is I am using it to check battery cells while they charge and to shut the charger off when the batteries reach the desired voltage. B) Since the ina219 uses scl and sda how can I attach an external display such as a ssd1306? How do I change the addresses so they don’t conflict? Thanks again. A brilliant job of explaining arduino voltmeter!
I want to made a 'battery monitor' for my van's 12v house system. My current plan is using an esp32 board and INA260, both from adafruit. The INA260 supposedly has a maximum current capacity of 15A, and my maximum load (with all lights on, heater on, etc) could be about 15A or a little more. I'm wondering if there are any devices like the INA260 but with higher capacity? Or can I use a higher capacity shunt inline, and then use the INA260 to read the voltage drop across the shunt and then calculate current. I'm pretty new to this 'hardware' stuff, this being my first time experimenting with microcontrollers, and I'm slowly reading "Practical Electronics for Inventors" by Scherz and Monk. Your videos have also been a great help for me understanding this new realm.
If I have a 3 V coin battery that lights a light, how can I make a check to see if there is voltage and make a counter of how many times the light comes on and off. So basically, it would track the amount of times the flashlight was turned on and off and the duration it was on.
Bill, this is yet another "thumbs up" video and I'm looking forward to Part 2. Also, could you set your future videos to have (automatically generated English) closed-captions? I wasn't able to turn them on due to no "CC" at the bottom of the window.
Could you please make a video about AC current/voltage reading as well as you said? i've looked around for one, but the ones that i have seen so far aren't as good as yours.
Great explanation... Keep up the good work 👍
Thanks for the tutorial with such an excellent quality content... I want to make a DC voltage measurement circuit for measuring and auto logging the cell voltages (will be in the order of 1.2V) of a big battery set to an SD card.. But the problem is, how to tackle the negative input (bcz the person who takes the measurements will reverse the probes between positive and negative terminals of cells) - plz tell me any solution
Obviously, waiting for AC parameter measurement series..
Excellent video ! A job well done !!
At 13.00 you mention looking at the sketch using the lm4040 voltage reference but then cut directly to the testing of the circuit. An editing error maybe?
If I using an LM4040 as reference and measuring the voltage of a 3.7 volt lipo, do I really need the voltage divider?
Awesome as always
I am looking to add a volt and amp meter on my bike to monitor the charging system on OLED. How would you go about doing that? Thank you for the help!
Hello,
Thank you for this great video.
Is it possible to appear V and A at the Same time on an Oled display ?
Thank you 😊
I want to sense micro amp current which is best for it.
Nice video😍
Could you please make a video about how to make menu system for oled display!☺️
I'm trying to build a device that will turn on my well pump from my solar panels. That would sense Peak voltage and run the pump for a certain amount of time, and then divert and split the power back to 36 V to charge my lipf po 4 batterie pack. The well pump runs on 120 volts, with the solar panels in series. 300w solar panels, 36 V. But I need the amperage to charge the batteries, and run the 4 solar panels parallel while charging batteries. I believe many people need this system, keep your well pump from coming on randomly over and over again which wire's out the well pump. Thanks for your great videos especially these days very useful for off-grid. Still looking to make a lifep04, lithium BMS from Arduino. Once again thanks bro awesome teaching thank you
Informative video.
But I have a question. If current sensor reads out both current and voltage why bother using voltage only sensor?
Just curious, why did you need a lantern for a load? Could you just measure a current going into your mcu?
Hello,
I have a 30W solar panel with Vmpp 17.2 V and Impp 1.74A, I'm using the ACS712 5A module but it's always giving me wrong measurements. not more that 4V actually. what do you think is the problem and how can I fix it?
thanks
Is it possible to power the Arduino with same the DC Voltage I want to measure? I am talking about min 6:42
Thank you for this tutorial. If I use esp32 - should I change float ref_voltage to 3.3 ? Because when I use 5.0 - on 13V it shows 18.9V-19.4V
And is it possible to add LM4040 / analogReference(EXTERNAL) on esp32 ?
when I'm trying to compile - it gives me an error
What in the follow up video you mention in this video?
Thank you for this great video. Can you do a video for measuring the temperature of the battery?
i have a question that doesn't really have anything to do with the video but i hope that i can still get an answer. to me it makes sense that esc's are connected to a pwm digital output of the arduino. but i've seen an illustration where the esc's are connected to both pwm and normal digital outputs. now i'm confused whether the esc's need a pwm output or not.
well hello and welcome to the workshop
So have you made the second video yet? I'm very interested on the AC side of this.
Hello, with the INA219 is posible measure only the miliVoltage of the earth source i mean the selfpotential of the natural earhsoild energy ? regards
how are you measuring the battery voltage directly when you shut off the LED's?
Can i measure two diffrent circutes with one Arduino? And is the Arduino abled to store these values?
Good day sir! I am using ACS712ELCTR-30A-T and I strictly follow your instructions on this tutorial but I am not getting close to the values you have. when there is no load connected to the sensor, the Vout fluctuates from 2.48 and 2.49 while the current is changing from -0.26 and -0.22. When load is connected, the Vout reaches 2.51 while current is at around 0.13 to 0.11 amps. My ammeter reading is at around 0.31 to 0.35 amps. What should I do? Thank you so much!
Same issue using same hardware and exact code. Power supply indicates 3.00v/0.271Amps yet the serial output is showing 2.48v/-0.377 Amps with a load. When the load is switched OFF, the power supply indicates 3.00v/0.00 Amps and 2.49v/-0.413 Amps on the serial output.
Anyone out there able to tell me/us what we're doing wrong or something?
The “delay” set for voltage measurements is 500 ms. What’s the shortest delay possible with a Uno? I’m interested in getting short spikes that might only last ms. To avoid writing out massive amounts of data, I’d program the Uno to find the maximum value within a time period of say 100 ms.
fr the INA219 could we attach the Vcc to a solar panel to get both voltage and current readings ?
Thank You! for this Master Bill. This is very helpful to me.
PSA: I built a voltage divider network two nights back with resistors that came in my Arduino kit. The 330 Ohm and 100 Ohm is what I used. It turns out the 330 Ohm was actually just 282.7 Ohms when measured with my DMM. I will have to go back with a magnifier these days with such small parts and read the color code on the resistor. I assume it was 10% tolerance but 282.7 is 16% less than the stated 330 Ohms on the resistor way more than 10% out of whack. Usually 3 band colors is 20% or the worst tolerance/cheapest of parts but 4 band colors are 10% (silver) or 5% (gold) tolerance. If it turns out to be a 4 band resistor I am going to have to check all the Chinese made resistors in my kit. Once I discovered the large deviation I could feed the actual Ohm value back into my formulae and everything started agreeing with each other again in what I saw versus what I expected.
what do you use the AREF pin for, what does it do and if I have a solar cell powering my weather station could I hook up another set of wires to attach to the sensor?
I want to make a 0-5v - 0-10v and 4-20 mA modul based arduino and ESP32. Can i make that use the INA219 To read industrial sensor?
Is it possible to write code for this project with an LCD display?
It is possible to run arduino code using int main() instead of setup and loop. if you look at the bootloader code on the arduino, it uses the int main() function and calls setup and loop, but if you substitute setup and loop for int main(), then what would be run in the setup is run in the main function and the loop code can be run in a while(true) loop.
Can we use this to measure 290-100 VDC and around 10 A current same time.
Staring contest winner :)
goood video as always!
Hi Bill, can you please educate me in whether I could use Hx711 dual channel module to convert the acs712 values to corresponding ac voltage. I am working on a project using esp8266 and unfortunately it has only one adc. Now I could use ADS1115 but it costs around 7 times compared to Hx711 module. Can please help me out?
Why is the reference voltage 5V? I used batteries with voltage of 2.4, but why would my reference voltage still be 5 V? Thank you!
Thanks for the video. Very helpful. What discrete resistor values (for the resistor array) do people suggest when measuring battery voltage, for a battery powered Arduino project?
I had a datalogging project in the past. When the rechargeable 9V battery died the datafile would almost always be corrupted and I lost all the data. I tried to get the power as low as I could. And I ended up adding two 10kOhm resistors for a voltage divider, read the voltage in between them, and programmed the Arduino to stop logging before the voltage got too low. It worked, but I wondered if higher resistor values would work better to reduce the current draw of the two resistors even more. So I was curious what other people used.
i.m doing my mikrohydro project ..input from mikrohidro i get 2.3v dc and connected to led..i got a few mA but the voltage got 0
how to solve it
Can you do it for ac current measurement plzz, or suggest me some article or something like that.
Very useful presentation. Thank you!
It was a great videos. I want to measure current in microamps, what kind of circuit can i use.
Dear Sir, please recommend or advice.. I want to create a system based on Arduino and stepper motors along with other components so that the stepper motor ON and OFF is triggered in the voltage or amperage range (Min, Max) from other systems. Thank You
Can I use just resistors as load right ?
can i use AC curruent with DC load for ACS712 to measure curruent
hello , there is a voltage drop when a load is connected. How can I make it correct ?
Great video Bill. Thank you
I was wandering how you are reading the Values as i cant see any LCD display module - kindly clarify