Interfacing PIR (Passive Infrared Sensor ) to 8051

This is an easy article with simple instructions we used PIR (Passive Infrared Sensor ) in this project the working principle of this sensor is to detect the motion of objects whenever a human or something pass near the sensor the sensor will detect it and Make the output high .
Detect Output = 3.3v
Not Detect Output = 0v
The Output of the PIR sensor is directly connected with Pin No 15 of the 8051 Microcontroller the Led will blink if sensor Detect the Motion.
Code :

LED EQU P2.0 
PIR EQU P3.5 
ORG 00H 
CLR P2.0 
SETB P3.5 
ELOVERS:JNB PIR, ELOVERS 
SETB LED HERE:JB PIR,HERE
CLR LED 
SJMP HERE END
Interfacing PIR (Passive Infrared Sensor ) to 8051 Interfacing PIR (Passive Infrared Sensor ) to 8051 Reviewed by Abid Jamal on May 16, 2015 Rating: 5

No comments:


Powered by Blogger.