Module Description:
This module is based on a resistive divider principle design, make the interface terminal input voltage reduced 5 times the analog input voltage up to 5V, then the input voltage of the voltage detection module can not be greater than 5V 5 = 25V (if you use a 3.3V system The input voltage can not exceed 3.3Vx5 = 16.5V). Because A used AVR chip 10 AD, so the resolution of the analog module is 0.00489V (5V / 1023), so the voltage detection module detects a minimum input voltage of 0.00489V 5 = 0.02445V.
Parameters:
input voltage range: DC0-25V
voltage detection range: DC0.02445V-25V
voltage analog resolution: 0.00489V
the DC input connector: the positive terminal connected to VCC, the negative pole GND
output interface: "+" is 5 / 3.3V, " - "then GND," s "Arduino connected to the AD pin
reference code:
#include Wire.h int VAl11; int val2; void Setup () { pinMode (LED1, the OUTPUT); Serial.begin (9600); the Serial .println ( "EmarteeCom"); Serial.println ( "Voltage:"); Serial.print ( "V"); } void Loop () { a float TEMP; VAl11 = analogRead (1); TEMP = VAl11 / 4.092 ; VAl11 = (int) TEMP; // val2 = ((VAl11 100%) / 10); Serial.println (val2); Delay (1000); }