A simple burglar Alarm: motion sensor, noise sensor and ethernet shield all together
read motion sensors data
read sensor noise data
connected the ethernet shield and sent an email
At this point we can put all together.
7
Project description
A simple burglar Alarm: motion sensor, noise sensor and ethernet shield all together
I’m back … forced home by the Seveso flood (a river here in Milan) I take this opportunity to update the blog.
In previous post we have :
- read motion sensors data
- read sensor noise data
- connected the ethernet shield and sent an email
At this point we can put all together.
But i want also to use the webcam I have at home (model D-Link DCS-930L).
I don’t want to let on the webcam the whole day, I want to turn on only if a movement/noise is detected and I want to be able to turn on or off from intenet.
I decided to buy a wireless power strip like this.
I can connect webcam to power strip and turn or/off the power strip (and then the webcam) with Arduino.
I have only to know the power strip sensor code as done in the previous post with the movement sensor.
Using the power strip remote I read this codes:
| power strip turn on code | power strip turn off code |
| 1394001 | 1394004 |
Now I have all the codes I need. Now I have to connect wireless trasmitter to Arduino.
Here is the final result:



I had to modify the connections made in the previous posts because ethernet shield use exclusively pin 10,11,12 and 13 .
Here we are the new connections between arduino and trasmitter and receiver modules.
Noise sensor
| Vcc | 5 V |
| GND | GND |
| SNG | Pin 5 (digital) |
Receiver sensor at 433 Mhz
| Receiver Pin | Pin Arduino |
| Vcc | 5 V |
| GND | GND |
| DATA | Pin 2 (digital) |
Trasmitter Sensor 433 Mhz
| Trasmitter Pin | Pin Arduino |
| Vcc | 5 V |
| GND | GND |
| DATA | Pin 9 (digital) |

