Stufin
Home Quick Cart Profile

Voltage Sensor Module 25V

Buy Now on Stufin

Input Voltage Range

0V to 25V

Output Voltage Range

0V to 5V

Accuracy

1%

Resolution

10mV

Operating Current

5mA

Operating Temperature

-20C to 80C

Dimensions

25mm x 15mm x 10mm

Weight

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.

Pin Configuration

  • Voltage Sensor Module 25V Documentation
  • Pinout Description
  • The Voltage Sensor Module 25V is a compact module designed to measure voltage levels up to 25V. The module has a total of 4 pins, each with a specific function. Below is a detailed description of each pin:
  • Pinout Structure:
  • 1. VCC (Power Supply Pin)
  • Function: Provides power to the module
  • Voltage Range: 3.3V to 5V
  • Description: Connect this pin to a stable power supply, such as a battery or a regulated power source, to power the module.
  • 2. GND (Ground Pin)
  • Function: Provides a reference ground point for the module
  • Description: Connect this pin to the ground of your system or circuit to provide a common reference point.
  • 3. VIN (Voltage Input Pin)
  • Function: Inputs the voltage to be measured
  • Voltage Range: 0V to 25V
  • Description: Connect this pin to the voltage source you want to measure. Make sure the voltage does not exceed 25V.
  • 4. VOUT (Voltage Output Pin)
  • Function: Outputs the measured voltage as a proportionally scaled analog signal
  • Voltage Range: 0V to VCC (dependent on the input voltage)
  • Description: Connect this pin to an analog-to-digital converter (ADC) or a microcontroller's analog input pin to read the measured voltage.
  • Connection Guidelines:
  • To use the Voltage Sensor Module 25V, follow these connection guidelines:
  • 1. Connect VCC to a stable power supply (3.3V to 5V).
  • 2. Connect GND to the ground of your system or circuit.
  • 3. Connect VIN to the voltage source you want to measure (0V to 25V).
  • 4. Connect VOUT to an ADC or a microcontroller's analog input pin.
  • Important Notes:
  • Make sure to use a suitable power supply that meets the module's power requirements.
  • Ensure the input voltage (VIN) does not exceed 25V to avoid damaging the module.
  • Use a suitable voltage regulator or divider circuit if your voltage source exceeds 25V.
  • The module's output voltage (VOUT) is proportional to the input voltage (VIN). You may need to use an ADC or a microcontroller to convert the analog output signal to a digital value.
  • By following these connection guidelines and taking note of the important considerations, you can accurately measure voltage levels using the Voltage Sensor Module 25V.

Code Examples

Voltage Sensor Module 25V Documentation
Overview
The 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 Specifications
Measurement Range: 0-25V
 Accuracy: 1% FS
 Resolution: 10mV
 Operating Voltage: 3.3-5V
 Communication Interface: Analog Output
 Module Size: 20x15mm
Code Examples
### Example 1: Measuring Voltage with an Arduino Board
In this example, we will use the Voltage Sensor Module 25V to measure the voltage of a battery connected to an Arduino Uno board.
Hardware Requirements
Arduino Uno board
 Voltage Sensor Module 25V
 Breadboard and jumper wires
 Battery (e.g., 9V)
Software Requirements
Arduino IDE (version 1.8.x or later)
Code
```c
const int voltageSensorPin = A0;  // Analog input pin for voltage sensor
void 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 Requirements
Raspberry Pi (any model)
 Voltage Sensor Module 25V
 Breadboard and jumper wires
 Power supply (e.g., 12V)
Software Requirements
Raspbian OS (any version)
 Python 3.x
Code
```python
import adc  # Import the ADC library for Raspberry Pi
# Set up the ADC channel for the voltage sensor
adc_channel = 0
try:
    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.