รหัสสินค้า | SG50202 |
หมวดหมู่ | วัดสภาพแวดล้อมและแก๊ส Environmental / Gas |
ราคา | 365.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
💡Note: The Analog Value in the diagram above is calculated based on the ADC of Arduino UNO R3 (10-bit, reference voltage 5V). If using other MCUs (such as ESP32) with a different ADC reference voltage and precision, please make the corresponding conversion.
/*
# This Sample code is for testing the UV Sensor .
#Connection:
VCC-5V
GND-GND
OUT-Analog pin 0
*/
void setup() {
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop() {
int sensorValue;
int analogValue = analogRead(A0); //connect UV sensors to Analog 0
if (analogValue < 20) {
sensorValue = 0;
} else {
sensorValue = 0.05 * analogValue - 1;
}
Serial.print("UV Index: ");
if (sensorValue < 12) Serial.println(sensorValue); //print the value to serial
else Serial.println("11+ Warning: High Ultraviolet! Exceeded UV index range!");
delay(1000);
}
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,375,197 ครั้ง |
ผู้ชมทั้งหมด | 5,878,275 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 5 ก.ย. 2568 |