Electronicslovers.com was formed to offer wide range of technical articles, forum, Academic, Industry and Hobby electronics. Please post your articles and get connected.* *Students and Hobbyists can post their Interview questions, Circuits, Programming codes and its working details. Under each article, your Name, Picture and Biography will be visible to all* Share your education story with us.*Like our Facebook page || Donate || Advertise with us
Click here to Donate! || Abid-Photography

Friday, 15 May 2015

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

0 comments:

Post a Comment

This could be your Company's Ad


ElectronicsLovers. Powered by Blogger.

Contact Form

Name

Email *

Message *