Voltage Sensor for Arduino with code and formula to measure any DC voltage

  Переглядів 136,192

Robojax

Robojax

День тому

Watch the latest video on how to measure DC voltage using Arduino: • Built Voltage Sensor w...
This video shows you how to Arduino Voltage Sensor. You will learn how to measure 25V DC but trick is shown so you can measure virtually any voltage.
*** Free Course ***
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
** 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
May 14, 2018 update
***** Correction ****: Please correct 6.666µA as 666µA
See the document I have provided bit.ly/rjx-vsensor
Jump to different section of this video:
00:00 Start
01:02 Hardware explained
02:14 Wiring Explained
02:47 Code Explained
05:09 Demonstration of measuring voltage
06:19 How to measure higher voltages
07:28 Formula
Download the code for Voltage Sensor Module for Arduino" robojax.com/L/?id=268
***** Purchase Authentic Arduino Uno from ***
Amazon USA: amzn.to/2KApAwK
Amazon Canada: amzn.to/37LZ8sW
Amazon Europe (all Europe): amzn.to/3bKOMug
*** Purchase Arduino Uno Compatible
Amazon USA: amzn.to/3aY7KOL
Amazon Canada: amzn.to/3pYxSNN
Amazon Europe (all Europe): amzn.to/2PgGItD
===Purchase Voltage sensor ===
from Amazon: amzn.to/3lzPtu8
Related videos:
Measure any DC voltage with just 2 resistors and Arduino: • Built Voltage Sensor w...
How to use a breadboard (video) : robojax.com/L/?id=121
Tutorial by Ahmad Shamshiri form Canada
****************************
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
If you want to learn Arduino from proven instructor on **Udemy**: bit.ly/rj-udemy
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/learn/arduino
#robojax #robojaxArduinoVoltage

