SlideShare a Scribd company logo
PIR Motion Sensor
1
By JawaherA.Fadhil
PIR motion sensor
The PIR motion sensor is a sensor which detects
movement through picking up infrared radiation. Being
that a person emits infrared radiation, the detector is
able to detect this and react, according to the how the
circuit is designed to react. The sensor can also pick up
the movement of inanimate objects as well, such a
rolling ball, because as those objects move, friction acts
on them, generating heat. This heat emits infrared
radiation, which the PIR sensors may be able to detect
if great enough.
2By JawaherA.Fadhil
PIR motion sensor
The PIR motion sensor is a 3-pin device.
3
Pin1 is the pin which receives the
positive DC voltage. The PIR motion
sensor needs between 5V-9VDC of
power for operation. Pin2 is the
Output pin of the PIR module. Pin3
is the ground pin of the device.
When motion is detected by the PIR,
its output will go high. If there is no
motion is detected, its output low
and it gives off practically no
voltage.
By JawaherA.Fadhil
PIR motion sensor
This sensor has a sensitivity range up to 20 feet (6 meters) and
a 110° x 70° detection range, making it a wide lens detection
sensor. This means it can measure 110° vertically (from top to
bottom) and 70° horizontally (from left to right). The best way
to check its sensitivity is when the circuit is built, try moving
around through all of its angles. See at which angles it can
detect your movement and at which angles it is not able to
detect your movement, meaning your out of its angle scope.
A lot of it is trial and error and experimenting. Once you know
where it can and cannot detect, you can place it in an optimal
place where it can detect in areas where you want it to.
4By JawaherA.Fadhil
Arduino Motion Sensor Light Circuit
In this project, we will go over how to build a motion sensor
light circuit with an Arduino. a light turns on when motion
is detected.
Components Needed
• Arduino Board
• PIR motion sensor
• LED
• USB Cable
5By JawaherA.Fadhil
Arduino Motion Sensor Light Circuit
6By JawaherA.Fadhil
Arduino Motion Sensor Light Circuit
The schematic diagram of this circuit is:
7By JawaherA.Fadhil
Arduino Motion Sensor Light Circuit
8
//code for motion sensor circuit
const int ledPin= 13;
const int motPin= 2;
void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(motPin, INPUT);
}
void loop()
{
int value= digitalRead(motPin);
By JawaherA.Fadhil
Arduino Motion Sensor Light Circuit
if (value == HIGH)
{
digitalWrite(ledPin, HIGH);
delay(60000);
digitalWrite(ledPin, LOW);
}
else
{
digitalWrite(ledPin, LOW);
}
}
9By JawaherA.Fadhil
10
Temperature Sensor
By JawaherA.Fadhil
Temperature Sensor
LM35 is an analog temperature sensor used to read the
Temperature of the surrounding environment.
The output voltage varies linearly with change in temperature.
It can measure temperature from-55 degree celsius to +150
degree celsius. The voltage output of the LM35 increases 10mV
per degree Celsius rise in temperature.
The IC has just 3 pins, 2 for the power supply and one for the
analog output.
11By JawaherA.Fadhil
Temperature Sensor
The output of LM35 is an analog signal. Microcontrollers don't
accept analog signals as their input directly. We need to
convert this analog output signal to digital before we can
feed it to a microcontroller’s input. For this purpose, we can
use an ADC( Analog to Digital Converter).If we are using a
basic microcontroller like 8051, we need to use an external
ADC. But modern day microcontrollers like Arduino come
with inbuilt ADC.
Arduino Uno has an in built 10 bit ADC (6 channel).Can be
Used to convert the analog output of LM35 to digital output.
12By JawaherA.Fadhil
Temperature Sensor
Components Needed to Build the LM35 Temperature Sensor
Circuit:
• Arduino Board
• LM35 Temperature Sensor IC
• Computer
• USB Cable
13By JawaherA.Fadhil
Temperature Sensor Circuit Schematic
14By JawaherA.Fadhil
Code for Temperature Sensor
float temp;
void Setup()
{
Serial.begin(9600);
}
void loop()
{
temp=analogRead(0);
temp*= 0.00488 *100; // ADC (5v/1024)then convert to celsius
Serial.println(" Temp Sensor = ");
Serial.println(temp);
delay(1000);
}
15By JawaherA.Fadhil
16
NOTE
To print a specific amount of decimal places, just specify the
number of digits after the floating-point number to be displayed:
Serial.Print(1.2345, 0); // Prints "1"
Serial.print(1.2345, 1); // Prints "1.2"
Serial.print(1.2345, 4); // Prints "1.2345"
By JawaherA.Fadhil 17

