รหัสสินค้า | M1197 |
หมวดหมู่ | วัดระยะทาง และ ความเคลื่อนใหว |
ราคา | 28.00 บาท |
น้ำหนัก | 4 กรัม |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 30 เม.ย. 2560 |
อัพเดทล่าสุด | 8 ต.ค. 2567 |
จำนวน | ชิ้น |
HC-SR505 Mini Infrared PIR Motion Sensor Precise Infrared Detector Module H
HC-SR505 small body sensing module is based on infrared technology, automatic control products, high sensitivity, high reliability, ultra-small, ultra-low-voltage operation mode. Widely used in various auto-sensing of electrical equipment, especially battery-powered automatic control products.
Technical parameters:
Features:
Applications:
Code
void setup()
{
Serial.begin(9600);
pinMode(4,INPUT);
digitalWrite(4,LOW);
}
void loop()
{
if(digitalRead(4)==HIGH)
{
Serial.println("Movement detected.");
}
else
{
Serial.println("Nothing.");
}
delay(1000);
}
Here is the output you would expect to see in the serial monitor.
หน้าที่เข้าชม | 5,167,558 ครั้ง |
ผู้ชมทั้งหมด | 1,566,898 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |