@@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.
Nice tutorial sir. I'm new in Arduino programming. I bought an ATMega328 based Smart Component Tester. Now I want to copy the program to the PC and fill it with a new program. I know it can be done easily using AVR Programming Tool, but the chip should be taken out off the board and put it on the AVR socket. Is it possible to do that without taken the chip off the board?
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
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!
In your code, shouldn't you be dividing by 1023 instead of 1024? The ADC can output 1024 values but this is 1023 discrete steps, i.e. a value of 1023 = max voltage.
You are correct. This is linear algebra rise over run formula and line/point equation in play. This shortcut he uses to just simply divide by 1024 (should be 1023) is ONLY usable when the starting point is (0,0) when it starts at any other value you must always fall back to the full formula to map the equation of the line to the ADC value range. Say if you rotate a pot all the way down and the value isn’t zero but maybe 20% of the value of the pot total. Or maybe the zero point on a device shouldn’t be zero but a very low non zero value to start with then climb to 100% say the range is 20-1024. Remember in point line formulae you have X1, Y1 and X2, Y2 as the values In play. And the Arduino returns 0, and 1023 as the actual values for X1, and X2 in the line formula.
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.
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.
28:20 Please any one let me know that how can I increase the current flowing capacity by changing the resistance, if its the please suggest me a resistance for measuring 20A current. Urgent !!!! @DroneBot Workshop
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.
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?
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.
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.
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.
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.
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.
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
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
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?
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.
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?
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
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
23:25 You say divide volts by 1000 to get millivolts, that's obviously wrong. Your code is dividing by 1000 to get the average after adding up 1000 times. Your videos are excellent, but this may confuse a newcomer. Maybe put a correction tag over the video? Fantastic job anyway, as always.
how can i build a system and connect 15 samples of MFC (microbial fuel cell) in same time for measuring current (low between 0mA to 3A) and voltage (between 0mV to 800 mV) continuously? I have an oscilloscope, if the system help me to get the reading continuously from the oscilloscope or independently measure them, both way is good for me. Please someone help me.
Hi. I’m interested in building a simple device to monitor home power (US, 120v ac), and curious would you like to help me with this project? You could publish it of course, I don’t want credit, I need someone of your skills to help me solve the problem. We have a challenge in our area with short momentary power drops, long enough to reset some devices, but not all. The problem is that it happens with some regularity and not at all related to weather. We’re trying to compile data to take to our Public Utilities Commission. Ideally it would be some sensor, monitored by a RPi Zero, that appends to a log file the date, time, and voltage anytime it drops below a value and anytime it goes above that value again. The RPi zero would be powered through a battery that’s being constantly charged so that it can monitor for several hours w/ a total loss of AC power to the home. If the battery becomes exhausted and RPi shuts down, the system would auto start on restoration of power and then log date time of restart and go back to monitoring.
Hi I see a number of us asked if you ever made the follow up AC measurement video. I have looked in vain so I assume you were unable to complete the project. Such a shame as your videos are always so informative.
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.
It’s been a year since this was out. You promised a version for measuring AC voltage. Is this one out yet. I didn’t see it. I want to detect AC Wave voltage drop to monitor the presence of a temporary consumer like a model train moving into a power block.
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.
The Seeeduino Xiao is an awesome board at a great price, but saying it has eleven Analog inputs without any explanation is a little deceptive. It only has 14 'pins'! If you tried use all eleven analog in's, the only pins (calling them pins for convenience) left are power and ground, and any analog reads would be useless, because you can't do anything with them! You'd need to dedicate at least one of those pins for the /EN pin on a multiplexer (read data, change mux, change pin functions, send data out). Or, more likely, save two pins for an I2C interface. Speaking of awesome boards, you didn't mention any of the Teensys. For just a little more than a real Arduino, you can get a Teensy 3.5 or 3.6 with up to 22 analog inputs! And still have plenty of pins left over for other functions. The Teensy 4.1 has a clock over three times faster, Cortex M7 vs. the 3.x's M4, but only sports a "measly" 17 Analog In's. :-)
Arduino uno should have it's own voltage regulator providing 3.3V for additional peripherals. I'm guessing it could be used as external reference instead of having additional LM4040 or using VCin, which indeed depends on the quality of the external power source. So you can get much more accurate readings on voltage with using it. Less accurate than with using LM4040 off course, but still
Sir, your say "this up has 10 ADCs." But that's not so! Don't confuse ADC Channels for ADCs! That's why you can't measure more than one thing at a time, you have to change the MUX to a different channel to measure something else. Otherwise, keep up the good work! I'm really surprised that you didn't make that distinction. (I didn't watch the whole video this time.)
Hi Bill, I do not agree with your accessment of the number of ADC's in the uP discussed... It implies that multiple simultaneous conversions can take place when in fact they are Analogue Multiplexed into a single channel for conversion by a single ADC and hence the multiple channels must be have a sequential conversion arrangement. The type of ADC (usually Successive Approximation in these types of uP) has a minimum conversion time which also precludes the simultaneous conversion technique implied. I do enjoy your channel and I think you are doing a wonderful job of bring high quality vlog's to interested parties so keep up the great work...
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!
Fantastic tutorial. Keep up the great work. I am planning to incorporate this into my variable bench power supply.
Nice video😍
Could you please make a video about how to make menu system for oled display!☺️
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.
Thank you! Couple of days I’ve got necessity of measuring current and voltage using arduino.
Can you do it for ac current measurement plzz, or suggest me some article or something like that.
Nice tutorial sir.
I'm new in Arduino programming. I bought an ATMega328 based Smart Component Tester. Now I want to copy the program to the PC and fill it with a new program. I know it can be done easily using AVR Programming Tool, but the chip should be taken out off the board and put it on the AVR socket. Is it possible to do that without taken the chip off the board?
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
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!
In your code, shouldn't you be dividing by 1023 instead of 1024? The ADC can output 1024 values but this is 1023 discrete steps, i.e. a value of 1023 = max voltage.
You are correct. This is linear algebra rise over run formula and line/point equation in play. This shortcut he uses to just simply divide by 1024 (should be 1023) is ONLY usable when the starting point is (0,0) when it starts at any other value you must always fall back to the full formula to map the equation of the line to the ADC value range. Say if you rotate a pot all the way down and the value isn’t zero but maybe 20% of the value of the pot total. Or maybe the zero point on a device shouldn’t be zero but a very low non zero value to start with then climb to 100% say the range is 20-1024. Remember in point line formulae you have X1, Y1 and X2, Y2 as the values In play. And the Arduino returns 0, and 1023 as the actual values for X1, and X2 in the line formula.
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.
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.
28:20 Please any one let me know that how can I increase the current flowing capacity by changing the resistance, if its the please suggest me a resistance for measuring 20A current. Urgent !!!! @DroneBot Workshop
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. 👍🏻
Very helpful video 👍
Thank you for covering the INA219!!!! :)
Another great episode!
Thank you so much for this informative video, You explain so well, God Bless you and your Family.
I wanted exactly this for my PhD research. Thank you so much for this tutorial
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?
Thank you for including the hall effect sensor in the video.😀
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.
he took around a minute to blink once!
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.
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.
Obviously, waiting for AC parameter measurement series..
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 😊
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.
Great episode. Appreciate your hard work! Keep it going!
Is it possible to power the Arduino with same the DC Voltage I want to measure? I am talking about min 6:42
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...
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_ ».
Can you explain the 1000 loop on the hall effect sensor, I don't understand from that loop how you get the average?
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.
Hello my friend, Would you like to take a new video to introduce the equipments and small tools in your lab ? and how you use them ? Thanks a lot !
Great video. 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 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?
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
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!
for anyone who needs to know which sensor they got
ACS712ELCTR-05B-T ±5 A
ACS712ELCTR-20A-T ±20 A
ACS712ELCTR-30A-T ±30 A
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👍😀
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?
Hello, with the INA219 is posible measure only the miliVoltage of the earth source i mean the selfpotential of the natural earhsoild energy ? regards
Excellent! Just what i was looking for! Thanks, Bill!
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 using an LM4040 as reference and measuring the voltage of a 3.7 volt lipo, do I really need the voltage divider?
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?
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
Is it possible to write code for this project with an LCD display?
Nicely explained 👏👏. As always
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
Is anyone can help me. I have the ina219 featherwing. Only the word "Hello!" displayed on the Serial Monitor. Thanks
23:25 You say divide volts by 1000 to get millivolts, that's obviously wrong. Your code is dividing by 1000 to get the average after adding up 1000 times. Your videos are excellent, but this may confuse a newcomer. Maybe put a correction tag over the video? Fantastic job anyway, as always.
how can i build a system and connect 15 samples of MFC (microbial fuel cell) in same time for measuring current (low between 0mA to 3A) and voltage (between 0mV to 800 mV) continuously? I have an oscilloscope, if the system help me to get the reading continuously from the oscilloscope or independently measure them, both way is good for me. Please someone help me.
Without connecting the load
I am getting 3.26V and 7.6 A why????
Sir INA219 Sensor has any possibility to measure high voltages and currents upto 200Volts
analogReference(EXTERNAL) is now analogReference(AR_EXTERNAL)
✔✔👍✔✔ great!..
Hi. I’m interested in building a simple device to monitor home power (US, 120v ac), and curious would you like to help me with this project? You could publish it of course, I don’t want credit, I need someone of your skills to help me solve the problem. We have a challenge in our area with short momentary power drops, long enough to reset some devices, but not all. The problem is that it happens with some regularity and not at all related to weather. We’re trying to compile data to take to our Public Utilities Commission. Ideally it would be some sensor, monitored by a RPi Zero, that appends to a log file the date, time, and voltage anytime it drops below a value and anytime it goes above that value again. The RPi zero would be powered through a battery that’s being constantly charged so that it can monitor for several hours w/ a total loss of AC power to the home. If the battery becomes exhausted and RPi shuts down, the system would auto start on restoration of power and then log date time of restart and go back to monitoring.
A very useful video, thanks for all the effort you put into these, they are a great learning source.
Hi I see a number of us asked if you ever made the follow up AC measurement video. I have looked in vain so I assume you were unable to complete the project. Such a shame as your videos are always so informative.
sir what if I use a 500va 220v/220v , 50hz transformer and to have current and voltage ?could you please help me thank you
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
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?
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.
It’s been a year since this was out. You promised a version for measuring AC voltage. Is this one out yet. I didn’t see it. I want to detect AC Wave voltage drop to monitor the presence of a temporary consumer like a model train moving into a power block.
somethings wrong in the code for acs712 output current show 5000 amps even i don't apply the the power supply 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.
Can any body please explain me what are those voltages(bus, shunt, load) shown in the program?
I was wandering how you are reading the Values as i cant see any LCD display module - kindly clarify
can you create a tutorial using this but with a lcd display for amp,volts etc. ?
I am 43 can I learn copleat Arduino program like as you?and how to learn and how much take long to complete?
fr the INA219 could we attach the Vcc to a solar panel to get both voltage and current readings ?
It was a great videos. I want to measure current in microamps, what kind of circuit can i use.
just what ive been looking for cool :)
мерять ардуиновскими ADC сродни определению погоды на марсе в полнолуние високосного года(
Sir how can I measure 50v with arduino because by using resistors arrays are getting over heat due power loss in resistors
Can i measure two diffrent circutes with one Arduino? And is the Arduino abled to store these values?
can i use AC curruent with DC load for ACS712 to measure curruent
Can we use this to measure 290-100 VDC and around 10 A current same time.
How do I measure or read up to 100v dc because you measured maximum of 5v
How do I measure or read up to 100v dc because you measured maximum of 5v
hello , there is a voltage drop when a load is connected. How can I make it correct ?
Awesome as always
How to measure 48 to 65V DC with arduino
Excellent video ! A job well done !!
Great explanation... Keep up the good work 👍
This is great. Can someone point me to a good source for logging this data?
what if I want to measure over 10 amps of dc current is there a way ?
for the first 46 seconds..he didn't even blink his eyes...
I need measure >48v DC. How can I do it?
Hello, great video!!! I tried to find the AC measurement video...did you do that??? Thank you for the reply and congratulations!! Cheers from Brazil!!
I want to sense micro amp current which is best for it.
The Seeeduino Xiao is an awesome board at a great price, but saying it has eleven Analog inputs without any explanation is a little deceptive. It only has 14 'pins'! If you tried use all eleven analog in's, the only pins (calling them pins for convenience) left are power and ground, and any analog reads would be useless, because you can't do anything with them! You'd need to dedicate at least one of those pins for the /EN pin on a multiplexer (read data, change mux, change pin functions, send data out). Or, more likely, save two pins for an I2C interface.
Speaking of awesome boards, you didn't mention any of the Teensys. For just a little more than a real Arduino, you can get a Teensy 3.5 or 3.6 with up to 22 analog inputs! And still have plenty of pins left over for other functions. The Teensy 4.1 has a clock over three times faster, Cortex M7 vs. the 3.x's M4, but only sports a "measly" 17 Analog In's. :-)
How can I measure 60v dc with arduino?
Arduino uno should have it's own voltage regulator providing 3.3V for additional peripherals. I'm guessing it could be used as external reference instead of having additional LM4040 or using VCin, which indeed depends on the quality of the external power source. So you can get much more accurate readings on voltage with using it. Less accurate than with using LM4040 off course, but still
Sir, your say "this up has 10 ADCs." But that's not so! Don't confuse ADC Channels for ADCs! That's why you can't measure more than one thing at a time, you have to change the MUX to a different channel to measure something else. Otherwise, keep up the good work! I'm really surprised that you didn't make that distinction. (I didn't watch the whole video this time.)
Hi Bill, I do not agree with your accessment of the number of ADC's in the uP discussed... It implies that multiple simultaneous conversions can take place when in fact they are Analogue Multiplexed into a single channel for conversion by a single ADC and hence the multiple channels must be have a sequential conversion arrangement. The type of ADC (usually Successive Approximation in these types of uP) has a minimum conversion time which also precludes the simultaneous conversion technique implied. I do enjoy your channel and I think you are doing a wonderful job of bring high quality vlog's to interested parties so keep up the great work...
What in the follow up video you mention in this video?