3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Intrusion (and attempt) detection

Intrusion (and attempt) detection
Big brother is watching you ... This little project detects intrusions and attempts.

It consists of a reed switch, an arduino and a router running OpenWrt. If somebody tries to open the door of my room, the magnet will move away from the switch closes the circuit. The arduino detects this signal and sends linux commands to the router using the serial port. These linux commands let the router send an email and as the internet connection could be broken it also writes to a log file.

After this was done a motion detector was added which tracks people entering my flat.

This project is considered to be a playground to get familiar with the arduino communicating with linux. If you think it's an ease to communicate with linux you're somehow wrong. Linux, or more precisely the console, doesn't only response with a command's output but also with the prompt string "john@mycomputer ~#" that you would see on a monitor. So if you send the command 'date' to the router, it doesn't respond with a text like "Tue Jul 26 09:26:12 CEST 2011" but something which looks like

john@mycomputer ~# date
Tue Jul 26 09:26:12 CEST 2011

I'll edit this article sooner than later with exact instructions of how to connect the arduino with your router and the arduino code will also be available very soon.
1 comment
Oct 28, 2011. 10:36 AMjanisalnis says:
I like your idea with magnetic switch on door handle.
In OpenWRt one can use some of GPIO pin for sensor input and spare Arduino. One candidate is RX pin of router used for serial communication. I succeeded with router WRT160NL and made an Instructable too.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:slopjong(Visit slopjong's weblog)
I don't injure a human being or, through inaction, allow a human being to come to harm. I have seen things you people wouldn't believe. I am Your Plastic Pal Who's Fun To Be With I have shiny metal...
more »