The Voltage Sensor DC 25V is a device designed to measure and monitor the voltage level in a DC circuit up to 25 volts. This sensor is commonly used in various applications, including battery monitoring, power supply testing, and voltage regulation systems. It provides an easy and efficient way to measure voltage levels and can be interfaced with microcontrollers like the Arduino UNO for real-time monitoring and data logging.
Parameter | Value |
---|---|
Input Voltage Range | 0 - 25V DC |
Output Voltage | 0 - 5V DC |
Measurement Accuracy | ±1% |
Operating Temperature | -40°C to 85°C |
Dimensions | 30mm x 20mm x 10mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (typically 5V) |
2 | GND | Ground |
3 | VIN+ | Positive voltage input (0-25V DC) |
4 | VIN- | Negative voltage input (typically GND) |
5 | VOUT | Analog voltage output (0-5V DC) |
// Voltage Sensor DC 25V Example Code for Arduino UNO
const int sensorPin = A0; // Analog input pin that the sensor is attached to
float voltage = 0.0; // Variable to store the voltage value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog input
voltage = sensorValue * (5.0 / 1023.0) * (25.0 / 5.0);
// Convert the analog reading to voltage
// 5.0/1023.0 converts the analog value to a voltage (0-5V)
// 25.0/5.0 scales the voltage to the input range (0-25V)
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before taking another reading
}
Incorrect Voltage Readings:
No Output Signal:
Fluctuating Readings:
Q1: Can I use this sensor to measure AC voltage?
Q2: How do I calibrate the sensor?
Q3: What is the maximum input voltage for this sensor?
Q4: Can I use this sensor with other microcontrollers?
By following this documentation, users can effectively utilize the Voltage Sensor DC 25V in their projects, ensuring accurate voltage measurements and reliable performance.