Stufin
Home Quick Cart Profile

Voltage Sensor Module 25V ( Pack of 25)

Buy Now on Stufin

Input Voltage Range

0-25V

Analog Output

0-5V

Accuracy

1% Error Margin

Power Consumption

<10mA

Operating Temperature

-20C to 85C

Dimensions

16.5 x 13.5 mm

Weight

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.

Pin Configuration

  • Voltage Sensor Module 25V (Pack of 25) Documentation
  • Pinout Description:
  • The Voltage Sensor Module 25V has a total of 3 pins, which are used to measure voltage levels up to 25V. Here's a detailed description of each pin:
  • Pin 1: VCC (Power Supply Pin)
  • Function: Provides power to the voltage sensor module
  • Description: This pin is used to connect the positive terminal of the power supply to the module. The recommended operating voltage is between 3.3V and 5V.
  • Typical Connection: Connect to a positive power supply terminal (e.g., 3.3V or 5V from an Arduino board or a battery)
  • Pin 2: OUT (Output Pin)
  • Function: Outputs the measured voltage level as an analog signal
  • Description: This pin provides an analog output voltage that is proportional to the measured input voltage. The output voltage range is 0-5V.
  • Typical Connection: Connect to an analog input pin on a microcontroller (e.g., Arduino) or an ADC (Analog-to-Digital Converter) to read the output voltage
  • Pin 3: GND (Ground Pin)
  • Function: Provides a ground reference point for the module
  • Description: This pin is used to connect the negative terminal of the power supply and the input voltage to be measured to the module.
  • Typical Connection: Connect to a negative power supply terminal (e.g., GND from an Arduino board or a battery) and the negative terminal of the input voltage to be measured
  • Connection Structure:
  • Here's a step-by-step guide to connect the pins:
  • 1. Power Supply Connection:
  • Connect Pin 1 (VCC) to a positive power supply terminal (e.g., 3.3V or 5V from an Arduino board or a battery).
  • Connect Pin 3 (GND) to a negative power supply terminal (e.g., GND from an Arduino board or a battery).
  • 2. Input Voltage Connection:
  • Connect the input voltage to be measured to Pin 3 (GND) and the positive terminal of the input voltage to the voltage source (e.g., a battery or a power supply).
  • 3. Output Connection:
  • Connect Pin 2 (OUT) to an analog input pin on a microcontroller (e.g., Arduino) or an ADC to read the output voltage.
  • Important Notes:
  • Ensure the input voltage to be measured does not exceed 25V to avoid damaging the module.
  • The module should be powered using a stable power supply between 3.3V and 5V.
  • The output voltage range is 0-5V, which is compatible with most microcontrollers and ADCs.
  • This module is designed for voltage measurement only and should not be used for current measurement or any other purpose.

Code Examples

Voltage Sensor Module 25V (Pack of 25) Documentation
Overview
The 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 Specifications
Input 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 Module
To 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 pin
Code Examples
### Example 1: Measuring Battery Voltage with Arduino
In 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 A0
void 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 Pi
In 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 GPIO
GPIO.setmode(GPIO.BCM)
voltage_pin = 18  # Connect VOUT to GPIO 18
while 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 ESP32
In 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 32
void 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);
}
```
Notes
In 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.