0V to 25V
0V to 25V
0V to 5V
1%
10mV
5mA
-20C to 80C
25mm x 15mm x 10mm
5g
Applications
| The Voltage Sensor Module 25V is suitable for a wide range of applications, including |
IoT projects, such as home automation and industrial automation
Robotics, such as robotic arms and autonomous vehicles
Industrial control systems, such as power monitoring and control
Automotive systems, such as battery monitoring and charging systems
Consumer electronics, such as power banks and battery-powered devices
Certifications and Compliance
The Voltage Sensor Module 25V complies with RoHS and CE standards, ensuring that it meets the safety and environmental requirements for use in a variety of applications.
Voltage Sensor Module 25V DocumentationOverviewThe Voltage Sensor Module 25V is a compact and precise voltage measurement module designed for IoT applications. This module can measure voltages up to 25V with high accuracy and is suitable for use in a wide range of applications, including robotics, automation, and monitoring systems.Technical SpecificationsMeasurement Range: 0-25V
Accuracy: 1% FS
Resolution: 10mV
Operating Voltage: 3.3-5V
Communication Interface: Analog Output
Module Size: 20x15mmCode Examples### Example 1: Measuring Voltage with an Arduino BoardIn this example, we will use the Voltage Sensor Module 25V to measure the voltage of a battery connected to an Arduino Uno board.Hardware RequirementsArduino Uno board
Voltage Sensor Module 25V
Breadboard and jumper wires
Battery (e.g., 9V)Software RequirementsArduino IDE (version 1.8.x or later)Code
```c
const int voltageSensorPin = A0; // Analog input pin for voltage sensorvoid setup() {
Serial.begin(9600);
}void loop() {
int sensorValue = analogRead(voltageSensorPin);
float voltage = sensorValue (25.0 / 1023.0);
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(500);
}
```
In this code, we read the analog value from the voltage sensor module using the `analogRead()` function. We then convert the value to a voltage reading using the formula: `voltage = sensorValue (25.0 / 1023.0)`. The result is printed to the serial console.### Example 2: Measuring Voltage with a Raspberry Pi (Python)In this example, we will use the Voltage Sensor Module 25V to measure the voltage of a power supply connected to a Raspberry Pi.Hardware RequirementsRaspberry Pi (any model)
Voltage Sensor Module 25V
Breadboard and jumper wires
Power supply (e.g., 12V)Software RequirementsRaspbian OS (any version)
Python 3.xCode
```python
import adc # Import the ADC library for Raspberry Pi# Set up the ADC channel for the voltage sensor
adc_channel = 0try:
while True:
# Read the analog value from the voltage sensor
sensor_value = adc.read_adc(adc_channel)# Convert the value to a voltage reading
voltage = sensor_value (25.0 / 1023.0)print(f"Voltage: {voltage:.2f} V")
time.sleep(0.5)except KeyboardInterrupt:
print("Program interrupted. Exiting...")
```
In this code, we use the `adc` library to read the analog value from the voltage sensor module. We then convert the value to a voltage reading using the formula: `voltage = sensor_value (25.0 / 1023.0)`. The result is printed to the console.These examples demonstrate the basic usage of the Voltage Sensor Module 25V in different contexts. You can modify the code to suit your specific requirements and integrate it into your IoT projects.