👉 Don't forget to check arduino-tutorials.net for more Arduino tutorials and projects. If you have questions, don't hesitate to ask them in de comments. Remember: There are no stupid questions 😃
The current draw by an analog input pin is less than 1 micro amp so any voltage dividing resistors in the kilo ohm range will give a pretty accurate measurement.
Hi! Could you explain a bit more the plus pin on the sensor? In many tutorials, people simply ignore this pin, don't connect it to anything. They only connect the - and S pin. What's the difference?
I have honestly no idea. It could be that the sensor is not using this pin. Sometimes they have 3 pins to match the standard sensor wires which have 3 connectors and these are not all used.
A better way to do this would be to use a zener diode eg 20v to clip the signal down from eg 23v to 3v and measure the 3 volts and add it to the 20 in your code. That could give more resolution/accuracy.
@@noccloud say you want to monitor a voltage about 26 volts and you have a zener diode at say 24v. I would put the zener diode at the positive side of the 26v in series with a 1K ohm connected to zero volts. The voltage across the resistor is 26-24 =2 volts. The Arduino can measure the 2 volts. The software can add the 24 volts to give an accurate reading of the 26 volts.
No this could be very dangerous! The max voltage is 25V Higher will damage the sensor or worse. You then should look for a sensor which suits the voltage range you want to measure.
@@BasonTech why not just put a zener diode in series. Say a 5 volt zener diode dropping a 28v battery down to 23 V to enable estimation of the battery voltage?
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...
Can we use this voltage sensor with current sensor (acs712) at the same time from the same source? I want to measure supply voltage and how much current flow into the Load.
Hi! I really needed help with connecting and taking readings of 2 or more than 2 voltage sensors simultaneously through the Arduino. The physical connections are do-able but I am facing difficulty with the code. Can you please help?
I have a question; I use both analog pin for precise voltage read and Voltage sensor for current that is over 12V. I noticed that when the voltage reading a separate source of 5V, my analog pin jump from 10 to 200 when it has no voltage supplied to it. Why is that happening?
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?
I am sorry, I have no experience with a mosfet so I can't help you with this issue. My suggestion would to ask this on the Arduino forum forum.arduino.cc/ or on Reddit at the www.reddit.com/r/askelectronics/ subreddit. Hope this helps 😃
@@BasonTech of course, but is it a software or a hardware issue? Let's assume that we have one battery standby and when we notice a big drop of the main, to change using a relay to the reserve. How could this, be done. Thanks in advance
I do not really have any experience with this sensor and the ESP32. I guess you can do the same measurements as I did for the Arduino. Only the ESP has 3.3V instead of the 5V Uno.
@@BasonTech i found that it's not possible, because that would exceed the 5v per pin on the Arduino. you would need to design a circuit with specific resistors to be 0-0.5 V per pin adjust scaling factor, and now 10s of 0.5v modules is 5v and now the Arduino wont be fried, probably.
Hi friend, are you powering the Arduino from the middle pin + of the voltage sensor? I don´t get any voltage from that source only Signal, have i overseen something? thnx
Hi, have you connected your Arduino to the sensor the same way as shown on the circuit schema in the course material? arduino-tutorials.net/tutorial/reading-voltage-sensor-with-arduino
How do 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 8366, 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?
Hey everyone, forget the + pin and the silly wheel in the centre. Neither are connected to anything. Just there to confuse you hahaha 🤣 The circuit just takes the Vcc voltage and divides it down to one fifth at the S pin.
I think 1A is a bit too much for this sensor. But I can't proof it with a datasheet. All specs I could find talk about the voltage range and not the current limits.
I wonder if this little board reduces noise or is it just a scam to make money because any pair of resistors are could do the job... And if one of the resistors was variable it would be fully adjustable.
I don't want to call this a scam. It just suits another target audience. There are many Arduino kits which use a 3 wires glued together for sensors, buttons etc. Therefore every PCB sensor has 3 pins even though they are not all connected. You can easily make this yourself with bare components as shown in the video. Some prefer not to and want to use an off the shelf component. The purpose of this tutorial is not to show the best / preferred way of measuring voltage. It is to show you to use and connect this specific voltage sensor.