 

| หมวดหมู่ | Sensor/Encoder | 
| ราคาปกติ | |
| ลดเหลือ | 80.00 บาท | 
| สถานะสินค้า | พร้อมส่ง | 
| สภาพ | สินค้าใหม่ | 
| ลงสินค้า | 20 ก.ค. 2557 | 
| อัพเดทล่าสุด | 27 ก.ย. 2559 | 
| จำนวน | ชิ้น | 
ค่า output ที่ออกมาจะมีทั้งค่า analog และ digital แล้วแต่การเลือกต่อขาที่ใช้งานใช้วัดความชื้นในการปักดินเท่านั้น
Example Code.
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
const int Relay = 8; // Digital output pin that the Relay is attached to
int sensorValue = 0; // value read from the pot
void setup() {
pinMode(Relay, OUTPUT);
digitalWrite(Relay, HIGH);
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop() {
// read the analog in value:
sensorValue = analogRead(analogInPin);
// print the results to the serial monitor:
Serial.print("sensor = " );
Serial.println(sensorValue);
if(sensorValue > 900) { // Relay OFF
digitalWrite(Relay, HIGH);
}
else if(sensorValue < 600) { //Relay ON
digitalWrite(Relay, LOW);
}
delay(10);
}

สอบถามสินค้าหรือต้องการใบเสนอราคาหรือใบกำกับภาษีโปรดติดต่อทางร้านก่อนสั่งซื้อครับผม
- ติดต่อผ่าน LINE ID : csanthanaboun
- เบอร์โทร 0909761799
 
     
         
        | หน้าที่เข้าชม | 333,281 ครั้ง | 
| ผู้ชมทั้งหมด | 121,318 ครั้ง | 
 ThaiRoboShop
			ThaiRoboShop
		