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

  Рет қаралды 139,855

Robojax

Robojax

Күн бұрын

Пікірлер: 251
@robojax
@robojax 4 жыл бұрын
Measure any voltage using Arduino without this module see this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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
@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.
@ThisHandIelsTaken
@ThisHandIelsTaken 29 күн бұрын
Thank you Sir for the explanation...appreciate your effort ❤
@robojax
@robojax 29 күн бұрын
My pleasure
@raj_srikar
@raj_srikar 4 жыл бұрын
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 4 жыл бұрын
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: kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@zfaj2168
@zfaj2168 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
@@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU 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 kzbin.info/www/bejne/b5vadJZtqrV6pcU to make energy meter. or here if you want to display it on LCD kzbin.info/www/bejne/rnnIaoWIhryAeK8 and I've got more if you search my channel.
@zaenqureshi5032
@zaenqureshi5032 6 жыл бұрын
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 6 жыл бұрын
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.
@aksharchavan5818
@aksharchavan5818 3 жыл бұрын
Hello Mr. Ahmed, Your video is amazing, I really like the explanation for each of your videos.
@aksharchavan5818
@aksharchavan5818 3 жыл бұрын
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 3 жыл бұрын
Please watch this Energy meter using Shunt resistor kzbin.info/www/bejne/p5mUfZ95nJusjtk or watch this video using Winson Current sensor kzbin.info/www/bejne/Y6HKaJ2YoMZ1bKM if you are want to use Winson Current Sensors then start with introduction video here kzbin.info/www/bejne/sF7WaYiseLx6rrs
@robertbernal8524
@robertbernal8524 Жыл бұрын
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 Жыл бұрын
Just search my channel
@makeitsimple2306
@makeitsimple2306 4 жыл бұрын
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 4 жыл бұрын
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: kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@luqmanhakim3675
@luqmanhakim3675 4 жыл бұрын
What we have to change the coding when use on esp32?
@robojax
@robojax 4 жыл бұрын
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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU measuring voltage is the same as using potentiometer to measure voltage. see ESP32 video for that here kzbin.info/www/bejne/i4mupmWOqdydbcU
@hiram4578
@hiram4578 4 жыл бұрын
amazing, clear, to the point. thank you.
@robojax
@robojax 4 жыл бұрын
You are welcome.
@sebbavieira5665
@sebbavieira5665 4 жыл бұрын
Thanks for your lessons, and if I want to measure voltages up to 0.400V at most, how do I do it?
@robojax
@robojax 4 жыл бұрын
you are welcome. Here is the latest video where you can measure up to 1000V kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@meikoprdwntaraa
@meikoprdwntaraa Жыл бұрын
Can i use this module to measure percentage of my lead aci 12v battery?
@robojax
@robojax Жыл бұрын
Please see this video kzbin.info/www/bejne/pabJdZVtdtmphM0
@jean-etiennemarchand7932
@jean-etiennemarchand7932 4 жыл бұрын
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 4 жыл бұрын
Hello and you are welcome. I have created another tutorial showing how to measure any DC voltage without this module with just 2 resistors kzbin.info/www/bejne/qmnbqKWMn5eUfNU. 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 kzbin.info/www/bejne/b5vadJZtqrV6pcU 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.
@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 kzbin.info/www/bejne/fIi1iH-wgKuZaZqr here we take action when voltage reaches at certain value. Or this video kzbin.info/www/bejne/mofLaGqtiZJnd9E
@Pinoy_DIY
@Pinoy_DIY Жыл бұрын
@@robojax Thank you sir. I will try my best in learning it, hope I can...
@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
@Mossycak
@Mossycak 4 жыл бұрын
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 4 жыл бұрын
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
@majdaltaifi6423
@majdaltaifi6423 5 жыл бұрын
Really great job ,, but I wanna ask of how can I change the value of the voltage from voltage value to percentage
@robojax
@robojax 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
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/
@DiyintheGhetto
@DiyintheGhetto 6 жыл бұрын
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 6 жыл бұрын
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.
@kimleang.
@kimleang. 2 жыл бұрын
May I ask how can you change the voltage value? Is there any device to do that?
@robojax
@robojax 2 жыл бұрын
Please watch this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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
@naveenkrishnan2471
@naveenkrishnan2471 5 жыл бұрын
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 5 жыл бұрын
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/
@akul24
@akul24 3 жыл бұрын
Does the sensor heat up while working for long time (more than hour)?
@robojax
@robojax 3 жыл бұрын
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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU and in terms of voltage , not it will not heat up.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@MeenAviyal
@MeenAviyal 2 жыл бұрын
@@robojax thank you very much
@hansdegroot652
@hansdegroot652 4 жыл бұрын
Thank you for your super practical video's.
@robojax
@robojax 4 жыл бұрын
You are welcome.
@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.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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.
@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.
@dodgyaz
@dodgyaz 6 жыл бұрын
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 6 жыл бұрын
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.
@LemonShark1542
@LemonShark1542 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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU for current either use shunt resistor kzbin.info/www/bejne/b5vadJZtqrV6pcU or current sensor module kzbin.info/www/bejne/aXSWZHemmLiqf9k or this kzbin.info/www/bejne/sF7WaYiseLx6rrs
@LemonShark1542
@LemonShark1542 3 жыл бұрын
@@robojax yeah I thought so. If I use current sensor. It will also give voltage reading right?
@LemonShark1542
@LemonShark1542 3 жыл бұрын
@@robojax having trouble finding a current sensor with that can measure atleast up to 25v and 10 amps. Can you recommend one?
@adeherdiana1413
@adeherdiana1413 6 жыл бұрын
thank's, this solution for my project
@robojax
@robojax 6 жыл бұрын
You are welcome.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@nigelndlovu5038
@nigelndlovu5038 4 жыл бұрын
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 4 жыл бұрын
you are visiting the wrong video. see it here kzbin.infosearch?query=acs712
@rithikkablue
@rithikkablue 5 жыл бұрын
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 5 жыл бұрын
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.
@rithikkablue
@rithikkablue 5 жыл бұрын
@@robojax tqsm sir...
@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
@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.
@harshshukla8339
@harshshukla8339 4 жыл бұрын
Is this sensors work on ac supply or dc.
@robojax
@robojax 4 жыл бұрын
DC only. Watch latest video to measure voltage without any module. just two resistors kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@bharathasrimal8641
@bharathasrimal8641 3 жыл бұрын
Thank you very much sir !!!
@robojax
@robojax 3 жыл бұрын
I am glad you found useful. This is just two resistors. Here the video where you can measure any voltage with just two resistors kzbin.info/www/bejne/qmnbqKWMn5eUfNU and here is Arduino Step by Step Course (over 100 lectures) Starts here kzbin.info/www/bejne/Y2fUhKV6iqZol5o
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@royalsingh
@royalsingh 4 жыл бұрын
How many input voltages can be read in parallel by one board?
@robojax
@robojax 4 жыл бұрын
Please watch the latest video which shows you don't need this module kzbin.info/www/bejne/qmnbqKWMn5eUfNU all the pins A0 to A5 are analog input but Arduino Mega has move than 10.
@abhiramreddy8299
@abhiramreddy8299 6 жыл бұрын
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 6 жыл бұрын
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 6 жыл бұрын
hey thanks for the reply, so do you a module that can display large voltages that i can buy?
@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 kzbin.info/www/bejne/eofTap5prdpsf7M for up 30A or kzbin.info/www/bejne/fXaXemRmfr9koLs 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?
@Pankaj-2001
@Pankaj-2001 2 жыл бұрын
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?!
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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 4 жыл бұрын
Did you found the answer for Esp8266 ? I tried a lot of variants but no result
@neelranade6322
@neelranade6322 2 ай бұрын
Make a capacitance and frequency meter using arduino
@akhongbamnerita2624
@akhongbamnerita2624 Жыл бұрын
is the volatge sensor name is just voltage sensor or any other specific name
@robojax
@robojax Жыл бұрын
it is just fake PCB. watch this and use only 2 resistors kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@haikalazwan2529
@haikalazwan2529 5 жыл бұрын
Do you have video tutorial for ac voltage ? It is same with the dc ?
@robojax
@robojax 5 жыл бұрын
No I don't. Arduino can't measure AC and there is no module yet for AC voltage.
@E47irfan
@E47irfan 5 жыл бұрын
How to display the value of voltage and current using pzem-004t using arduino? Could u help me.
@hassankhurramtech
@hassankhurramtech 4 жыл бұрын
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.
@abelscorpio5314
@abelscorpio5314 6 жыл бұрын
The center hole surrounded by small holes has any function?
@robojax
@robojax 6 жыл бұрын
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.
@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.
@tophersplat
@tophersplat 4 жыл бұрын
where can you get that little digit screen?
@robojax
@robojax 4 жыл бұрын
eBay, AliExpres or Amazon. just search for LED voltmeter
@nierrizjayvetabanao6226
@nierrizjayvetabanao6226 4 жыл бұрын
Thank you so much sir.
@robojax
@robojax 4 жыл бұрын
you are welcome. Measure voltage with just two resistor and Arduino (latest video) kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@danielbob7769
@danielbob7769 4 жыл бұрын
Can I use this sensor with ESP8266 to measure up to 17V max ?
@robojax
@robojax 4 жыл бұрын
Yes you can. here is latest video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@danielbob7769
@danielbob7769 4 жыл бұрын
@@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 4 жыл бұрын
it seem you have not watched the video. Watch it please it work with ESP32 and ESP8266.
@danielbob7769
@danielbob7769 4 жыл бұрын
@@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 4 жыл бұрын
okay then if you watch the video, then you know that it will work with 5V, 3.3V, 1.1V, 2.56V any voltage.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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
@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: kzbin.info/www/bejne/eqbEnp2iqNmCga8 and then watch this kzbin.info/www/bejne/sJCpp4Wja7mYbZo
@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_ 5 жыл бұрын
Same ,i use wemos d1 mini
@scorill00
@scorill00 5 жыл бұрын
@@rimbang_ it seems esp8266 has a prebuilt voltage reductor im not exact about what or how
@rimbang_
@rimbang_ 5 жыл бұрын
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
@bjorntheviking6745
@bjorntheviking6745 2 жыл бұрын
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 2 жыл бұрын
Hello, you may need to view this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@bjorntheviking6745
@bjorntheviking6745 2 жыл бұрын
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 KZbin that is why I look to see the quality of the content, be responsible
@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.
@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...
@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.
@edgarmastache1024
@edgarmastache1024 10 ай бұрын
how i can meassure negative voltage values?
@robojax
@robojax 10 ай бұрын
first of all please watch the proper video to measure any DC voltage here kzbin.info/www/bejne/qmnbqKWMn5eUfNU 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.
@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 kzbin.info/www/bejne/gXXGY41qaKmtipI 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
@cryptoteacherx
@cryptoteacherx 4 жыл бұрын
double voltage = map(volt,0,1023, 0, 2500) + offset; can u explain this code in simple word?
@robojax
@robojax 4 жыл бұрын
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 4 жыл бұрын
@@robojax i already run used this code but the voltage is not same as i use multimeter. I wonder why
@robojax
@robojax 4 жыл бұрын
this module is junk. Measure voltage using arduino with just two resistor with 1% error kzbin.info/www/bejne/qmnbqKWMn5eUfNU I madthe video for this module because people just buy it and everyone needed a video to explain it.
@bryanyoon123
@bryanyoon123 5 жыл бұрын
May i know what is the model name of this voltage sensor?
@robojax
@robojax 5 жыл бұрын
just "Arduino voltage sensor". No model.
@4ndreB
@4ndreB 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
@@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 :)
@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.
@bobl703
@bobl703 Жыл бұрын
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 Жыл бұрын
Hi, here is introduction to ESP8266 kzbin.info/www/bejne/pn3ZoptrbLlmqZY
@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
@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.
@pamudufernandez9492
@pamudufernandez9492 4 жыл бұрын
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 4 жыл бұрын
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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU good luck.
@pamudufernandez9492
@pamudufernandez9492 4 жыл бұрын
@@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.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@crazy-gangs2414
@crazy-gangs2414 5 жыл бұрын
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 5 жыл бұрын
Hi, Why should show the "ampere"? It shows voltage only.
@crazy-gangs2414
@crazy-gangs2414 5 жыл бұрын
@@robojax oh sorry i want to commetnt to this video kzbin.info/www/bejne/eofTap5prdpsf7M ... but the problem is same
@MuruganVeera1980
@MuruganVeera1980 2 жыл бұрын
i am from india ,taminadu ,how could i purchase
@robojax
@robojax 2 жыл бұрын
you don't need it. please watch this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU you just need two resistors kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@bhargavguru0707
@bhargavguru0707 6 ай бұрын
Sir konsi language mai bata rahe ho
@vvoranartsomnam5507
@vvoranartsomnam5507 3 жыл бұрын
If i want to use double sensor How i do?
@robojax
@robojax 3 жыл бұрын
Dont use this item it is fake piece. Use just two resistor watch this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@cjgamers8441
@cjgamers8441 3 жыл бұрын
can I measure 48 v voltage, how to measure 48 v voltage
@robojax
@robojax 3 жыл бұрын
Please watch the latest video kzbin.info/www/bejne/qmnbqKWMn5eUfNU 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
@Exlicia
@Exlicia 3 жыл бұрын
Thank you project GOD :=)
@phephin96
@phephin96 4 жыл бұрын
very helpful 👏
@robojax
@robojax 4 жыл бұрын
Thank you. Then Subscribe 🔔please.
@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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU and for current kzbin.info/www/bejne/b5vadJZtqrV6pcU
@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?
@giacobbecerrotta6049
@giacobbecerrotta6049 5 жыл бұрын
Hello, can you please help me to write a bit code for reading current from ACS723 40A bidirectional ?, tnx Jack
@robojax
@robojax 5 жыл бұрын
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 5 жыл бұрын
Vy kindly, tnx Ahmad. I remain available for reimbursement the cost, thank you Jack
@santhoshr53
@santhoshr53 3 жыл бұрын
Sir how to measure million volts in Arduino plz explain with code
@robojax
@robojax 3 жыл бұрын
We are not measurerung volt. It is millivolt. See this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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 3 жыл бұрын
can i measure 100V with this sensor
@robojax
@robojax 3 жыл бұрын
Watch this video kzbin.info/www/bejne/qmnbqKWMn5eUfNU and you can decide and learn the minimum based on the Analog bit settings. Use a board with 12bits to get better result.
@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.
@andreeespinozaorellana742
@andreeespinozaorellana742 5 жыл бұрын
hi, how i can measure high voltage with arduino??
@robojax
@robojax 5 жыл бұрын
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
@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.
@waleedyaseen7166
@waleedyaseen7166 3 жыл бұрын
What about 220v
@robojax
@robojax 3 жыл бұрын
wrong video see this kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@apostolosmixaniotis5932
@apostolosmixaniotis5932 5 жыл бұрын
1 volt = 1000mv 25 volt = 25000 mv
@hasenthaher6339
@hasenthaher6339 5 жыл бұрын
I want the code for ZMPT101B calbration
@hassankhurramtech
@hassankhurramtech 4 жыл бұрын
instructions unclear. my arduino has black smoke coming out after i plugged it in mains supply.
@robojax
@robojax 4 жыл бұрын
you must have done something wrong. It can't be explained clearer than this.
@adibhazzim3783
@adibhazzim3783 6 жыл бұрын
Can i have their coding??
@robojax
@robojax 6 жыл бұрын
all my videos have the code link, under the description below the video. or go to Robojax.com to get it.
@neiron233
@neiron233 5 жыл бұрын
hello friend could you send me the circuit?
@robojax
@robojax 5 жыл бұрын
It is very simple. It would take less time to write to me that drawing it. I just 2 resistor.
@aloneinanearthship4010
@aloneinanearthship4010 5 жыл бұрын
This is just a voltage divider. It will not measure "any" voltage.
@robojax
@robojax 5 жыл бұрын
yes that is what I said.
@aloneinanearthship4010
@aloneinanearthship4010 5 жыл бұрын
@@robojax Except the title say's otherwise. The title says "any voltage"....
@robojax
@robojax 5 жыл бұрын
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 kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@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
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Рет қаралды 203 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 35 МЛН
How to use Allegro ACS712 AC/DC Current Sensor with Arduino
16:47
VOLTAGE SENSOR (0-25V) - Arduino tutorial #17
8:20
Bas on Tech
Рет қаралды 59 М.
Make A Simple Arduino Energy Meter
6:47
Michael Klements
Рет қаралды 145 М.
15 Minute Arduino Project: OLED Ammeter INA219
14:05
Julian Ilett
Рет қаралды 280 М.
Intel's weapon against motherboard companies... will it work?
17:26
JayzTwoCents
Рет қаралды 219 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26