PIR motion sensor interface with AVR-microcontroller ATMEGA32

Passive Infra red sensor also known as PIR sensors is capable of detecting motion or movement within a certain range. These type of sensors have wide range of applications in our daily life and it is essential to learn the interfacing method. This article is going to demonstrate the PIR motion sensor interface with AVR microcontroller.

APPLICATIONS OF PIR SENSOR:

Lets see some of the common applications of PIR sensor for better understanding.

Automated doors in shopping malls.

Lifts

Garden lights

Parking areas

PIR SENSOR:

The PIR sensor detect only bodies (hot materials and living objects) in motions not the static ones. This sensor uses Infra red beam to detect the motion and only covers a certain space based on the sensor model, i advise you to go through the manufacturer datasheet to know about the range. This sensor module gives only two output states that is logic High 1 which is equivalent to 3.3 V and logic low 0 equivalent to 0 V.

SCHEMATIC DESIGN:

WORKING:

The PIR sensor is interfaced with Atmega32 AVR microcontroller to detect the motion around the environment. Atmega32 considers any voltage between 2V to 5V as logic high. Hence PIR sensor is directly interfaced to the input pin of the controller.

The circuit shown above will read the status of the output of the PIR sensor and switch ON the LED when there is a motion detected and switch OFF the LED when there is nothing. Output pin of the PIR sensor is connected to PortC.0 pin of the atmega32. LED is connected through PORTB.0 of the microcontroller.

Related Articles

Ultrasonic waves are of great use and holds key in fields such as automation, marine and so. One of the familiar and trusted application of Ultrasonic waves are range and distance detection, you might have seen some of these in robots to detect obstacles and in automated factories. Similarly we are going to build Ultrasonic […]

Door or Window alarm circuit have been used widely in many homes to detect intrusion. A simple search in internet might fetch you lot of alarms for you to buy. But making your own alarm will be something special and that’s the purpose of this article. For this article i have reverse engineered a window alarm […]

GSM (Global System for Mobile Communication) technology lets user to communicate with others across mobile networks hence it offers a vast area of coverage. Interfacing GSM technology with microcontroller will enable us to extend the communication to cover large area. This tutorial will teach you about interfacing GSM module with atmega32 AVR microcontroller and program it […]