Introduction: Home Security Alarm or a Motion Detector Using Arduino,P.I.R Sensor and LCD.

Picture of Home Security Alarm or a Motion Detector Using Arduino,P.I.R Sensor and LCD.

Hi Everybody,


Today I am Going to show you how to make a interesting,wonderful,cheap home security alarm.This Gadget Helps you to protect your house from thieves.In this project i am going to use a Freeduino Board(Arduino Compatible),P.I.R Sensor module,LCD and some other components.This Project can either powered with 9V Battery or with U.S.B of your computer.

How this Project Works?

All the body generate some heat energy in the form of infrared which is invisible to human eyes.But,It can be detected by electronic sensor.These type of sensor is made up of crystaline material that is Pyroelectric.In this project,we are using P.I.R. Motion Sensor Module as an infrared sensor that generates electric charge when exposed in heat and sends a signal to arduino.According to level of the infrared in front of sensor,Arduino displays the status on L.C.D and start buzzing speaker and glows the L.E.D.A simple program is running on arduino which checks sensor if anything is moved or new object has been detected.

Materials Required:-

1. 1 x Arduino Uno(You can use any compatible)

2. 1 x P.I.R Sensor Module.

3. 1 x L.C.D(16 X 2)

4. 1 x 9V Battery

5. 1 x 9V Battery Clip

6. 1 x L.E.D

7. 1 x Piezo Buzzer(I am using Speaker instead)

8. 1 x Breadboard

9. Some Jumper Wires

10. An USB Cable(Only for programming)

11. A Computer(Only for programming)

Step 1: Connecting the P.I.R Sensor to Arduino..

Picture of Connecting the P.I.R Sensor to Arduino..

1.Connect Vcc pin of P.I.R sensor to positive terminal of Arduino(5V).

2.Connect Gnd pin of P.I.R sensor to any ground pin of Arduino.

3.Connect Out pin of P.I.R sensor to Pin no. -7 of Arduino.

Step 2: Connecting L.E.D and Piezo Buzzer to Arduino..

Picture of Connecting L.E.D and Piezo Buzzer to Arduino..

Connecting L.E.D:-----

Connect Positive terminal(Longer Lead) Of L.E.D To Arduino Pin no. 13.

Connect Negative terminal(Shorter Lead) Of L.E.D To Any Ground Pin.

Connecting Piezo Buzzer:-----

Connect Positive terminal(Red Wire) Of Buzzer To Arduino Pin no. 10.

Connect Negative terminal(Black Wire) Of Buzzer To Any Ground Pin.


Step 3: Connecting L.C.D to Arduino

Picture of Connecting L.C.D to Arduino

To wire your LCD screen to your Arduino, connect the following pins:
LCD RS pin to digital pin 12

LCD Enable pin to digital pin 11

LCD D4 pin to digital pin 5

LCD D5 pin to digital pin 4

LCD D6 pin to digital pin 3

LCD D7 pin to digital pin 2

Additionally, wire a 10K pot to +5V and GND, with it's wiper (output) to LCD screens VO pin (pin3).

Step 4: Programming Arduino..

Picture of Programming Arduino..

1.Download Arduino IDE 1.0.6 from https://www.arduino.cc/en/main/software.


2.Connect Your Arduino to your computer using USB Cable.

3.Open Arduino IDE,choose your correct board from Tools--Boards
4.Choose Your Correct Port from Tools--Serial Port
5.Click On Pir_Sensor.ino which is given below in the Attachment.

6.Copy the following sketch which appears in your Web Browser to your Arduino Sketch Page.


7.Click On Upload Icon or Goto File--Upload
****That's It.****

Step 5: Conclusion.

Picture of Conclusion.

Now,All the hard works are done.it's time to enjoy with your new gadget.Just plugin your arduino to your computer or plug the 9v battery on VIN and GND pin of your arduino and mount it to appropriate place.



If you have any problem or question about this project,please leave a comment or call me on +917277989686.You can also send me an email on zishantips@gmail.com.


For your convienience,I added the circuit diagram on the conclusion page and arduino sketch file in the attachment.


If you like this project please vote,share and like this instructable.

Thanks.........................................................

Comments

zishan123A (author)2014-10-29

Please Vote Me,If you like this project.

jferry3 (author)2016-02-03

Great work. I need to connect 5 pir motion sensor in arduino . how to do this? Please help

Blown406 (author)jferry32017-04-15

I just found you question and was wondering if you ever figured out how to add the additional sensors? I would like to do the same so I can name the different sensors (zones) so when activated, it will tell me what area was activated. Thank you for your time.

Randy

blown406@gmail.com

zishan123A (author)jferry32017-01-28

Well I will try to make a video on this..

mmondek (author)2016-12-07

