The Voltage Sensor DC 25V is a compact and efficient device designed to measure the voltage level in a DC circuit, with a maximum input voltage of 25 volts. It provides real-time feedback, making it an essential tool for monitoring and control applications. This sensor is widely used in battery monitoring systems, power supply diagnostics, and embedded systems where voltage measurement is critical.
The Voltage Sensor DC 25V is designed for ease of use and compatibility with a wide range of systems. Below are its key technical details:
Parameter | Value |
---|---|
Input Voltage Range | 0 - 25V DC |
Output Voltage Range | 0 - 5V DC (scaled output) |
Voltage Divider Ratio | 5:1 |
Accuracy | ±1% |
Operating Temperature | -40°C to +85°C |
Dimensions | 30mm x 15mm x 10mm |
The Voltage Sensor DC 25V typically has a 3-pin interface. Below is the pinout description:
Pin Name | Description |
---|---|
VCC | Power supply input (3.3V or 5V DC) |
GND | Ground connection |
OUT | Scaled voltage output (0-5V DC) |
The Voltage Sensor DC 25V is straightforward to use in a circuit. Follow the steps below to integrate it into your project:
VCC
pin to a 3.3V or 5V DC power source, depending on your system's requirements.GND
pin to the ground of your circuit.OUT
pin provides a scaled voltage output (0-5V DC) proportional to the input voltage.The Voltage Sensor DC 25V can be easily interfaced with an Arduino UNO for real-time voltage monitoring. Below is an example code snippet:
// Define the analog pin connected to the sensor's OUT pin
const int sensorPin = A0;
// Define the voltage divider ratio (5:1)
const float voltageDividerRatio = 5.0;
// Define the Arduino's reference voltage (5V for most boards)
const float referenceVoltage = 5.0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
// Read the analog value from the sensor
int sensorValue = analogRead(sensorPin);
// Convert the analog value to a voltage (0-5V range)
float outputVoltage = (sensorValue / 1023.0) * referenceVoltage;
// Calculate the actual input voltage using the voltage divider ratio
float inputVoltage = outputVoltage * voltageDividerRatio;
// Print the input voltage to the Serial Monitor
Serial.print("Input Voltage: ");
Serial.print(inputVoltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
No Output Voltage
VCC
and GND
pins.Inaccurate Voltage Readings
Output Voltage Exceeds 5V
Arduino Reads Incorrect Values
Q: Can this sensor measure AC voltage?
A: No, the Voltage Sensor DC 25V is designed for DC voltage measurement only.
Q: Is the sensor compatible with 3.3V systems?
A: Yes, the sensor can operate with a 3.3V power supply, but ensure the output voltage does not exceed the ADC range of your microcontroller.
Q: How do I extend the voltage measurement range?
A: You can modify the voltage divider circuit to increase the range, but this requires careful design and testing.
By following this documentation, you can effectively use the Voltage Sensor DC 25V in your projects for accurate and reliable voltage measurements.