Interfacing PIR sensor to 8051 microcontroller


Praveen from CircuitsToday has written up an article on interfacing PIR sensor to 8051 microcontroller:

PIR sensors are widely used in motion detecting devices. This article is about interfacing a PIR sensor to 8051 microcontroller. A practical intruder alarm system using PIR sensor and 8051 microcontroller is also included at the end of this article. Before going in to the core of the article, let’s have a look at the PIR sensor and its working.

Join the Conversation


  1. Did anyone actually read the linked article? Did your eyes bleed as well? :-P :-P
    Notice he did not explain R4. I would love to hear his explanation for R4. :-P :-P

      1. Well, I just failed at using the href tag so let’s try again.

        I have a feeling english is not his/her first language. As for R4, I wonder if they got confused about which ports were open drain. From the datasheet it looks like port 0 is an 8-bit open drain port but they used port 2 which has internal pull-ups. So they were either confused or it was a carry over from when they possibly had the output hooked up to port 0.

  2. Lots of care taken to create a specially boring circuit – and takes some skill to create this level of sleep-worthy article. And useful code, written in assembly so portable. All round a great project.

Leave a comment

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

Notify me of followup comments via e-mail. You can also subscribe without commenting.