More Related Content

PPTX
PIR sensing with arduino
PPTX
Mechanism of PIR sensor
PPTX
PPTX
Automatic door using arduino
PPTX
Passive infrared sensor technology(pir)
PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
PDF
Automatic Door Opener using PIR Sensor
PPTX
Obstacle avoiding Robot
PIR sensing with arduino
Mechanism of PIR sensor
Automatic door using arduino
Passive infrared sensor technology(pir)
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Automatic Door Opener using PIR Sensor
Obstacle avoiding Robot

What's hot (20)

DOCX
Obstacle Avoiding Robot Report Robot23
DOCX
Obstacle avoiding robot.doc
DOCX
Bsnl industrial report 2014
PDF
IR Based Home Automation
PPTX
PPT of Anti Sleep Smart Driving Glasses.pptx
PPTX
PPTX
Self Obstacle Avoiding Rover
PPTX
OBSTACLE AVOIDING CAR
PPTX
GESTURE CONTROL ROBOT
PPTX
Fire fighting robot using arduino
PDF
Programs of VHDL
DOC
Obstacle avoiding robot(Lab report)
PPTX
Sensor Based Blind Stick
PPTX
Arduino Radar System
PPTX
MINI PROJECT ON CELLPHONE DETECTOR
PPTX
Fire fighting robot ppt
PPTX
Cell Phone Detector Presentation
PDF
Obstacle detection using ultra sonic sensor
PPTX
Sniffer for detecting lost mobiles
Obstacle Avoiding Robot Report Robot23
Obstacle avoiding robot.doc
Bsnl industrial report 2014
IR Based Home Automation
PPT of Anti Sleep Smart Driving Glasses.pptx
Self Obstacle Avoiding Rover
OBSTACLE AVOIDING CAR
GESTURE CONTROL ROBOT
Fire fighting robot using arduino
Programs of VHDL
Obstacle avoiding robot(Lab report)
Sensor Based Blind Stick
Arduino Radar System
MINI PROJECT ON CELLPHONE DETECTOR
Fire fighting robot ppt
Cell Phone Detector Presentation
Obstacle detection using ultra sonic sensor
Sniffer for detecting lost mobiles
Ad

Similar to Arduino based Applications-part 5 (20)

