Co5 Exp6
Co5 Exp6
• The term passive refers to the fact that PIR devices do not radiate
energy for detection purposes.
• PIR sensors detect general movement, hence used for motion detection.
2
Symbolic Representation
• Every object emits low-level radiation, and for hotter object more radiation is emitted.
• A pyroelectric sensor consists of a window with two rectangular slots (two halves). They
allows infrared radiation to pass through them.
• There are two separate infrared sensor electrodes, one responsible for producing the
positive output and the other for producing the negative output.
• When one slot detects more or less IR radiation than other, it means motion is detected
(logic HIGH).
• When change is not detected, both slots has same IR radiation. These two outputs will
cancel each other which means motion is not detected (logic LOW).
5
Working Principal of PIR Sensor
6
Construction of HC-SR501 PIR sensor
H Mode
8
Aim
● The main objective of this experiment is
9
Circuit Connections: Objective 6(a)
10
Program: Objective 6(a)
int PIRSensor = 4;
int PIRSensorState; if (PIRSensorState == HIGH)
void setup() {
{ Serial.println("Motion detected");
pinMode(PIRSensor, INPUT); }
Serial.begin(9600);
} else
{
void loop() Serial.println("Motion not detected");
{ }
PIRSensorState = digitalRead(PIRSensor);
Serial.print("PIR Sensor Output = "); }
Serial.println(PIRSensorState);
delay(1000);
11
Circuit Connections: Objective 6(b)
12
int PIRSensor = 4;
int PIRSensorState; if (PIRSensorState == HIGH)
void setup() {
{ Serial.println("Motion detected");
pinMode(PIRSensor, INPUT); digitalWrite(13,HIGH);
Serial.begin(9600); }
pinMode(13,OUTPUT);
} else
{
void loop() Serial.println("Motion not detected");
{ digitalWrite(13,LOW);
PIRSensorState =
digitalRead(PIRSensor); }
Serial.print("PIR Sensor Output = ");
Serial.println(PIRSensorState); }
delay(1000);
Circuit Connections: Objective 6(c)
14
Self Assessment Questions
15
THANK YOU