배송 |
---|
상품 정보 | 가격 | 삭제 |
---|---|---|
아두이노 자외선 검출 센서 | ||
TOTAL PRICE(수량) 0 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 |
void setup()
{
Serial.begin(9600);
}
void loop()
{
float sensorVoltage;
float sensorValue;
sensorValue = analogRead(A0);
sensorVoltage = (sensorValue/1024*5.0)*1000;
Serial.print("sensor reading = ");
Serial.print(sensorValue);
Serial.print(" sensor voltage = ");
Serial.print(sensorVoltage);
Serial.println(" mV");
delay(1000);
} |
cs |