DOCX
ir sensor.docx
PPTX
Arduino with brief description of sensorsppt.pptx
PPTX
PIR sensors day
PPTX
Arduino Blind Aid
PPT
Ir sensor mechanism and interfacing with a micro controllers.PPT
PPTX
Presentation on Smart Street Light System.pptx
PPT
AUTOMATIC ROOM LIGHTS CONTROLLER USING ARDUINO NANO AND PIR SENSOR.ppt
PPTX
AUTOMATIC ROOM LIGHTING SYSTEM.pptx
PPT
1693579833307_Sensors.ppt
PDF
Automatic Room Lights Controller Using Arduino & PIR Sensor
PPTX
sensor.pptx
DOCX
Obstacle and edge detector report.
PPTX
Automatic Room Light Controller Using Arduinom & PIR Sensor
PPTX
ELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMER
PPTX
Experiment 1 (Sharp Infrared Sensors).pptx
PPTX
Digital tachometer using pic18
PPTX
Smart door project ppt shivnaresh likhar
PPT
SENSORS AND BLUETOOTH COMMUNICATION
PPTX
Intelligent energy coservation system
PDF
ir sensor.docx
Arduino with brief description of sensorsppt.pptx
PIR sensors day
Arduino Blind Aid
Ir sensor mechanism and interfacing with a micro controllers.PPT
Presentation on Smart Street Light System.pptx
AUTOMATIC ROOM LIGHTS CONTROLLER USING ARDUINO NANO AND PIR SENSOR.ppt
AUTOMATIC ROOM LIGHTING SYSTEM.pptx
1693579833307_Sensors.ppt
Automatic Room Lights Controller Using Arduino & PIR Sensor
sensor.pptx
Obstacle and edge detector report.
Automatic Room Light Controller Using Arduinom & PIR Sensor
ELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMER
Experiment 1 (Sharp Infrared Sensors).pptx
Digital tachometer using pic18
Smart door project ppt shivnaresh likhar
SENSORS AND BLUETOOTH COMMUNICATION
Intelligent energy coservation system
Ad

More from Jawaher Abdulwahab Fadhil (20)

PDF
PPT
PDF
Add instruction-part1
PPTX
Dealing with 8086 memory
PPTX
MOV instruction part1
PDF
Cisco webex installation guide
PPTX
A survey on the applications of smart home
PPT
Flag register and add instruction
PDF
Computer Organization -part 1
PPTX
iOS Operating System
PPTX
Android Operating system
PPTX
Types of Mobile Applications
PDF
Ultrasonic with buzzer
PDF
Lecture6 modulation
PDF
Lecture 5: The Convolution Sum
PDF
Lecture 4: Classification of system
PDF
Lecture3: Operations of Ct signals
PDF
Lecture2 : Common continuous time signals
PDF
Lecture1: Introduction to signals
PDF
Arduino- Serial communication
Add instruction-part1
Dealing with 8086 memory
MOV instruction part1
Cisco webex installation guide
A survey on the applications of smart home
Flag register and add instruction
Computer Organization -part 1
iOS Operating System
Android Operating system
Types of Mobile Applications
Ultrasonic with buzzer
Lecture6 modulation
Lecture 5: The Convolution Sum
Lecture 4: Classification of system
Lecture3: Operations of Ct signals
Lecture2 : Common continuous time signals
Lecture1: Introduction to signals
Arduino- Serial communication

Recently uploaded (20)

PDF
Business Ethics Teaching Materials for college
PDF
Pre independence Education in Inndia.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Pharma ospi slides which help in ospi learning
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Business Ethics Teaching Materials for college
Pre independence Education in Inndia.pdf
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
Module 4: Burden of Disease Tutorial Slides S2 2025
Renaissance Architecture: A Journey from Faith to Humanism
Pharma ospi slides which help in ospi learning
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
VCE English Exam - Section C Student Revision Booklet
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
human mycosis Human fungal infections are called human mycosis..pptx
PPH.pptx obstetrics and gynecology in nursing
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Anesthesia in Laparoscopic Surgery in India
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester

