A voltage sensor is a sensor is used to calculate and monitor the amount of voltage in an object. Voltage sensors can determine both the AC voltage and DC voltage levels. The input of this sensor can be the voltage whereas the output is the switches, analog voltage signal, a current signal, an audible signal, etc. The pin diagram of the Voltage Sensor Module is given below: -
- Small in weight and size.
- Personnel safety is high.
- The degree of accuracy is very high.
- It is non-saturable.
- Wide dynamic range.
- It is possible to combine both the voltage and current measurements into a single physical device with small and compact dimensions.
Voltage Detection Sensor Module is a simple and very useful module that uses a potential divider to reduce any input voltage by a factor of 5. This allows us to use the Analog input pin of a microcontroller to monitor voltages higher than it capable of sensing. For example, with a 0V - 5V Analog input range, you are able to measure a voltage up to 25V. This module also includes convenient screw terminals for easy and secure connections of a wire. The Voltage Sensor is basically a Voltage Divider consisting of two resistors with resistances of 30KΩ and 7.5KΩ i.e. a 5 to 1 voltage divider.
The following image shows the schematic of the Voltage Sensor Module with an input voltage limit of 25V
Now that we have seen a little about the Voltage Sensor, let us now proceed with interfacing a Voltage Sensor with Arduino and measure some external voltages.
The Arduino Voltage Sensor Interface is pretty straight forward.
1. Connect the voltage to be measured to the screw terminal of the Voltage Sensor, connected the output of the voltage divider to the Arduino. That’s it.
2. After interfacing the Voltage Sensor with Arduino, you can view the results on the serial monitor of the Arduino IDE.
Input and output can be calculated by using the following code: -
float Vout = 0.0;
float Vin = 0.0;
float R1 = 30000;
float R2 = 7500;
Vin = Vout * (R2/(R1+R2));
Vout = (analogvalue * 5 / 1024);
- Power failure detection.
- Load sensing.
- Safety switching.
- Temperature control.
- Power demand control.
- Fault detection.
Voltage sensors are included in many of the best Arduino starter kits, as they are very useful in many electronics projects. Get Additional Information on Voltage Sensor Module and keep your electronic projects safe.
This voltage sensor module is very useful in finding the voltage of a battery. If you want to know more specifications about the battery like what is AH, WH and other technicalities Click Here.