Interfacing of Motion Detectors

Updated on 2017/08/11 06:51

 

Introduction to Motion Detectors

Motion Sensor

 

The main purpose of motion detection is to sense an intruder and send an alert to your control panel, which alerts your monitoring center. Sensors work when you are not home, or when you tell the system you are not there. Some security systems can be programmed to record events via a security camera when motion is detected.

Motion sensors stand guard, ready to react to various situations, such as movement in your living room, windows or doors being opened or closed, or a broken window.
Motion sensors can:

  • alert you in the event that your teen breaks curfew
  • trigger a doorbell when someone approaches the front door
  • alert you when kids enter restricted areas in the home, like the basement, workout room, or medicine cabinet
  • save energy by using motion sensor lighting in unoccupied spaces
  • notify you if pets enter areas where they're not supposed to be

Types of Motion Sensors

Passive Infrared (PIR)

https://www.safewise.com/images/buyers-guides/motion-sensor-guide/motion-types-infrared.jpg

Detects body heat (infrared energy). Passive infrared sensors are the most widely used motion in home security systems. When your system is armed, your motion sensors are activated. Once the sensor warms up, it can detect heat and movement in the surrounding areas, creating a protective "grid." If a moving object blocks too many grid zones and the infrared energy levels change rapidly, the sensors are tripped.

Mircowave (MW)

https://www.safewise.com/images/buyers-guides/motion-sensor-guide/motion-types-microwave.jpg

Sends out microwave pulses and measures the reflection off a moving object. They cover a larger area than infrared sensors, but they are vulnerable to electrical interference and are more expensive.

Dual Technology Motion Sensors

https://www.safewise.com/images/buyers-guides/motion-sensor-guide/motion-types-dual.jpg

Motion sensors can have combined features in an attempt to reduce false alarms. For example, a passive infrared (PIR) sensor could be combined with a microwave sensor. Since each operates in different areas of the spectrum, and one is passive and one is active, Dual Technology motion sensors are not as likely as other types to cause false alarms, because in order for the alarm to be triggered, both sensors have to be tripped. However, this does not mean that they never cause false alarms.

Area Reflective Type

Emits infrared rays from an LED. Using the reflection of those rays, the sensor measures the distance to the person or object and detects if the object is within the designated area.

Ultrasonic

Sends out pulses of ultrasonic waves and measures the reflection off a moving object.

Vibration

Detects vibration. These can be purchased or easily made at home. A homemade vibration sensor uses a small mass on a lever, which is activated by a switch to an alarm when it vibrates. Homemade motion sensors can work, but they can also be unreliable.

Interfacing

PIR sensor(Motion Detector) provides output in the form of 0 and 1, The output of PIR sensor is connected to P3.5, So if object detected the output of PIR Sensor will be 1 i.e.High,so that we will turn LED on which is connected to P2.0

Interfacing Diagram

Question:- Draw and explain interfacing of motion detector with 8051 microcontroller, if motion or moving object is detected then LED should be turn ON which is interfaced to pin P2.0

8051_motion.jpg

ALP for the interfacing

PIR EQU P3.5
LED EQU P2.0
ORG 00H
CLR P2.0 ;configure P2.0 as output        
SETB P3.5;configure P3.5 as input
BACK:JNB PIR, LED_OFF ;PIR=0,Turn-off LED
LED_OFF:CLR LED
JB PIR,LED_ON       ;PIR=0,Turn-off LED
LED_ON: SETB LED
SJMP BACK
END

References

  • Safewise: The Beginner's Guide to Motion Sensors
  • Created and developed by Prof.S.M.Wagh, SKNCOE, Pune
  • Interfacing diagram by Jayesh Gopal, WikiNote Volunteer, SKNCOE,Pune
  • WikiNote Foundation
Tags:
Created by Sujit Wagh on 2017/08/03 16:43