As a part of college project, me and my teammates were assigned the project of detection of Human activity by the use of PIR(Passive Infrared) sensors, and that's not all the information has to be transmitted to a remote client, Ethernet shield was used for the purpose.
All this with the help of ARDUINO.
A very security measure, that's the aim of this instructable.
Its cheap to make, within budget( of course, nothing's more precious than your security ), with a little knowledge of working with Arduino, you will achieve great results.
So, let your brain greased and your hands working.
and Yup, please do vote for me... :-)
Step 1: Collect All the Necessary Equipments...
The System requires you to be a bit familiar on working with Arduino...
Assemble all the below mentioned:
-HC-SR501 PYROELECTRIC INFRARED PIR MOTION SENSOR DETECTOR MODULE for ARDUINO AVR(available on amazon for 200 INR)
-Arduino Uno Microcontroller
-Arduino Ethernet Shield
-10 kOhm resistor
-Jumper Wires/Connecting Wires
-An active LAN connection(if you intend to remotely test the working of the system)
Step 2: Knowing the Basics...
Before beginning we should know what we are going to do.
The two images will make you understand about How the system works.
when the door is initially closed there is no human presence hence no infrared radiation. also the light intensity is low, so no unusual activity.
But when the thief actually opens the door, there is a spurt in the light intensity(caught by LDR), and change in infrared radiation(the PIR sensor knows) and this information is sent to a remote client.
Step 3: About the Components
PIR sensor senses the infrared radiation emitted by human beings thereby sending an equivalent signal to the arduino microcontroller.There are three pins on
the PIR sensor: voltage (a), digital out (b), and ground (c). For this project, the PIR sensor’s
digital out pin will be connected to PIN2, which is a digital PIN that reads a signal of 1 or 0. The
voltage pin and the ground pin will be connected to the 5V and GND pin slots, respectively
You can take the help of jumper wire to connects those pins, like I soldered in my case.
Light Dependent Resistor, the resistance hence voltage varies according to the variable which is Light in this case.
The LDR used in this project determines the light intensity in the room, say when the room door is closed with no light source active, will have darkness(so the intensity shown will be less) and when one opens the door Light intensity increases.
The LED(which is pointed towards the LDR) simulates the lighting conditions in a room.
The Ethernet Shield is very crucial component in transmitting the results obtained via a network(here a LAN). This component acts as a server. And should be stacked upon the ARDUINO board(so that you can use the pin slots). You can find that out in the picture clearly.
Step 4: How to Make the Connections
Connecting the wires may be a little bit tricky at times, I have used an LDR and LED for serving up as light detector and source of light respectively, in one go...
But for simplicity sake, I would suggest you to make it one after another, then summing them up will be child's play(those who know working with Arduino won't find it trickier).
Connect the GND wire to GND pin slot.
Connect the VCC wire to the 5 V pin slot.
Connect the output wire to PIN 2 slot with a 10 Kohm resistor.
I have shown the required connection in the diagram, you can find more convenient to follow it from there.
Step 5: Complete Connections
Here's the diagram involving all the components(the PIR sensor, LDR and LED)
There's no hard and fast rule that you should connect it in this way, I did my project few days ago, and the diagram later so, you should ensure connecting them in proper manner for the correct measurement.
Step 6: Coding
I have included the code here, you can take it.
But it wont function unless your pin connection matches with those mentioned in the code.
If you have made connection pattern other then what I did, make sure you make necessary changes in the code before, you compile and upload on your device.
*I don't take any responsibility if the code or anything(procedure) results in any kind of damage either to you or devices.
Step 7: Final Results
The project is tested what it was intended for, yup I am happy person... :-)
You can see the images when the PIR detects any activity and the LDR any light changes.
You can also attach an alarm system by including a buzzer when any motion or light activity is detected, connect and code it accordingly.
So all you intruders, watch out and be careful, a PIR sensor may be sensing your presence and reporting it someone at remote location.
-You can cover the portion of the white hemisphere of the PIR sensor, with a black tape if you want to concentrate the field of detection.
-and there are two pots on the PIR sensor one for sensitivity, and the other for time delay, you can adjust them according to your desired application.
Hope, you find this informative and useful.
Thanks for having a look at this.
Suggestions awaited, comments will be liked, and queries will be answered.
Please vote for me in the contests.
Bye for now.