25 VDC Voltage Sensor

Built around a voltage divider with two resistors, this voltage sensor scales the incoming voltage down by a factor of 5

SKU 8300-YXA300EAN 8219671121866Item type: Assembled,

Description

Built around a voltage divider with two resistors, this voltage sensor scales the incoming voltage down by a factor of 5. By connecting the sensor output to an analogue input of an Arduino (or another microcontroller), DC voltages between 0 and 25 volts can be read. It has 3 pins (power and analogue output) and a 2-way terminal block to which the load carrying the voltage to be measured is connected. Power supply: 3.3-5 VDC, measuring range: 0 to 25 VDC.
Technical specifications
  • Output interface:
    +” connected to 5 / 3.3 V
    ” connected to GND

    s” connected to an analogue pin of an Arduino or another microcontroller
Example sketch

int analogInput = A1;
float vout = 0.0;
float vin = 0.0;
float R1 = 30000.0;
float R2 = 7500.0;
int value = 0;
void setup(){
pinMode(analogInput, INPUT);
Serial.begin(9600);
Serial.print(“DC VOLTMETER”);
}
void loop(){
// read the value at analog input
value = analogRead(analogInput);
vout = (value * 5.0) / 1024.0;
vin = vout / (R2/(R1+R2));

Serial.print(“INPUT V= “);
Serial.println(vin,2);
delay(500);
}

Technical details

Input voltage range 0 to 25 VDC
Power supply 3.3 to 5 VDC

You may also like…

About us

Open-Electronics.org is the brainchild of a world leader in hobby electronics Futura Group srl. Open-Electronics.org is devoted to support development, hacking and playing with electronics: we share exciting open projects and create amazing products!

Open-Electronics.org is not just a container of ideas: it is also a web site lead by a team of engineers and geeks who will take part in the discussions and give support.

Our mission is to become a reference Open Source hacking site with ideas and feedback aimed to enrich the community.