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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html measuring voltage is the same as using potentiometer to measure voltage. see ESP32 video for that here th-cam.com/video/UXKu2Xtwj7c/w-d-xo.html
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?
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: th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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: th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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.
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.
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
Please watch this Energy meter using Shunt resistor th-cam.com/video/qh1LlCg6yXw/w-d-xo.html or watch this video using Winson Current sensor th-cam.com/video/-pg7jbkaB6A/w-d-xo.html if you are want to use Winson Current Sensors then start with introduction video here th-cam.com/video/z-s8UvCWGxY/w-d-xo.html
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.
I am glad you found useful. This is just two resistors. Here the video where you can measure any voltage with just two resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and here is Arduino Step by Step Course (over 100 lectures) Starts here th-cam.com/video/-6qSrDUA5a8/w-d-xo.html
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.
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?
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
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.
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and in terms of voltage , not it will not heat up.
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
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
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?
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...
Hi, that's called taking action on some event like change in voltage. you can learn it from this video th-cam.com/video/FWRWLzKFf38w/w-d-xo.html here we take action when voltage reaches at certain value. Or this video th-cam.com/video/dVh77wT-4Ao/w-d-xo.html
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?
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
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!
you are welcome. this module has limitation. See my latest video on measuring voltage th-cam.com/video/t8xwrVj2aFs/w-d-xo.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 th-cam.com/video/9jwCc7uPGoc/w-d-xo.html to make energy meter. or here if you want to display it on LCD th-cam.com/video/xHe9RRQWMBM/w-d-xo.html and I've got more if you search my channel.
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.
It seems you have a capacitor connected to the input of Arduino. Please watch better way to measure any voltage th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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?!
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 %
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/
for voltage measurement you don't need this module, watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html for current either use shunt resistor th-cam.com/video/9jwCc7uPGoc/w-d-xo.html or current sensor module th-cam.com/video/3C33DpcSwIw/w-d-xo.html or this th-cam.com/video/z-s8UvCWGxY/w-d-xo.html
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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/
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.
Hello and you are welcome. I have created another tutorial showing how to measure any DC voltage without this module with just 2 resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.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 th-cam.com/video/9jwCc7uPGoc/w-d-xo.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.
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
Please watch the latest video which shows you don't need this module th-cam.com/video/t8xwrVj2aFs/w-d-xo.html all the pins A0 to A5 are analog input but Arduino Mega has move than 10.
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html good luck.
@@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?
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 .
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.
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.
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?
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 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 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
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 th-cam.com/video/KDc2Z43DzT0/w-d-xo.html good luck.
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
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.
first of all please watch the proper video to measure any DC voltage here th-cam.com/video/t8xwrVj2aFs/w-d-xo.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.
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.
@@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 :)
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 th-cam.com/video/DVp9k3xu9IQ/w-d-xo.html for up 30A or th-cam.com/video/GE4I10IZ1jY/w-d-xo.html for 50A or more
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?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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.
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Please watch the latest video th-cam.com/video/t8xwrVj2aFs/w-d-xo.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
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
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
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...
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.
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 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?
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.
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.
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
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 TH-cam that is why I look to see the quality of the content, be responsible
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
you don't need it. please watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html you just need two resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and you can decide and learn the minimum based on the Analog bit settings. Use a board with 12bits to get better result.
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.
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
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.
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.
this module is junk. Measure voltage using arduino with just two resistor with 1% error th-cam.com/video/t8xwrVj2aFs/w-d-xo.html I madthe video for this module because people just buy it and everyone needed a video to explain it.
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.
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 !!!
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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.
if you want to measure any DC voltage please watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.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 any voltage using Arduino without this module see this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Thank you a lot Mr. Ahmed, I search for you at first when I need an explanation.
You are most welcome
Thank you Sir for the explanation...appreciate your effort ❤
My pleasure
amazing, clear, to the point. thank you.
You are welcome.
What we have to change the coding when use on esp32?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html measuring voltage is the same as using potentiometer to measure voltage. see ESP32 video for that here th-cam.com/video/UXKu2Xtwj7c/w-d-xo.html
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?
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: th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Thanks so much
Just note that the calculation of 25v/(30k+7.5k) is equal to 0.6666666 is much easer for calculation🌷🌷🌷🌷
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: th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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.
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.
Hello Mr. Ahmed, Your video is amazing, I really like the explanation for each of your videos.
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
Please watch this Energy meter using Shunt resistor th-cam.com/video/qh1LlCg6yXw/w-d-xo.html or watch this video using Winson Current sensor th-cam.com/video/-pg7jbkaB6A/w-d-xo.html if you are want to use Winson Current Sensors then start with introduction video here th-cam.com/video/z-s8UvCWGxY/w-d-xo.html
Thank you for your super practical video's.
You are welcome.
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.
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.
@@robojax Thank you so much for explaining. You definitely have great videos.
Thank you very much sir !!!
I am glad you found useful. This is just two resistors. Here the video where you can measure any voltage with just two resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and here is Arduino Step by Step Course (over 100 lectures) Starts here th-cam.com/video/-6qSrDUA5a8/w-d-xo.html
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?
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.
Can we use this one to check voltage lead acid battery 12 v 150ah
The link was in the description. but here is the video and code th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
@@robojax thank you very much
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?
Forget about this module. Here is ultimate voltage reading for Arduino th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
thank's, this solution for my project
You are welcome.
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
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.
Can i use this module to measure percentage of my lead aci 12v battery?
Please see this video th-cam.com/video/oufDb7AtvNk/w-d-xo.html
Does the sensor heat up while working for long time (more than hour)?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and in terms of voltage , not it will not heat up.
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
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
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?
Just search my channel
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...
Hi, that's called taking action on some event like change in voltage. you can learn it from this video th-cam.com/video/FWRWLzKFf38w/w-d-xo.html here we take action when voltage reaches at certain value. Or this video th-cam.com/video/dVh77wT-4Ao/w-d-xo.html
@@robojax Thank you sir. I will try my best in learning it, hope I can...
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?
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
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!
you are welcome. this module has limitation. See my latest video on measuring voltage th-cam.com/video/t8xwrVj2aFs/w-d-xo.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 th-cam.com/video/9jwCc7uPGoc/w-d-xo.html to make energy meter. or here if you want to display it on LCD th-cam.com/video/xHe9RRQWMBM/w-d-xo.html and I've got more if you search my channel.
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
you did not say to measure what. Voltage no. See this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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.
It seems you have a capacitor connected to the input of Arduino. Please watch better way to measure any voltage th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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?!
Thanks for your lessons, and if I want to measure voltages up to 0.400V at most, how do I do it?
you are welcome. Here is the latest video where you can measure up to 1000V th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Really great job ,, but I wanna ask of how can I change the value of the voltage from voltage value to percentage
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.
Robojax thank u sir for ur fast reply ,, I am using 12V battery and I want it to present as a percentage value.
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 %
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/
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!
for voltage measurement you don't need this module, watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html for current either use shunt resistor th-cam.com/video/9jwCc7uPGoc/w-d-xo.html or current sensor module th-cam.com/video/3C33DpcSwIw/w-d-xo.html or this th-cam.com/video/z-s8UvCWGxY/w-d-xo.html
@@robojax yeah I thought so.
If I use current sensor. It will also give voltage reading right?
@@robojax having trouble finding a current sensor with that can measure atleast up to 25v and 10 amps.
Can you recommend one?
Is this sensors work on ac supply or dc.
DC only. Watch latest video to measure voltage without any module. just two resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
where can you get that little digit screen?
eBay, AliExpres or Amazon. just search for LED voltmeter
Hi, what circuit can I use to convert AC voltage to DC without changing the peak voltage? Thank you!!
You need full wave rectifier www.electronics-tutorials.ws/diode/diode_6.html
is the volatge sensor name is just voltage sensor or any other specific name
it is just fake PCB. watch this and use only 2 resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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 ?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Fast voltage changes not sensing with this module.... please help for that...
Change the delay inside loop()
Makes it smaller value
@@robojax Many many thanks...
Thank you so much sir.
you are welcome. Measure voltage with just two resistor and Arduino (latest video) th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Can it be used to measure a potential (in Volts) having 3 digits after the decimal point? like for example "123 mV"? Please reply
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/
very helpful 👏
Thank you. Then Subscribe 🔔please.
Can u pls help with esp 8266 lolin? is not given correct data...im about to get crazy here thx
Same ,i use wemos d1 mini
@@rimbang_ it seems esp8266 has a prebuilt voltage reductor im not exact about what or how
Try change the map : before : map(value,0,1023,0,2500)+offset;
.
Change the "2500" i try that and is liitle accurate
@@rimbang_ Tried but did not work
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.
Hello and you are welcome.
I have created another tutorial showing how to measure any DC voltage without this module with just 2 resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.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 th-cam.com/video/9jwCc7uPGoc/w-d-xo.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.
what type software that did you used to draw schematic?
Firtzing free software fritzing.org/home/
thank you.
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
you are visiting the wrong video. see it here th-cam.com/users/robojaxTVsearch?query=acs712
How many input voltages can be read in parallel by one board?
Please watch the latest video which shows you don't need this module th-cam.com/video/t8xwrVj2aFs/w-d-xo.html all the pins A0 to A5 are analog input but Arduino Mega has move than 10.
i want to get the output signal when the voltage < 3.8 . How can i do it and how the code will change?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html good luck.
@@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?
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.
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 .
hey thanks for the reply, so do you a module that can display large voltages that i can buy?
The center hole surrounded by small holes has any function?
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.
Hi, can you suggest a sensor which can be used for 0-500V DC.
yes you can use this. Just follow the formula I have given.
You can use this sensor.
Can I wire the direct the pin out without transistor?
I believe you meant "resistor" not "transistor". If so, yes you can but as explained, you will be able to read only 5V.
@@robojax oh yes I mean it ,sorry.
So I'll measure voltage of solarcell ,I should put resistor?
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.
@@robojax thank you so much
You are welcome.
Can I use nodemcu esp8266 instead of arduino?
Yes it will work. Connect it to ADC pin.
@@robojax thanks a lot
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?
Hi, here is introduction to ESP8266 th-cam.com/video/pLvqh57T3s4/w-d-xo.html
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?
Take this into consideration that the referee for ESP8266 is 3.3V. The code is working for 5V reference.
Did you found the answer for Esp8266 ? I tried a lot of variants but no result
Can I use this sensor with ESP8266 to measure up to 17V max ?
Yes you can. here is latest video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
@@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 .
it seem you have not watched the video. Watch it please it work with ESP32 and ESP8266.
@@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
okay then if you watch the video, then you know that it will work with 5V, 3.3V, 1.1V, 2.56V any voltage.
Is it possible not only be able to read the result I also wish able to hear the value?
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 th-cam.com/video/KDc2Z43DzT0/w-d-xo.html good luck.
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
then Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
Do you have video tutorial for ac voltage ? It is same with the dc ?
No I don't. Arduino can't measure AC and there is no module yet for AC voltage.
How to display the value of voltage and current using pzem-004t using arduino? Could u help me.
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.
Thank you project GOD :=)
how i can meassure negative voltage values?
first of all please watch the proper video to measure any DC voltage here th-cam.com/video/t8xwrVj2aFs/w-d-xo.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.
Hi, i get wrong values (6.23 volts instead of 3.88 v measured with a multimeter), how can i fix this problem?
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.
@@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 :)
hello sir, what must be changed if i wanna measure the current? thank you :)
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 th-cam.com/video/DVp9k3xu9IQ/w-d-xo.html for up 30A or th-cam.com/video/GE4I10IZ1jY/w-d-xo.html for 50A or more
@@robojax thank's, this solution for my project
You are welcome.
@@hilmanabdurahman4265 hi, may i know, how you code for voltage and current in one coding?
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?
Hi, Why should show the "ampere"? It shows voltage only.
@@robojax oh sorry i want to commetnt to this video th-cam.com/video/DVp9k3xu9IQ/w-d-xo.html ... but the problem is same
What is the maximum capacity voltage of the sensor?
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
If i want to use double sensor How i do?
Dont use this item it is fake piece. Use just two resistor watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Sir, How can I use voltage sensor to sense Human body voltage?? Pls do reply sir coz i m in mid of my project...
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.
@@robojax tqsm sir...
May i know what is the model name of this voltage sensor?
just "Arduino voltage sensor". No model.
Where module is connected
you have not watched the video. I just watched the video and it is clearly shown and explained.
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.
No. this is to measure DC voltage only.
Thank you much
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
can I measure 48 v voltage, how to measure 48 v voltage
Please watch the latest video th-cam.com/video/t8xwrVj2aFs/w-d-xo.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
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
Thank you.
hello. can you release a video tutorial for AC voltage sensor controlling a relay
Hi, I will put it on my "to do" list. I assume you wanted AC of power line like 120V or 220V correct?
@@robojax did you ever do the video tutorial for AC voltage sensor controlling a relay? That would be great.
how did you get the formula can you please explain. I did not get your mathematical calculation thanks
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
I did not hear from you. did I answer your question? just wanted to know.
hello sir i got it now thank you for your explanation i understand now the circuit and formula thanking you!!!
you are welcome. Ramadan Kareem.
can i get your email address please
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...
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.
Ok
Thank you alot
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.
Here for voltage th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and for current th-cam.com/video/9jwCc7uPGoc/w-d-xo.html
@@robojax my question is, how to connect it to 15 samples if the voltage is low? (cathode and anode)
What sample?
@@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?
How can I measure both ac and DC voltage by using one aurdinou
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.
hi sir, please how to use 7 segment display to voltage sensor .my English is wike . please explane
Watch this video: th-cam.com/video/DuamjlstOKM/w-d-xo.html and then watch this th-cam.com/video/z_FvRm6Te78/w-d-xo.html
espcomm_upload_mem failed error is shown please give some solution
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.
Sir konsi language mai bata rahe ho
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
Hello, you may need to view this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
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 TH-cam that is why I look to see the quality of the content, be responsible
Make a capacitance and frequency meter using arduino
Hello, can you please help me to write a bit code for reading current from ACS723 40A bidirectional ?, tnx Jack
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
Vy kindly, tnx Ahmad.
I remain available for reimbursement the cost, thank you
Jack
i am from india ,taminadu ,how could i purchase
you don't need it. please watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html you just need two resistors th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
can i measure 100V with this sensor
Watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and you can decide and learn the minimum based on the Analog bit settings. Use a board with 12bits to get better result.
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.
I have explained that in video. Unfortunately people are buying it from eBay and AliExpress.
instructions unclear.
my arduino has black smoke coming out after i plugged it in mains supply.
you must have done something wrong. It can't be explained clearer than this.
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
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.
double voltage = map(volt,0,1023, 0, 2500) + offset;
can u explain this code in simple word?
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.
@@robojax i already run used this code but the voltage is not same as i use multimeter. I wonder why
this module is junk. Measure voltage using arduino with just two resistor with 1% error th-cam.com/video/t8xwrVj2aFs/w-d-xo.html I madthe video for this module because people just buy it and everyone needed a video to explain it.
What about 220v
wrong video see this th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
hi, how i can measure high voltage with arduino??
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.
@@robojax hi i want to measure 230v AC by using ardunio and sensor which voltage sensor is usefull
I want the code for ZMPT101B calbration
Sir how to measure million volts in Arduino plz explain with code
We are not measurerung volt. It is millivolt. See this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
1 volt = 1000mv 25 volt = 25000 mv
sie make pleas HT VOLTAG SENSOR
WHICH CAN 11OOO TO 132000 TILL SENSE
Never heard of it. It is not common and I try make tutorial video that most people benefit.
Can i have their coding??
all my videos have the code link, under the description below the video. or go to Robojax.com to get it.
This is just a voltage divider. It will not measure "any" voltage.
yes that is what I said.
@@robojax Except the title say's otherwise. The title says "any voltage"....
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.
hello friend could you send me the circuit?
It is very simple. It would take less time to write to me that drawing it. I just 2 resistor.
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?
You are welcome. This is the best option.
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 !!!
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 th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
Brother your math is wrong. Should be 666uA not 6.66uA.
Read description of the video. The correct value is there
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.
if you want to measure any DC voltage please watch this video th-cam.com/video/t8xwrVj2aFs/w-d-xo.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.