code for interfacing 8051 with pir sensor
#1

pls ,tell us the c coding for interfacing pir sensor with microcontroller at89c51
Reply
#2
PIR sensor interface to 8051 


The 8051 considers any voltage between 2 and 5V on its port pin as HIGH and any voltage between 0 to 0.8V as LOW. Since the output of the PIR sensor module has only two stages (HIGH (3.3V) and LOW (0V)), it can be directly connected to the 8051 microcontroller. The circuit diagram for connecting the PIR sensor to the 8051 microcontroller .

[Image: interfacing-PIR-sensor-to-8051.png]


The circuit shown above reads the status of the PIR sensor output and turns on the LED when there is a detected movement and turns off the LED when no movement is detected. The output plug of the PIR sensor is connected to the 3.5-pin port on the 8051. The resistor R1, the capacitor C1 and the push-button S1 form the reset circuit. The capacitors C3, C4 and crystal X1 are associated with the oscillator circuit. C2 is only a decoupling capacitor. The LED is connected through the microcontroller port 2.0. Transistor Q1 is used to switch the LED. R2 limits the base current of the transistor and R3 limits the current through the LED. The program for connecting the PIR sensor to 8051 is shown below.

Program

Code:
PIR EQU P3.5
LED EQU P2.0
ORG 00H
CLR P2.0        
SETB P3.5
HERE:JNB PIR, HERE
    SETB LED
HERE1:JB PIR,HERE1
     CLR LED
SJMP HERE
END
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: pir sensor interfacing with 8051 codes, pir sensor interfacing with 8052, light sensor interfacing with lpc2148ort, ir sensor interfacing with 8051 microcontroller pdf, pir 8051 coding, bascom pir source code, lm35 interfacing with 8051 code,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  program code of solar tracking system using 8051 microcontroller 6 23,104 03-05-2018, 09:30 PM
Last Post: Guest
  ppt of automatic speed control of vehicle at school zones using ir sensor 4 1,539 15-04-2017, 02:20 PM
Last Post: jaseela123d
  distance measurement using infrared sensor with adc0804 8051 microcontroller at89c51 1 2,098 12-04-2017, 12:57 PM
Last Post: jaseela123d
  wireless radar heartbeat counter sensor circuit dig ppt 1 964 11-04-2017, 11:37 AM
Last Post: jaseela123d
  8051 based automatic blind stick circuit diagram 1 952 10-04-2017, 04:02 PM
Last Post: jaseela123d
  literature survey of cut detection in wireless sensor networks 1 699 06-04-2017, 10:06 AM
Last Post: jaseela123d
  fault detection of optical fibre using 8051 1 771 04-04-2017, 05:01 PM
Last Post: jaseela123d
Thumbs Up 8051 microcontroller experiments lab manual pdf 1 1,037 04-04-2017, 04:12 PM
Last Post: jaseela123d
  internal structure of mq6 gas sensor 1 878 04-04-2017, 04:09 PM
Last Post: jaseela123d
  matlab code for adaptive differential pulse code modulation 1 1,117 04-04-2017, 11:49 AM
Last Post: jaseela123d

Forum Jump: