0-25V
0-25V
0-5V
1% Error Margin
<10mA
-20C to 85C
16.5 x 13.5 mm
2g (approx.)
Ordering Information
The Voltage Sensor Module 25V is available in a pack of 25. When ordering, please specify the quantity required. For more information, please contact our sales team.
Voltage Sensor Module 25V (Pack of 25) DocumentationOverviewThe Voltage Sensor Module 25V is a compact and accurate voltage sensing module designed to measure DC voltages up to 25V. This module is ideal for IoT applications, robotics, and electronic projects that require voltage monitoring. The module comes in a pack of 25, making it a cost-effective solution for prototyping and production.Technical SpecificationsInput Voltage Range: 0V to 25V DC
Output Voltage Range: 0V to 5V DC (linearly proportional to input voltage)
Accuracy: 1% FS (full scale)
Response Time: 10ms
Operating Temperature: -20C to 85C
Interface: Analog output (Vout)Connecting the ModuleTo use the Voltage Sensor Module 25V, connect the following pins:VIN: Connect to the DC voltage source to be measured (0V to 25V)
GND: Connect to the ground of the system
VOUT: Connect to an analog-to-digital converter (ADC) or a microcontroller's analog input pinCode Examples### Example 1: Measuring Battery Voltage with ArduinoIn this example, we will use an Arduino Uno to measure the voltage of a 12V battery using the Voltage Sensor Module 25V.```c
const int voltagePin = A0; // Connect VOUT to Analog Input A0void setup() {
Serial.begin(9600);
}void loop() {
int sensorValue = analogRead(voltagePin);
float voltage = sensorValue (25.0 / 1023.0);
Serial.print("Battery Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000);
}
```### Example 2: Monitoring Power Supply Voltage with Raspberry PiIn this example, we will use a Raspberry Pi to monitor the voltage of a 24V power supply using the Voltage Sensor Module 25V.```python
import time
import RPi.GPIO as GPIOGPIO.setmode(GPIO.BCM)
voltage_pin = 18 # Connect VOUT to GPIO 18while True:
sensor_value = GPIO.input(voltage_pin)
voltage = round((sensor_value 25.0) / 1023.0, 2)
print(f"Power Supply Voltage: {voltage} V")
time.sleep(1)
```### Example 3: Voltage Monitoring with ESP32In this example, we will use an ESP32 to measure the voltage of a 12V solar panel using the Voltage Sensor Module 25V.```c
#include <WiFi.h>const int voltagePin = 32; // Connect VOUT to GPIO 32void setup() {
Serial.begin(115200);
}void loop() {
int sensorValue = analogRead(voltagePin);
float voltage = sensorValue (25.0 / 4095.0);
Serial.print("Solar Panel Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000);
}
```NotesIn all examples, ensure that the Voltage Sensor Module 25V is properly connected to the microcontroller or single-board computer.
The output voltage of the module is linearly proportional to the input voltage, making it easy to calculate the input voltage using the output voltage.
The accuracy of the measurement may vary depending on the specific implementation and external factors such as noise and temperature.