how to change duration of alarm? I want it to beep for like 1 sec, but i tried to change every number and it started to make only different sound...

zishan123A (author)mmondek2017-01-28

Sorry for the late response..You can't change the duration of Beep using the Arduino Program..The delay time can be adjusted using the Potentiometer given on the breakout board.The potentiometer helps you to adjust the time for HIGH n LOW signal from 0.3 seconds to 5 minutes.

Thanks

mohnsn81 (author)zishan123A2017-02-28

What is the name of thus potentiometer which save the alarm soome time

mohnsn81 (author)2017-02-28

I have problem when i try to define some digital output in the sameprogram which contain LCD . Arduino give me error during compiling.
Help me to find the problem

FerZF (author)2017-02-27

I'm doing this bro, wish me luck

cwhite209 (author)2015-07-22

How can I add a 4 x 4 hex keypad to this project? I would like to arm and disarm the system by using the keypad and add an LED to indicate that it is armed.

zishan123A (author)cwhite2092017-01-28

Well for this you must visit the arduino forum.. They will help you with this.

Thanks

MD.BUL BUL KHALIDT (author)2015-11-07

NICE PROJECT !!! can i use a voice sound in this project ?? what is code for voice sound ?? can you help me !!

Thanks for ur compliment...Yeah you can do it i will try to show you that soon.

sks.rock.224677 (author)2016-02-09

i made it man...thanks a lot for your project n your precious time helping me out with the program. thank you

Hey sks.rock224677,

I really appreciate your effort in building this project.I m really happy that you liked my project.

Thanks

BobW4 (author)2016-06-17

Looks like a good project but would be better if a camera was added to take a picture of the intruder perhaps like a dash cam with a storage card would be good, any ideas Thanks Bob

zishan123A (author)BobW42017-01-28

Yeah you are correct.I should make that one soon.Thanks for your idea.

sks.rock.224677 (author)2016-02-09

i made it man...thanks a lot for your project n your precious time helping me out with the program. thank you

cwhite209 (author)2015-07-09

I figured it out!!!

kemkem42 (author)2014-12-01

Great project with this IR sensor.
I could use this in my own project (alarm with arduino and rpi)
You can check it out at http://dev.kprod.net/?q=intrusion-alarm-arduino-raspberrypi-camera-motion-aalarm

zishan123A (author)kemkem422015-06-23

Thanks.

farahishak (author)2015-04-28

can i know the frequency produce at the speaker?
can i set variable freq at the output speaker?

zishan123A (author)farahishak2015-06-23

Hi farahishak,
Sorry for the late reply.Frequency produced by the speaker is 300 Hz.Yes you can set variable frequency by changing the frequency in that state statement :- playtone(duration,frequency) .

ejayapalan (author)2015-05-28

Hi zishan,
Interesting tutorial, can u upload a sketch to connect 5 PIR sensors to an arduino uno?, with output on a 16,2 LCD? please...

zishan123A (author)ejayapalan2015-06-23

Hi ejayapalan,
Sorry for the late response but i am also not expert on programming and electronics.i will try to make an sketch to connect 5 p.i.r sensors otherwise you can ask it on arduino official website :- http://forum.arduino.cc/

hrhuisken made it! (author)2015-03-02

Nice project, had fun building it. Thanks!!

zishan123A (author)hrhuisken2015-03-04

First,Thanks for your great words.Is it working correctly??If you occur any problem in this project.You can contact me on my email:-zishan.barun@gmail.com.

I want to know that why you use two P.I.R Sensors.???

Anything but your project looking cool.

hrhuisken (author)zishan123A2015-03-04

thanks, I wanted to add a seconde p.i.r. Sensors so I can use it in two rooms/ area's, but it isn't working yet. I'm stil trying to figure It out.

When it works I let you know

MD ASIF KUKREJA (author)2014-10-30

yyou r genius.I like your project.

MD ASIF KUKREJA (author)2014-10-30

you r genius.you win this contest zishan.

I like ur project.

asifn (author)2014-10-30

zishan you are only a winner in this contest.You are genius.I like ur project.

Arman5592 (author)2014-10-29

Why don't you use I2C protocol for the LCD , there are some little boards for connecting 1602s to arduino via I2C , where only 2 pins are used ( SDA , SCL ) uno pins A5 (SCL) and A4(SDA) . Thanks for sharing !

zishan123A (author)Arman55922014-10-29

I doesn't use I2C bus protocol because I2C Protocol helps us to connect more than one lcd with one arduino board but in this project,i am only using one lcd,not more.So,Why i use an extra component.Thanks for comment.

About This Instructable

37,362views

78favorites

License:

More by zishan123A:Home Security Alarm or a Motion Detector Using Arduino,P.I.R Sensor and LCD.
Add instructable to: