When a warm body like a human or animal passes by, it first intercepts one half of the PIR sensor, which causes a positive differential change between the two halves. When the warm body leaves the sensing area, the reverse happens, whereby the sensor generates a negative differential change. These change pulses are what is detected.
int pir = 7;
int buz =8;
int state;
void setup()
{
pinMode (pir, INPUT);
pinMode (buz, OUTPUT);
}
void loop()
{
state = digitalRead (pir);
digitalWrite (buz, state);
}
LIKE | COMMENT | SHARE | SUBSCRIBE
=== = = = = = = = == = = = == = = = == = =
== = = = = == = = = = = = = == = = = = = ==
★★ Please like and subscribe ★★
/ @yellowpurple
=== = = = = = = = == = = = == = = = == = =
How to extend wifi range with another router wirelessly
• How to extend wifi range with another...
Hack ip camera easy way
• Video
How to extend wifi range with another router
• How to Extend WiFi Range to Resolve a...
★★=== = = = = = = = ==★★
Contact us for any enquiries :
[email protected]
www.facebook.com/rubel1628
★★=== = = = = = = = ==★★
#yellowpurple
#PIR
#Sensor
=== = = = = = = = == = = = == = = = == = =
Смотрите видео How To Use PIR Motion Sensor With Arduino + Upload Programme Code in Arduino Onu онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Yellow Purple 25 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 265 раз и оно понравилось 5 людям.