Arduino based Applications-part 5

  • 1. PIR Motion Sensor 1 By JawaherA.Fadhil
  • 2. PIR motion sensor The PIR motion sensor is a sensor which detects movement through picking up infrared radiation. Being that a person emits infrared radiation, the detector is able to detect this and react, according to the how the circuit is designed to react. The sensor can also pick up the movement of inanimate objects as well, such a rolling ball, because as those objects move, friction acts on them, generating heat. This heat emits infrared radiation, which the PIR sensors may be able to detect if great enough. 2By JawaherA.Fadhil
  • 3. PIR motion sensor The PIR motion sensor is a 3-pin device. 3 Pin1 is the pin which receives the positive DC voltage. The PIR motion sensor needs between 5V-9VDC of power for operation. Pin2 is the Output pin of the PIR module. Pin3 is the ground pin of the device. When motion is detected by the PIR, its output will go high. If there is no motion is detected, its output low and it gives off practically no voltage. By JawaherA.Fadhil
  • 4. PIR motion sensor This sensor has a sensitivity range up to 20 feet (6 meters) and a 110° x 70° detection range, making it a wide lens detection sensor. This means it can measure 110° vertically (from top to bottom) and 70° horizontally (from left to right). The best way to check its sensitivity is when the circuit is built, try moving around through all of its angles. See at which angles it can detect your movement and at which angles it is not able to detect your movement, meaning your out of its angle scope. A lot of it is trial and error and experimenting. Once you know where it can and cannot detect, you can place it in an optimal place where it can detect in areas where you want it to. 4By JawaherA.Fadhil
  • 5. Arduino Motion Sensor Light Circuit In this project, we will go over how to build a motion sensor light circuit with an Arduino. a light turns on when motion is detected. Components Needed • Arduino Board • PIR motion sensor • LED • USB Cable 5By JawaherA.Fadhil
  • 6. Arduino Motion Sensor Light Circuit 6By JawaherA.Fadhil
  • 7. Arduino Motion Sensor Light Circuit The schematic diagram of this circuit is: 7By JawaherA.Fadhil
  • 8. Arduino Motion Sensor Light Circuit 8 //code for motion sensor circuit const int ledPin= 13; const int motPin= 2; void setup() { pinMode(ledPin, OUTPUT); pinMode(motPin, INPUT); } void loop() { int value= digitalRead(motPin); By JawaherA.Fadhil
  • 9. Arduino Motion Sensor Light Circuit if (value == HIGH) { digitalWrite(ledPin, HIGH); delay(60000); digitalWrite(ledPin, LOW); } else { digitalWrite(ledPin, LOW); } } 9By JawaherA.Fadhil
  • 11. Temperature Sensor LM35 is an analog temperature sensor used to read the Temperature of the surrounding environment. The output voltage varies linearly with change in temperature. It can measure temperature from-55 degree celsius to +150 degree celsius. The voltage output of the LM35 increases 10mV per degree Celsius rise in temperature. The IC has just 3 pins, 2 for the power supply and one for the analog output. 11By JawaherA.Fadhil
  • 12. Temperature Sensor The output of LM35 is an analog signal. Microcontrollers don't accept analog signals as their input directly. We need to convert this analog output signal to digital before we can feed it to a microcontroller’s input. For this purpose, we can use an ADC( Analog to Digital Converter).If we are using a basic microcontroller like 8051, we need to use an external ADC. But modern day microcontrollers like Arduino come with inbuilt ADC. Arduino Uno has an in built 10 bit ADC (6 channel).Can be Used to convert the analog output of LM35 to digital output. 12By JawaherA.Fadhil
  • 13. Temperature Sensor Components Needed to Build the LM35 Temperature Sensor Circuit: • Arduino Board • LM35 Temperature Sensor IC • Computer • USB Cable 13By JawaherA.Fadhil
  • 14. Temperature Sensor Circuit Schematic 14By JawaherA.Fadhil
  • 15. Code for Temperature Sensor float temp; void Setup() { Serial.begin(9600); } void loop() { temp=analogRead(0); temp*= 0.00488 *100; // ADC (5v/1024)then convert to celsius Serial.println(" Temp Sensor = "); Serial.println(temp); delay(1000); } 15By JawaherA.Fadhil
  • 16. 16
  • 17. NOTE To print a specific amount of decimal places, just specify the number of digits after the floating-point number to be displayed: Serial.Print(1.2345, 0); // Prints "1" Serial.print(1.2345, 1); // Prints "1.2" Serial.print(1.2345, 4); // Prints "1.2345" By JawaherA.Fadhil 17