Interfacing PIR Sensor with PIC16F877A Microcontroller

Interfacing PIR Sensor with PIC16F877A Microcontroller

Interfacing PIR Sensor with PIC16F877A Microcontroller
Circuit diagram

Interfacing PIR Sensor with PIC16F877A Microcontroller

In this article, we will learn how to Interfacing PIR Sensor with PIC16F877A Microcontroller.

In the last post, we learned how to Interfacing I2C LCD with PIC16F877A Microcontrollers.

 

Components Required:

  1. Microcontroller (PIC16F877)
  2. LCD display
  3. PIR sensor
  4. Resistor variable (10k, 220R)
  5. Push button
  6. Capacitor (0.1uF, 22p)
  7. LED
  8. Connecting wires

Circuit Diagram: 

Interfacing PIR Sensor with PIC16F877A Microcontroller
Circuit diagram

How it works:

Interfacing a Passive Infrared (PIR) sensor with a PIC16F877A microcontroller involves connecting the sensor to the microcontroller and programming it to detect motion.

PIR sensors detect changes in infrared radiation within their field of view. When an object moves within this field, the sensor detects the change in heat and triggers an output signal.

Programming code: 

Interfacing PIR Sensor with PIC16F877A Microcontroller
Programming code

Usages:

  1. Security Systems
  2. Home Automation
  3. Automatic Doors
  4. Healthcare Devices
  5. Smart Agriculture