КОМЕНТАРІ: 248
@robojax
@robojax 3 роки тому
Measure any voltage using Arduino without this module see this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@zaidrashid5818
@zaidrashid5818 3 роки тому
Thank you a lot Mr. Ahmed, I search for you at first when I need an explanation.
@robojax
@robojax 3 роки тому
You are most welcome
@hiram4578
@hiram4578 4 роки тому
amazing, clear, to the point. thank you.
@robojax
@robojax 4 роки тому
You are welcome.
@hansdegroot652
@hansdegroot652 4 роки тому
Thank you for your super practical video's.
@robojax
@robojax 4 роки тому
You are welcome.
@adeherdiana1413
@adeherdiana1413 5 років тому
thank's, this solution for my project
@robojax
@robojax 5 років тому
You are welcome.
@hansifansi
@hansifansi 5 років тому
Thank you for the great video! I have a question. I want to make a circuit using the Arduino and a battery, and I want to monitor the battery voltage. Can the Atmega328 chip measure a variable voltage that is the same voltage (from the same battery) that powers the Atmega328 chip? (I want to make my own microcontroller board running on one singel lipo battery at 3.2 to 4.2 volts, and to connect it directly to the Atmega328 without the AMS1117). Thanks
@robojax
@robojax 5 років тому
You are welcome. Yes you can. here in the datasheet www.mouser.com/pdfdocs/Gravitech_ATMEGA328_datasheet.pdf you will see in first page the operating voltage: 1.8 - 5.5V for ATmega48PA/88PA/168PA/328P
@aksharchavan5818
@aksharchavan5818 2 роки тому
Hello Mr. Ahmed, Your video is amazing, I really like the explanation for each of your videos.
@aksharchavan5818
@aksharchavan5818 2 роки тому
I need some help with my project. I want to measure the power consumed by each component connected to a 24V 6A battery. I can use a voltage sensor and a current sensor separately to find the power consumption , but, can you suggest a sensor that can measure both and is compatible for my project. Thank you
@robojax
@robojax 2 роки тому
Please watch this Energy meter using Shunt resistor ukposts.info/have/v-deo/qZhigKJ6nmyquas.html or watch this video using Winson Current sensor ukposts.info/have/v-deo/ZaCYa6CZopdzl3U.html if you are want to use Winson Current Sensors then start with introduction video here ukposts.info/have/v-deo/sl2kbIuteo142Y0.html
@zaenqureshi5032
@zaenqureshi5032 5 років тому
works perfectly! thanks. what if i want to use the voltage data in an if statement that if the battery starts to die a red led will turn on? can you include a code for that? thank you
@robojax
@robojax 5 років тому
to do something when voltage changes to a value, do this. for example when voltage is less than 8.5V === start of code === if (volt if you want if the voltage is greater than 8.5 or any other value.
@259Den3
@259Den3 4 роки тому
Thanks for the helpful video. If I leave this connected to a battery (for instance, a car battery) how much current does it draw? I would be concerned the battery would be drained too low.
@robojax
@robojax 4 роки тому
you are welcome. I have included this in the description. the current used is 666µA which is very minimal. Even you could power it up with AA battery for months.
@zfaj2168
@zfaj2168 4 роки тому
Hi. Can you please explain a bit more about the correction value(int offset = 20)? What is it for and why we have to include it in the code? Thanks.
@robojax
@robojax 4 роки тому
Hi, I used the offset to correct the deviation from correct value. Resistors with 10% tolerance might give some fixed value error which can be be corrected with that offset. you can set it to 0 if you don't to use correct.
@zfaj2168
@zfaj2168 4 роки тому
@@robojax Thank you so much for explaining. You definitely have great videos.
@ayoubmook2622
@ayoubmook2622 2 роки тому
Thank you for the valuable video! I have a question about the voltage sensor: can it be used for high current sources (e.g. a car batterie with 60-70ah)? If not, what are the adjustments we need to make, if any. Thanks a lot!
@robojax
@robojax 2 роки тому
you are welcome. this module has limitation. See my latest video on measuring voltage ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html where you can measure any voltage. When measuring voltage, the amount of energy source or current it does not care if you measure a small AA battery's voltage or a car battery's voltage. Here is my video showing how to measure voltage and current up to 500A ukposts.info/have/v-deo/cZqod5lurIZ40Jc.html to make energy meter. or here if you want to display it on LCD ukposts.info/have/v-deo/sHiWbYiJiI1-o4E.html and I've got more if you search my channel.
@Exlicia
@Exlicia 3 роки тому
Thank you project GOD :=)
@robertbernal8524
@robertbernal8524 8 місяців тому
Great video. Are there any modules that can be upgraded to larger resistors? This works exactly how i need it to but i don't like the bare RX resistor just sticking out of the vcc like that 😅 can it be place somewhere else maybe?
@robojax
@robojax 8 місяців тому
Just search my channel
@jean-etiennemarchand7932
@jean-etiennemarchand7932 3 роки тому
Hello and thank you very much for this video ! I have one issue however, I used the measurement of the tension to control a relay connected on digital pin #9 and I noticed a difference of +0.2V on the tension from the sensor when the relay switch on. Do you have an explication ? Best regards.
@robojax
@robojax 3 роки тому
Hello and you are welcome. I have created another tutorial showing how to measure any DC voltage without this module with just 2 resistors ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html. the resistors used in this module have ±5% tolerance. then we have 10 bits ADC , Analog to Digital converter these two will affect the reading. If you are getting consistent +0.2V then subtract in the code. I have mentioned the ADC conversion in this video ukposts.info/have/v-deo/cZqod5lurIZ40Jc.html so if you use my 2nd tutorial and use 1% tolerance resistors you should get better result. Of course there are other ways using extra modules to get better result too.
@nierrizjayvetabanao6226
@nierrizjayvetabanao6226 3 роки тому
Thank you so much sir.
@robojax
@robojax 3 роки тому
you are welcome. Measure voltage with just two resistor and Arduino (latest video) ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@sebbavieira5665
@sebbavieira5665 3 роки тому
Thanks for your lessons, and if I want to measure voltages up to 0.400V at most, how do I do it?
@robojax
@robojax 3 роки тому
you are welcome. Here is the latest video where you can measure up to 1000V ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@phephin96
@phephin96 4 роки тому
very helpful 👏
@robojax
@robojax 4 роки тому
Thank you. Then Subscribe 🔔please.
@bharathasrimal8641
@bharathasrimal8641 2 роки тому
Thank you very much sir !!!
@robojax
@robojax 2 роки тому
I am glad you found useful. This is just two resistors. Here the video where you can measure any voltage with just two resistors ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html and here is Arduino Step by Step Course (over 100 lectures) Starts here ukposts.info/have/v-deo/ZWaih6h7jHdmwmw.html
@johnmichaelcruzado4103
@johnmichaelcruzado4103 5 років тому
Hi, what circuit can I use to convert AC voltage to DC without changing the peak voltage? Thank you!!
@robojax
@robojax 5 років тому
You need full wave rectifier www.electronics-tutorials.ws/diode/diode_6.html
@adave8118
@adave8118 5 років тому
hello. can you release a video tutorial for AC voltage sensor controlling a relay
@robojax
@robojax 5 років тому
Hi, I will put it on my "to do" list. I assume you wanted AC of power line like 120V or 220V correct?
@sherwoodp2738
@sherwoodp2738 4 роки тому
@@robojax did you ever do the video tutorial for AC voltage sensor controlling a relay? That would be great.
@Pankaj-2001
@Pankaj-2001 Рік тому
Hi! Can someone please tell how to connect more than one/multiple voltage sensors in a circuit to the Arduino and read it? I really need help with the code and the connections?!
@raj_srikar
@raj_srikar 3 роки тому
You haven't shown where you connected the VCC and GND in your circuit to measure the voltage. Should we connect it parallel to a load in a circuit to measure the voltage across it?
@robojax
@robojax 3 роки тому
you need only 2 wires to connect to anything that you want to read the voltage. you can connect it any DV voltage either across a resistor or sircuit as long as it is within the range. Watch the latest video on how to measure DC voltage using Arduino: ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@bobl703
@bobl703 7 місяців тому
Hi. How can we power an esp8266 microprocessor with the battery while also checking the battery's voltage with the voltage sensor? The 8266 uses 3.3V and the battery I'm using is a LiFePO4 3.2V. If I use a USB cable to the 8266, everything works as expected. But as soon as I unplug the USB cable from the 8266, there is no power to the esp8266 anymore. I tried plugging a jumper wire onto the sensor's + pin and the other end to the 3V3 pin on the 8266, but that doesn't give it power. I also tried connecting the jumper wire to the 5V pin on the 8266, but still no power. If I connect the battery's wires directly to the 3V3 pin via a breadboard, my 8266 works fine. Anybody have any ideas? Is there any documentation for this Voltage Sensor board?
@robojax
@robojax 7 місяців тому
Hi, here is introduction to ESP8266 ukposts.info/have/v-deo/qHynpZ5sbopk1Gg.html
@DiyintheGhetto
@DiyintheGhetto 5 років тому
Hello i have I'm trying to measure up to 60v. I have the correct resistors and output is 2v for the arduino. How can i change it to measure up to 60v?
@robojax
@robojax 5 років тому
Hello, I have explained it in the video with formula where you can measure any voltage.. Also I have provided a document on how I got the formula. The link to the resources for the video is under the video in the description.
@Mossycak
@Mossycak 3 роки тому
I need your advice for my project. I connect voltage sensor and irf520 mosfet module to the power supply (12V lead acid battery). Without connecting the irf520 mosfet module, the measured voltage is correct. But, the measured voltage displayed by the serial monitor is 25.2V after I connect the irf520 mosfet module to the power supply. May I know how to fix it?
@robojax
@robojax 3 роки тому
hi, this is very unclear. you gotta mention the pins for mosfet and provide schematic. Take photo and post it here snipboard.io/ and then post the link of the photo in here
@naveenkrishnan2471
@naveenkrishnan2471 4 роки тому
Can it be used to measure a potential (in Volts) having 3 digits after the decimal point? like for example "123 mV"? Please reply
@robojax
@robojax 4 роки тому
the measurement depends on the ADC (Analog to digital converter) of Arduino board. Please see this page www.arduino.cc/reference/en/language/functions/zero-due-mkr-family/analogreadresolution/
@jayare7750
@jayare7750 5 років тому
Would this measure fluctuating voltage from negative to positive?
@robojax
@robojax 5 років тому
No. it will measures from 0V and higher. Not negative value.
@Pinoy_DIY
@Pinoy_DIY Рік тому
Hi Sir can we add a relay module. Function of relay is when the voltage reach example 14v relay will on and if it goes down to 11v relay will off? It is possible? Thank you...
@robojax
@robojax Рік тому
Hi, that's called taking action on some event like change in voltage. you can learn it from this video ukposts.info/have/v-deo/foeDi4KxgnyXlGys.html here we take action when voltage reaches at certain value. Or this video ukposts.info/have/v-deo/nIaZa22ui2NloqM.html
@Pinoy_DIY
@Pinoy_DIY Рік тому
@@robojax Thank you sir. I will try my best in learning it, hope I can...
@majdaltaifi6423
@majdaltaifi6423 4 роки тому
Really great job ,, but I wanna ask of how can I change the value of the voltage from voltage value to percentage
@robojax
@robojax 4 роки тому
Thank you. Yes you can but you would have to calculate it . Let me know what exactly you want so I can guid e you.
@majdaltaifi6423
@majdaltaifi6423 4 роки тому
Robojax thank u sir for ur fast reply ,, I am using 12V battery and I want it to present as a percentage value.
@majdaltaifi6423
@majdaltaifi6423 4 роки тому
I did the same thing u did but am using node MCU (3.7V) so I changed 1023 to 758.02 since each 204.6 unit is presenting as 1V in analog readings ,, but the issue is how to change the V to %
@robojax
@robojax 4 роки тому
first you have to decide what value is 100% and lets call it maxx100 and your value is maximum voltage is 12.3V and your voltage in Arduino code is: voltage float max100 = 12.3; float percent = map(voltage, 0, max100, 0, 100); now the "percent" has your value in %. learn about map function here www.arduino.cc/reference/en/language/functions/math/map/
@nelio_cherencay
@nelio_cherencay 5 років тому
Thanks For the great video... I have a question...??? I want to make some project using Arduino Uno,Mosfet & voltage sensor but Still confuse in program arduino may you give the solution...
@robojax
@robojax 5 років тому
You are welcome. I can reply to simple questions but can't build a complete project as I don't have time for that. You can break your project into pieces for example, MOSFET question should be "how to control a motor with MOSFET" and I will guide you to the right video tutorial.
@nelio_cherencay
@nelio_cherencay 5 років тому
Ok Thank you alot
@ticktock8751
@ticktock8751 4 роки тому
Nice video i want to do something with volt and current with i2c LCD meter to show 5 to 6 digits with volts and current when i am using my Raspberry Pi
@robojax
@robojax 4 роки тому
Thank you.
@makeitsimple2306
@makeitsimple2306 3 роки тому
Thanks so much Just note that the calculation of 25v/(30k+7.5k) is equal to 0.6666666 is much easer for calculation🌷🌷🌷🌷
@robojax
@robojax 3 роки тому
you are welcome. I've included a document showing how to calculate. Here is the new video showing how to measure any DC voltage without Arduino without this module: ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@nigelndlovu5038
@nigelndlovu5038 3 роки тому
I'm trying to make a power measuring circuit using the Voltage sensor and a Current Sensor ACS712 but every time i try to connect them both to the output i want to measure the Voltage value across the Voltage sensor drop drastically but the ACS712 value maintains
@robojax
@robojax 3 роки тому
you are visiting the wrong video. see it here ukposts.infosearch?query=acs712
@abhiramreddy8299
@abhiramreddy8299 5 років тому
can it display the voltage of the solar panel which is around 40V ? and what is the name of the sensor and how can i buy it? thanks.
@robojax
@robojax 5 років тому
Yes. You can measure any voltage but any voltage above 25V, you have to use extra resistor which I have provided the page on how to calculate resistor. See the page were the code is and you will see a fill tell you how to calculate resistor to calculate any voltage .
@abhiramreddy8299
@abhiramreddy8299 5 років тому
hey thanks for the reply, so do you a module that can display large voltages that i can buy?
@te.rencej
@te.rencej 6 років тому
what type software that did you used to draw schematic?
@robojax
@robojax 6 років тому
Firtzing free software fritzing.org/home/
@te.rencej
@te.rencej 6 років тому
thank you.
@shakeelrasheed4367
@shakeelrasheed4367 5 років тому
hi sir, please how to use 7 segment display to voltage sensor .my English is wike . please explane
@robojax
@robojax 5 років тому
Watch this video: ukposts.info/have/v-deo/fKWSoaCjqqqArIE.html and then watch this ukposts.info/have/v-deo/so93qoikbYqWmGw.html
@haikalazwan2529
@haikalazwan2529 4 роки тому
Do you have video tutorial for ac voltage ? It is same with the dc ?
@robojax
@robojax 4 роки тому
No I don't. Arduino can't measure AC and there is no module yet for AC voltage.
@E47irfan
@E47irfan 4 роки тому
How to display the value of voltage and current using pzem-004t using arduino? Could u help me.
@425Reality
@425Reality 3 роки тому
you can always use a DC reference, rectify it, add capacitor, use multi meter to measure DC voltage and add resistance to that accordingly. You might have to modify the code a bit.
@kimleang.
@kimleang. Рік тому
May I ask how can you change the voltage value? Is there any device to do that?
@robojax
@robojax Рік тому
Please watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@MeenAviyal
@MeenAviyal 2 роки тому
Can we use this one to check voltage lead acid battery 12 v 150ah
@robojax
@robojax 2 роки тому
The link was in the description. but here is the video and code ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@MeenAviyal
@MeenAviyal 2 роки тому
@@robojax thank you very much
@meikoprdwntaraa
@meikoprdwntaraa Рік тому
Can i use this module to measure percentage of my lead aci 12v battery?
@robojax
@robojax Рік тому
Please see this video ukposts.info/have/v-deo/p6WXeJhueKqnr58.html
@Mrtumtube
@Mrtumtube 6 років тому
Hi, can you suggest a sensor which can be used for 0-500V DC.
@robojax
@robojax 6 років тому
yes you can use this. Just follow the formula I have given.
@robojax
@robojax 6 років тому
You can use this sensor.
@luqmanhakim3675
@luqmanhakim3675 3 роки тому
What we have to change the coding when use on esp32?
@robojax
@robojax 3 роки тому
first you should not use this as this is just waste of money. you just need two resistor to measure any voltage. see the video here ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html measuring voltage is the same as using potentiometer to measure voltage. see ESP32 video for that here ukposts.info/have/v-deo/jYh8qWiPq62bmJc.html
@abelscorpio5314
@abelscorpio5314 5 років тому
The center hole surrounded by small holes has any function?
@robojax
@robojax 5 років тому
no. they just decorated so it looks interesting. Actually this module should not even exist. Just connect 2 resistor and you have voltage sensor as I have shown in the schematic.
@conradstanley1027
@conradstanley1027 3 роки тому
Thank you much
@robojax
@robojax 3 роки тому
you are welcome. I wanted to delete this video because this module is a fraud, but I can't tell the whole world about this so I left the video.. you can do it with any resistor see the video here ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@viveksingh-ey5hl
@viveksingh-ey5hl 5 років тому
How can I measure both ac and DC voltage by using one aurdinou
@robojax
@robojax 5 років тому
DC only. for AC, you need to convert it to DC before measuring it. I will make a video on that but don't know when as I have other items high in the list in terms of priority.
@rithikka145
@rithikka145 4 роки тому
Sir, How can I use voltage sensor to sense Human body voltage?? Pls do reply sir coz i m in mid of my project...
@robojax
@robojax 4 роки тому
No. there is no such thing as human body voltage. If you put one hand on the positive(+) terminal of a bettery and another hand on the negative (_) terminal of battery, you body will pass a little current depending on how moist your body is. that can be represented as resistance. But whithout connecting any voltage source, your body will have none.
@rithikka145
@rithikka145 4 роки тому
@@robojax tqsm sir...
@josephanderwee8404
@josephanderwee8404 4 роки тому
hi, can i measure 3 phase 415v using ZMPT105B 250v (connection L-N) to L-L? can you make video review about ZMPT105B. Again, thank you.
@robojax
@robojax 4 роки тому
No. this is to measure DC voltage only.
@changyong6004
@changyong6004 Рік тому
Hi, may I know can I measure up to 200V DC voltage ? Because I see the voltage rating is until 25V only. Is it applicable to do that ?
@robojax
@robojax Рік тому
it seems you have not watched the video fully. I have typed the title as "any voltage". May be I should delete this video and leave only the new video here ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@prasanthkumar7076
@prasanthkumar7076 3 роки тому
Can we measure the battery of 96v 150ah with this circuit and i want to store the data of that please tell me about that
@robojax
@robojax 3 роки тому
you did not say to measure what. Voltage no. See this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@scorill00
@scorill00 5 років тому
Can u pls help with esp 8266 lolin? is not given correct data...im about to get crazy here thx
@rimbang_
@rimbang_ 4 роки тому
Same ,i use wemos d1 mini
@scorill00
@scorill00 4 роки тому
@@rimbang_ it seems esp8266 has a prebuilt voltage reductor im not exact about what or how
@rimbang_
@rimbang_ 4 роки тому
Try change the map : before : map(value,0,1023,0,2500)+offset; . Change the "2500" i try that and is liitle accurate
@TheMightyWolfie
@TheMightyWolfie 4 роки тому
@@rimbang_ Tried but did not work
@akul24
@akul24 2 роки тому
Does the sensor heat up while working for long time (more than hour)?
@robojax
@robojax 2 роки тому
Don’t use this. This is just cheating to sell it on you. I made video because the whole world got fooled by it and I needed to help people. Watch this video and just use two resistor to measure any voltage ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html and in terms of voltage , not it will not heat up.
@reymarkpaculanan3297
@reymarkpaculanan3297 2 роки тому
can you help me? whenever i cut my source which is 12v the reading in the serial monitor decrease so slow that it takes 2minutes for it to go completely zero.
@robojax
@robojax 2 роки тому
It seems you have a capacitor connected to the input of Arduino. Please watch better way to measure any voltage ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@bugz000
@bugz000 3 роки тому
i have the very same module, using your code it required -105 on the offset - which is fine, but when placed under it's own power, the values are out of calibration once more - and seemingly the lower the supply voltage to the arduino, the higher the returned "sensor" voltage", despite the arduino sensing it's own supply! what is going on here?
@robojax
@robojax 3 роки тому
Forget about this module. Here is ultimate voltage reading for Arduino ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@TheMightyWolfie
@TheMightyWolfie 4 роки тому
I am using NodeMcu ESP8266. I adjusted the map function to map 0-2045 to 0-2500 since NodeMCU can take value upto 2045 but even then, the offset either too much or too little... Can you help me?
@robojax
@robojax 4 роки тому
Take this into consideration that the referee for ESP8266 is 3.3V. The code is working for 5V reference.
@danielbob7769
@danielbob7769 3 роки тому
Did you found the answer for Esp8266 ? I tried a lot of variants but no result
@rolandvincent-ortalizalim2795
@rolandvincent-ortalizalim2795 4 роки тому
What is the maximum capacity voltage of the sensor?
@robojax
@robojax 4 роки тому
Hi, perhaps you skipped the video. it is 25V and I've shown how to use it to measure any voltage. But his is my video on how to use Arduino to measure any voltage ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@bryanyoon123
@bryanyoon123 5 років тому
May i know what is the model name of this voltage sensor?
@robojax
@robojax 5 років тому
just "Arduino voltage sensor". No model.
@hilmanabdurahman4265
@hilmanabdurahman4265 5 років тому
hello sir, what must be changed if i wanna measure the current? thank you :)
@robojax
@robojax 5 років тому
You cant'. You need very lower resistor like 0.01Ω 20W or more depending on current you are measuring. But the best solution is current sensor ukposts.info/have/v-deo/fIahbaFqr6tqqoU.html for up 30A or ukposts.info/have/v-deo/f3VlfWdngJBiy40.html for 50A or more
@hilmanabdurahman4265
@hilmanabdurahman4265 5 років тому
@@robojax thank's, this solution for my project
@robojax
@robojax 5 років тому
You are welcome.
@yasminhamidi5294
@yasminhamidi5294 4 роки тому
@@hilmanabdurahman4265 hi, may i know, how you code for voltage and current in one coding?
@akhongbamnerita2624
@akhongbamnerita2624 11 місяців тому
is the volatge sensor name is just voltage sensor or any other specific name
@robojax
@robojax 11 місяців тому
it is just fake PCB. watch this and use only 2 resistors ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@hasenthaher6339
@hasenthaher6339 5 років тому
I want the code for ZMPT101B calbration
@ishikakhatrapalivg1736
@ishikakhatrapalivg1736 2 роки тому
Fast voltage changes not sensing with this module.... please help for that...
@robojax
@robojax 2 роки тому
Change the delay inside loop() Makes it smaller value
@ishikakhatrapalivg1736
@ishikakhatrapalivg1736 2 роки тому
@@robojax Many many thanks...
@marcneilapas1529
@marcneilapas1529 3 роки тому
If I want to measure the current also what code will I put? I am new to this and any help would be good. Thanks!
@robojax
@robojax 3 роки тому
for voltage measurement you don't need this module, watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html for current either use shunt resistor ukposts.info/have/v-deo/cZqod5lurIZ40Jc.html or current sensor module ukposts.info/have/v-deo/a3NkZ3qnmomoqqs.html or this ukposts.info/have/v-deo/sl2kbIuteo142Y0.html
@marcneilapas1529
@marcneilapas1529 3 роки тому
@@robojax yeah I thought so. If I use current sensor. It will also give voltage reading right?
@marcneilapas1529
@marcneilapas1529 3 роки тому
@@robojax having trouble finding a current sensor with that can measure atleast up to 25v and 10 amps. Can you recommend one?
@tophersoccer
@tophersoccer 3 роки тому
where can you get that little digit screen?
@robojax
@robojax 3 роки тому
eBay, AliExpres or Amazon. just search for LED voltmeter
@dodgyaz
@dodgyaz 5 років тому
I tried this code and it worked. I think I may have a faulty sensor tho. I had to set the offset to -12 to get it to read 0v with nothing connected. When I connect a AA NIMH Battery it reads as 2.23v. It should read 1.5-1.25v
@robojax
@robojax 5 років тому
There is nothing special in this sensor. Just two resistors. There are two resistors as I have shown in schematic (in the page where code is). Read the resistors and see if the are different.
@royalsingh
@royalsingh 3 роки тому
How many input voltages can be read in parallel by one board?
@robojax
@robojax 3 роки тому
Please watch the latest video which shows you don't need this module ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html all the pins A0 to A5 are analog input but Arduino Mega has move than 10.
@harshshukla8339
@harshshukla8339 3 роки тому
Is this sensors work on ac supply or dc.
@robojax
@robojax 3 роки тому
DC only. Watch latest video to measure voltage without any module. just two resistors ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@edgarmastache1024
@edgarmastache1024 4 місяці тому
how i can meassure negative voltage values?
@robojax
@robojax 4 місяці тому
first of all please watch the proper video to measure any DC voltage here ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html to measure negative value on the same circuit, simply connect the wires in reverse. But you can't measure the positive on the same circuit.
@asitsonawane4612
@asitsonawane4612 5 років тому
Can I use nodemcu esp8266 instead of arduino?
@robojax
@robojax 5 років тому
Yes it will work. Connect it to ADC pin.
@asitsonawane4612
@asitsonawane4612 5 років тому
@@robojax thanks a lot
@chenartahir1865
@chenartahir1865 3 роки тому
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.
@robojax
@robojax 3 роки тому
Here for voltage ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html and for current ukposts.info/have/v-deo/cZqod5lurIZ40Jc.html
@chenartahir1865
@chenartahir1865 3 роки тому
@@robojax my question is, how to connect it to 15 samples if the voltage is low? (cathode and anode)
@robojax
@robojax 3 роки тому
What sample?
@chenartahir1865
@chenartahir1865 3 роки тому
@@robojax i have an experiment. Consist of 15 samples of MFC (microbial fuel cell). It produce electric with current between 0-2 amp DC. And the voltage between (20mV to 800mV). I want to monitor and record their voltage and current. How many samples can be connected to one ardiuno mega or UNO? And how can i arrage it and programming?
@AllinONE-yn8zx
@AllinONE-yn8zx 6 років тому
how did you get the formula can you please explain. I did not get your mathematical calculation thanks
@robojax
@robojax 6 років тому
Thank you for your comment. I had to redo the calculation and found that the value is not 6.66µA but 666µA. The formula has been explained here bit.ly/rjx-vsensor
@robojax
@robojax 6 років тому
I did not hear from you. did I answer your question? just wanted to know.
@AllinONE-yn8zx
@AllinONE-yn8zx 6 років тому
hello sir i got it now thank you for your explanation i understand now the circuit and formula thanking you!!!
@robojax
@robojax 6 років тому
you are welcome. Ramadan Kareem.
@AllinONE-yn8zx
@AllinONE-yn8zx 6 років тому
can i get your email address please
@4ndreB
@4ndreB 4 роки тому
Hi, i get wrong values (6.23 volts instead of 3.88 v measured with a multimeter), how can i fix this problem?
@robojax
@robojax 4 роки тому
check the resistors to see if they are the value I explained in video. Your module might be different. use a multimeter to meter to measure the voltage at the two resistors.
@4ndreB
@4ndreB 4 роки тому
@@robojax thank you for your reply, in the end I noticed that the error was an amplification of the actual voltage by 1.6 (more or less) and I solved it via software. Let's see if it works as expected now :)
@furqanali590
@furqanali590 5 років тому
sie make pleas HT VOLTAG SENSOR WHICH CAN 11OOO TO 132000 TILL SENSE
@robojax
@robojax 5 років тому
Never heard of it. It is not common and I try make tutorial video that most people benefit.
@bhargavguru3838
@bhargavguru3838 15 днів тому
Sir konsi language mai bata rahe ho
@pamudufernandez9492
@pamudufernandez9492 3 роки тому
i want to get the output signal when the voltage < 3.8 . How can i do it and how the code will change?
@robojax
@robojax 3 роки тому
first you should not use this. this is just low tolerance (10%) resistor on PCB. But if you wan tot use it, why would you change anything? just connect your voltage to the input and you will read it. But you can use your own 1% resistor with this project and get much accurate reading and read any voltage you want ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html good luck.
@pamudufernandez9492
@pamudufernandez9492 3 роки тому
@@robojax avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01 avrdude: stk500_recv(): programmer is not responding I got this error while uploading the code to arduino . how can i fix this?
@aaronjoshuaagdeppa6076
@aaronjoshuaagdeppa6076 5 років тому
Hello sir thank you for this amazing video. Sir please help me for my project. How can I monitor voltage with solar panel and battery?
@robojax
@robojax 5 років тому
You are welcome. This is the best option.
@indrajatiantonio4465
@indrajatiantonio4465 3 роки тому
Is it possible not only be able to read the result I also wish able to hear the value?
@robojax
@robojax 3 роки тому
you may use external voice generator to make it possible. or use Raspberry Pi. For arduino there is a sound module that you record certain sound and play it at certain condition. here is one ukposts.info/have/v-deo/g3SUZpBranqrtWQ.html good luck.
@indrajatiantonio4465
@indrajatiantonio4465 3 роки тому
Thanks for quick reply. Whats that? They sound like holy ancient mantra to me. Honestly, All I know just basic blink code. For now allow me to follow your youtube channel for I wont miss if someday you'll post how to do that. Greeting from Indonesia
@robojax
@robojax 3 роки тому
then Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
@danielbob7769
@danielbob7769 3 роки тому
Can I use this sensor with ESP8266 to measure up to 17V max ?
@robojax
@robojax 3 роки тому
Yes you can. here is latest video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@danielbob7769
@danielbob7769 3 роки тому
@@robojax i believe you that it is working great on Arduino . but Arduino works with 5V and ESP8266 work with 3.3V and every time , the reading is wrong even if the code is correct and the value of resistors are right. I think is another problem. Can you make a video with this subject and the particularities of esp8266 ? Thank you a lot .
@robojax
@robojax 3 роки тому
it seem you have not watched the video. Watch it please it work with ESP32 and ESP8266.
@danielbob7769
@danielbob7769 3 роки тому
@@robojax I have seen your video . I used a voltmeter sensor like this www.google.com/search?q=voltmeter+sensor&client=ms-android-samsung-gn-rev1&source=android-browser&prmd=isvn&source=lnms&tbm=isch&sa=X&ved=2ahUKEwinp-_Eou3pAhUMFpoKHTKGAMEQ_AUoAXoECAwQAQ&biw=412&bih=693&dpr=2.63#imgrc=ewnlrTuWATqlCM R1 30kohms and R2 7.6kohms . The problem is with reading . For low voltage I have to set offset around 0.5V but over 10V is + 4 / 5 V ! So , I can't have one offset value for all voltages . That's the point . With this resitors values , I cand measure up to 16.5 V theoretical but if the source have 15V , my sensor read 20+ or another stupid values
@robojax
@robojax 3 роки тому
okay then if you watch the video, then you know that it will work with 5V, 3.3V, 1.1V, 2.56V any voltage.
@crazy-gangs2414
@crazy-gangs2414 4 роки тому
Hello please someone help me because i try this code and ererything do like in the video but it is always shows - 30.xx Ampers in my monitor. What i do wrong? HOW I CAN BRING IT 0 ? when the circuit is not loaded?
@robojax
@robojax 4 роки тому
Hi, Why should show the "ampere"? It shows voltage only.
@crazy-gangs2414
@crazy-gangs2414 4 роки тому
@@robojax oh sorry i want to commetnt to this video ukposts.info/have/v-deo/fIahbaFqr6tqqoU.html ... but the problem is same
@cjgamers8441
@cjgamers8441 2 роки тому
can I measure 48 v voltage, how to measure 48 v voltage
@robojax
@robojax 2 роки тому
Please watch the latest video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html you will have no questions left if you watch it fully. I will replay to any question that is not answered in video. good luck
@giacobbecerrotta6049
@giacobbecerrotta6049 4 роки тому
Hello, can you please help me to write a bit code for reading current from ACS723 40A bidirectional ?, tnx Jack
@robojax
@robojax 4 роки тому
Hi Jack, I will have to write code and test it before I can offer you anything. I will purchase the sensor and then make video. I do not promise this to be soon but putting in my "to do list". Ahmad
@giacobbecerrotta6049
@giacobbecerrotta6049 4 роки тому
Vy kindly, tnx Ahmad. I remain available for reimbursement the cost, thank you Jack
@bjorntheviking6745
@bjorntheviking6745 Рік тому
Firstly it would not exceed 25.20VDC as you mapped it to that, secondly and more importantly, that device is just a voltage divider, you exceeded the maximum 5vdc on the input and that exceeded the 10-bit adc count, inputting 30vdc at the input of the sensor means you were getting a much higher voltage on the ADC pin and risk blowing your MC
@robojax
@robojax Рік тому
Hello, you may need to view this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@bjorntheviking6745
@bjorntheviking6745 Рік тому
That video does not change physics, the voltage divider gives a reference voltage to the arduino 30VDC when R1 is 30k and R2 is 7.5k gives 6v on divider, that is enough to ruin your arduino, there is no protection on that circuit, when you went to 30VDC you exceeded the ADC resolution and you mapped that resolution to 2500, demonstrating that you can exceed this could cause damage to the device, if you don’t know what you are doing then don’t make videos or refer me to videos that are a logical fallacy. People come here for advice, see a video like this and destroy their projects, my students use UKposts that is why I look to see the quality of the content, be responsible
@harrisg2778
@harrisg2778 5 років тому
Can I wire the direct the pin out without transistor?
@robojax
@robojax 5 років тому
I believe you meant "resistor" not "transistor". If so, yes you can but as explained, you will be able to read only 5V.
@harrisg2778
@harrisg2778 5 років тому
@@robojax oh yes I mean it ,sorry. So I'll measure voltage of solarcell ,I should put resistor?
@robojax
@robojax 5 років тому
Arduino can accept only 5V. Your solar panels for sure have above 5V. You would have use voltage divider to reduce it to the scale of 5V and based on 5V, your arduino will be able to measure it. Any voltage above 5V will harm Arduino. I have provided a document in the description where it shows how to calculate resistor for different voltage for Arduino.
@harrisg2778
@harrisg2778 5 років тому
@@robojax thank you so much
@robojax
@robojax 5 років тому
You are welcome.
@andreeespinozaorellana742
@andreeespinozaorellana742 4 роки тому
hi, how i can measure high voltage with arduino??
@robojax
@robojax 4 роки тому
Yes you can, if you read the title you will see it says "any voltage" and that is why I made this video so you can measure any voltage. I replied yesterday but don't know what happened, youtube did not save it.
@vivekavardhannaidubhyripud6733
@vivekavardhannaidubhyripud6733 4 роки тому
@@robojax hi i want to measure 230v AC by using ardunio and sensor which voltage sensor is usefull
@cryptoteacherx
@cryptoteacherx 3 роки тому
double voltage = map(volt,0,1023, 0, 2500) + offset; can u explain this code in simple word?
@robojax
@robojax 3 роки тому
even though I have explained it, it means get "volt" which is from 0 to 1023 and map or convert it to value between 0 and 25000. The result of this conversion is stored in "voltage" variable which you use alter.
@cryptoteacherx
@cryptoteacherx 3 роки тому
@@robojax i already run used this code but the voltage is not same as i use multimeter. I wonder why
@robojax
@robojax 3 роки тому
this module is junk. Measure voltage using arduino with just two resistor with 1% error ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html I madthe video for this module because people just buy it and everyone needed a video to explain it.
@apostolosmixaniotis5932
@apostolosmixaniotis5932 5 років тому
1 volt = 1000mv 25 volt = 25000 mv
@santhoshr53
@santhoshr53 2 роки тому
Sir how to measure million volts in Arduino plz explain with code
@robojax
@robojax 2 роки тому
We are not measurerung volt. It is millivolt. See this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@vvoranartsomnam5507
@vvoranartsomnam5507 2 роки тому
If i want to use double sensor How i do?
@robojax
@robojax 2 роки тому
Dont use this item it is fake piece. Use just two resistor watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@gauravmalik2180
@gauravmalik2180 2 роки тому
espcomm_upload_mem failed error is shown please give some solution
@robojax
@robojax 2 роки тому
this is very basic code and should not create any problem. Try File->Examples-Basic->Blink and see if it works. There must be other settings causing it.
@MuruganVeera1980
@MuruganVeera1980 Рік тому
i am from india ,taminadu ,how could i purchase
@robojax
@robojax Рік тому
you don't need it. please watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html you just need two resistors ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@TheResidentSkeptic
@TheResidentSkeptic 5 років тому
I just bought one of these without even looking at it - It's just a pair of resistors set up as a voltage divider with a terminal block on the end. At least it was under $2, but this module is completely unnecessary if you have a pair of resistors, and the values you choose will determine the maximum voltage - example: a 10k and 100k will give you a 10:1 division meaning you can measure up to 50V. This has got to be the most underwhelming module ever.
@robojax
@robojax 5 років тому
I have explained that in video. Unfortunately people are buying it from eBay and AliExpress.
@subbiahannamalai589
@subbiahannamalai589 3 роки тому
Where module is connected
@robojax
@robojax 3 роки тому
you have not watched the video. I just watched the video and it is clearly shown and explained.
@gedasivaramchowdary4442
@gedasivaramchowdary4442 2 роки тому
can i measure 100V with this sensor
@robojax
@robojax 2 роки тому
Watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html and you can decide and learn the minimum based on the Analog bit settings. Use a board with 12bits to get better result.
@waleedyaseen7166
@waleedyaseen7166 2 роки тому
What about 220v
@robojax
@robojax 2 роки тому
wrong video see this ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@425Reality
@425Reality 3 роки тому
instructions unclear. my arduino has black smoke coming out after i plugged it in mains supply.
@robojax
@robojax 3 роки тому
you must have done something wrong. It can't be explained clearer than this.
@adibhazzim3783
@adibhazzim3783 5 років тому
Can i have their coding??
@robojax
@robojax 5 років тому
all my videos have the code link, under the description below the video. or go to Robojax.com to get it.
@neiron233
@neiron233 4 роки тому
hello friend could you send me the circuit?
@robojax
@robojax 4 роки тому
It is very simple. It would take less time to write to me that drawing it. I just 2 resistor.
@aloneinanearthship4010
@aloneinanearthship4010 4 роки тому
This is just a voltage divider. It will not measure "any" voltage.
@robojax
@robojax 4 роки тому
yes that is what I said.
@aloneinanearthship4010
@aloneinanearthship4010 4 роки тому
@@robojax Except the title say's otherwise. The title says "any voltage"....
@robojax
@robojax 4 роки тому
sorry i missed the "not" in your first comment. It measure ANY voltage. I have explained it in the video. Please watch fully without escaping.
@vooiekzito9244
@vooiekzito9244 Рік тому
How you did calculate... 25V / (30k + 7.5k ) => 0.667 mA miliAmpers NOT microAmpers !!!! and NOT 6.667uA OMG! 1st grade rules of matehematics ! if you assume I=6.66 microAmpers and Vx = 120 Volts then Rx must be 14,2 Mega Ohms !!!
@robojax
@robojax Рік тому
Hi, Just follow the link and see the document I provided. Don't use this junk piece. Just use two resistor and measure any voltage by watching this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html
@hamzashehadeh7705
@hamzashehadeh7705 3 роки тому
Brother your math is wrong. Should be 666uA not 6.66uA.
@robojax
@robojax 3 роки тому
Read description of the video. The correct value is there
@quickfixengineeringltd8035
@quickfixengineeringltd8035 Рік тому
I want to measure 48 volts. I camtget the sensor online and the resistor combination used in series is what? Please do you have a WhatsApp or telegram group.
@robojax
@robojax Рік тому
if you want to measure any DC voltage please watch this video ukposts.info/have/v-deo/rGipq6iNoWiSp6c.html if you want to hire me to do a project, then contact me via robojax.com(at)gmail and if I reply and we will see if I can do it. However all my videos are free otherwise. I will charge $100/hour.
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Переглядів 191 тис.
VOLTAGE SENSOR (0-25V) - Arduino tutorial #17
8:20
Bas on Tech
Переглядів 52 тис.
Їжа Закарпаття. Великий Гід.
1:00:29
Мiша Кацурiн
Переглядів 522 тис.
DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
10:58
How-to: Accurate Voltage Measurements with Arduino
12:15
Elektor TV
Переглядів 30 тис.
ZMPT101B 250V AC Voltage Sensor with Arduino, Voltage Monitoring
9:18
Electronic Clinic
Переглядів 15 тис.
Different Ways for Measuring Current With Arduino
13:32
Electronoobs
Переглядів 66 тис.
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Переглядів 9 млн
I had no idea SHEIN sold PC parts…
27:10
Linus Tech Tips
Переглядів 1,5 млн
Changing Replace And Edit Backgrounds New Tech || Photo Eedit NEW3X
0:50
intermediate switch circuit #automobile #electrical #electricalswitch #powerswitch #delta #starwars
0:15
DOMESTIC , INDUSTRIAL ELECTRICAL AND MECHANICS
Переглядів 3,1 млн