By | May 15, 2015

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
Category: Uncategorized

About Abid Jamal

Abid Jamal Received his B.S. Degree in Electronics & Communication in 2014 (Gold Medalist) from University of Lahore, Islamabad, Pakistan and Master’s Degree in Electrical Engineering from Capital University of science and technology, Islamabad, Pakistan, in 2016. He is the Creator of www.Electronicslovers.com website. Awarded by “A” grade in Electronic & circuits MIT online certificate. He achieved an academic Excellence certificate in the year 2014. He received Dean Honor Roll award for earning GPA 3.67, Spring-2015 in MSEE. He has done many projects using Different kinds of microcontroller. His research interests include Radar Cross Section measurements, Smart Grid communications, Intelligent transportation systems, driver-less car, cellular mobile communication & networks, improve Smartphone’s battery life for 3G+LTE user’s, and embedded systems.

Leave a Reply

Your email address will not be published. Required fields are marked *