Friday, May 15, 2026

How to Use 0–25V Voltage Sensor Module with Arduino UNO

In this tutorial, we will learn how to use the 0–25V DC Voltage Sensor Module with Arduino UNO. This sensor module allows Arduino to measure higher DC voltages safely through the analog input pin. It is commonly used for battery monitoring, solar projects, power supply measurement, and other DIY electronics applications.

Learning how to measure DC voltage using the 0–25V Voltage Sensor Module with Arduino UNO.


What is a Voltage Sensor Module?

The 0–25V Voltage Sensor Module is a simple voltage divider circuit that reduces higher DC voltages into a safe analog voltage readable by Arduino.

Since Arduino UNO analog pins can only read up to 5V, this module scales down the input voltage before sending it to the microcontroller.

For example:

  • 25V input becomes approximately 5V output to Arduino analog pin.

Sensor Specifications

Technical specifications of the 0–25V DC Voltage Sensor Module.


Components Required

Components used in this Arduino voltage monitoring tutorial.

For this project, we need:

  • VS-25 Voltage Sensor Module
  • Arduino UNO
  • Breadboard
  • Jumper Wires
  • Adjustable DC Power Supply
  • USB Cable
  • Multimeter

Wiring Connection

Wiring connection between the Voltage Sensor Module and Arduino UNO.
  • Connect the S pin to A0
  • Connect the negative pin to GND
  • Connect the positive pin to the 5V pin on the Arduino UNO
  • Connect the adjustable power supply to the voltage input terminal of the sensor module

Arduino Code

Click HERE to download code. Upload the following code to Arduino UNO:

int sensorPin = A0;
float voltage = 0;

void setup() {
  Serial.begin(9600);
}

void loop() {

  int value = analogRead(sensorPin);

  // Formula calculate actual voltage
  voltage = value * (25.0 / 1023.0);

  Serial.print("Voltage: ");
  Serial.println(voltage);

  delay(1000);

}

Testing the Voltage Sensor

Testing the voltage sensor module using adjustable power supply and multimeter.

After uploading the code:
  1. Open the Arduino Serial Monitor.
  2. Turn on the adjustable power supply.
  3. Adjust the voltage to approximately 19.83V.
  4. Observe the reading on the Serial Monitor.

During testing, the Arduino reading may show a slightly different value compared to the multimeter reading.

Serial Monitor and multimeter voltage comparison during testing.

This small difference is normal because the voltage sensor module is not a high-precision measurement device. However, the result is still close enough and suitable for most hobby and DIY electronics projects.


Applications

This voltage sensor module can be used for:

  • Battery Voltage Monitoring
  • Solar Power Projects
  • DC Power Supply Monitoring
  • Automotive Voltage Detection
  • DIY Electronics Projects
  • IoT Voltage Monitoring Systems


Conclusion

The 0–25V Voltage Sensor Module is a simple and affordable way to measure DC voltage using Arduino UNO. It is beginner-friendly, easy to connect, and useful for many electronics projects. Although it is not highly accurate like professional measuring equipment, it performs well enough for learning and DIY applications. 

Thank you for reading this tutorial. Don’t forget to like, share, and subscribe for more Arduino and electronics projects.

No comments:

Post a Comment