Simple DC Voltage Sensor, VDC 25V - RobotDynOfficial/Documentation GitHub Wiki

Simple DC Voltage Sensor, VDC 25V

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.

Schematics

Example Code

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");
}
⚠️ **GitHub.com Fallback** ⚠️