User manual

IDUINO for makers life
www.openplatform.cc
PinOut
Pin
Description
Vcc
Power supply 5V/DC
Gnd
Ground
D0
Digital output pin
A0
Analog output pin
Example
In this example, we use the analog output pin A0 to sense the change of environment
gas concentration. And output corresponding voltage between 0~5 V.
Wire connection as below:
Vcc-------------5V
Gnd-------------Gnd
A0--------------A0
********Code Begin*********
void setup() {
Serial.begin(9600);
}
void loop() {
float sensor_volt;
float sensorValue;
sensorValue = analogRead(A0);
sensor_volt = sensorValue/1024*5.0;
Serial.print("sensor_volt = ");
Serial.print(sensor_volt);
Serial.println("V");
delay(1000);
}
********Code End*********