ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
HC-SR501 module infrared sensor เซ็นเซอร์จับความเคลื่อนไหว PIR motion sensor HC-SR501 สามารถปรับค่า Distance Adjust และ Delay time Adjust ตามการใช้งานอยากให้ตรวจจับไว หรือช้า 


Specification:

  • Operating voltage: DC 5 - 12V
  • Static power consumption: 65 mA
  • Output Signal: 3V TTL
  • Detection Distance: Up to 6 meter (Adjustable)
  • Sensing Range: Less than 120° degree angle, 6 meters
  • Delay Time: 5 - 200s (Adjustable)
  • Adjustable Trigger:  L: non repeatable trigger  -  H: repeatable trigger
  • Operating Temperature: -15 to +70°C
  • Dimensions: 32 x 24mm, screw hole distance 28mm
https://www.mouser.com/ds/2/737/pir-passive-infrared-proximity-motion-sensor-932858.pdf

code:

/*
Arduino with PIR motion sensor
For complete project details, visit: Arduinoshop99
 
*/
 
int led = 13; // the pin that the LED is atteched to
int sensor = 2; // the pin that the sensor is atteched to
int state = LOW; // by default, no motion detected
int val = 0; // variable to store the sensor status (value)
 
void setup() {
pinMode(led, OUTPUT); // initalize LED as an output
pinMode(sensor, INPUT); // initialize sensor as an input
Serial.begin(9600); // initialize serial
}
 
void loop(){
val = digitalRead(sensor); // read sensor value
if (val == HIGH) { // check if the sensor is HIGH
digitalWrite(led, HIGH); // turn LED ON
delay(100); // delay 100 milliseconds
 
if (state == LOW) {
Serial.println("Motion detected!");
state = HIGH; // update variable state to HIGH
}
}
else {
digitalWrite(led, LOW); // turn LED OFF
delay(200); // delay 200 milliseconds
 
if (state == HIGH){
Serial.println("Motion stopped!");
state = LOW; // update variable state to LOW
}}}
 

 
เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

บมจ. ธนาคารกรุงไทย สาขาโรงไฟฟ้าบางปะกง ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
สนธยา ใจผ่อง
063-xxxxxx-8
Accept All Banks | รับเงินได้จากทุกธนาคาร
พูดคุย-สอบถาม