-
Notifications
You must be signed in to change notification settings - Fork 0
Simple DC Voltage Sensor, VDC 25V
user edited this page Mar 6, 2020
·
1 revision
The device is lets an MCU measure a higher (up tp 25V) DC voltage, than its built-in ADC is capable of.
This module will convert a higher 0-25V DC voltage to an equivalent 0-5V voltage that can be measured directly with built-in ADC.
void setup(){
Serial.begin(9600); // Start communication with 9600 baud
}
void loop()
{
int sensor=analogRead(A1); // Incoming analog signal read
//Write to serial port
Serial.print("Voltage: ");
Serial.print(sensor*5);
Serial.println(" V");
}