Article-Nr.:5400785
Product Details: Voltage input range : DC0-25 V
Voltage detection range : DC0.02445 V-25 V
Voltage analog resolution : 0.00489 V
Output interface : "+ " connected 5/3.3V, "-" connected GND, "s" connected Arduino AD pins
DC input interface : red terminal positive with VCC, negative with GND
#include
int val11;
int val2;
void setup()
{
pinMode(LED1,OUTPUT);
Serial.begin(9600);
Serial.println("Emartee.Com");
Serial.println("Voltage: ");
Serial.print("V");
}
void loop()
{
float temp;
val11=analogRead(1);
temp=val11/4.092;
val11=(int)temp;//
val2=((val11%100)/10);
Serial.println(val2);
delay(1000);
}
Harga Rp. 25.000,-
No comments:
Post a Comment