A burglar alarm that tweets when an intruder enters the house? What with the fashion for Twitter lately, I thought I’d give it a go, and this also gave me the excuse I’d been looking for to try out the Arduino hardware platform.
The Arduino is a simple embedded board with an AVR processor and sundry IO for interfacing to the outside world. It has several digital IO pins suitable for connection to the output signals of a burglar alarm, so I wired these in to the Arduino and set it to work keeping a constant eye on the alarm status. My alarm panel is somewhat isolated in the house with no nearby Ethernet connection, so I added an Xbee wireless module capable of sending data to another room in the house with Ethernet available. The Arduino spends its time monitoring the alarm output pins and sending the latest status over the air.
At the other end of the wireless connection, I have a Linux server with an Xbee USB module. A Python script running on the server reads the alarm status being received off the air by the Xbee module. If it sees that the Intruder alert signal is being asserted at the alarm panel, it generates notifications in the form of an SMS (via textlocal.com) and a Twitter status update.
Of course an SMS is ultimately the best way to send an urgent message like an intruder alert, but the Twitter updates are useful for posting less important status updates. As well as the intruder alert signal, the module can read a bunch of other status signals from the alarm and post those signals only to Twitter. I use these tweets to post whenever the alarm is set and unset. These updates would be intrusive if they came via SMS, but not when floating past in my Twitter feed. The tweets are sent from a unique Twitter account with protected updates so only I can follow it – they are not broadcast to anyone following my normal tweets.
My experience with the Arduino was that it really is very easy to use for simple interfacing jobs like this. The embedded side of the software is implemented in just a few short lines of code: it reads the state of the digital input pins, and sends the current state to the Xbee wireless module via the AVR’s UART. You can see the code for yourself here.
The active Arduino user community means that third parties are building add-on modules (shields) for Ethernet, Zigbee, RFID, GPS, SD cards and a host of other technologies. Whatever you want to achieve, there could well be a ready-rolled means of doing it quickly with the Arduino. However if you’re planning on a mass home automation project with Arduino/Xbee modules all over the house, you might want to bear in mind the cost (approx £20 for the Arduino, approx £40 for the Xbee and Xbee shield).
Pingback: Twitter Burglar Alarm tweets to let you know your TV is being stolen - SlashGear
Your comment about the cost being a factor in rolling out a whole house solution for security is dead on. Why pay an extra 20 for the Arduino when the Xbee module has a perfectly capable micro in in? Well, you could download the Xbee firmware and modify it, but the development software costs an arm and a leg for Makers.
So I’m making an open source hardware solution that will hopefully be cheaper than the Xbee when mass produced. It uses an Atmel chipset, which has the free development system (WinAVR or avr-gcc). It also will run the open source Contiki OS (with IPv6 support) or the FreakZ open source ZigBee stack.
http://yzf600.dns2go.com/blog
Pingback: Twitter Burglar Alarm tweets to let you know your TV is being stolen | ComputerFinance.net
Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY]
Pingback: DIY: Twitter Burglar Alarm | Beating the Internet
Pingback: Aggregator @ Bitubique
Pingback: GEARFUSE » Arduino Burglar Alarm
Pingback: Ink and Virtue » Blog Archive » DIY Burglar Alarm That Tweets On Thieves [DIY]
Pingback: Arduino Burglar Alarm | American News World - News And Technology
Pingback: DIY Burglar Alarm That Tweets On Thieves | Gadgetorium!
Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY] | Gigategy
Awesome, should be part of the Arduino projects collection:
http://www.hacknmod.com/hack/top-40-arduino-projects-of-the-web/
Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY] | The gadgets
Pingback: Gadget» Blog Archive » DIY Burglar Alarm That Tweets On Thieves [DIY]
Pingback: Technology Info » Blog Archive » Arduino Burglar Alarm that uses Twitter
Pingback: jopettitt.com » Twitter Burglar Alarm
Pingback: Twitter Burglar Alarm | ArduinoFun.com
Pingback: blog test via un flux rss google reader » Archives du Blog » Une alarme anti-voleurs capable de tweeter l’information
Pingback: Hack Twitter to Control Electronics | Hack N Mod
Pingback: Arduino Burglar Alarm that uses Twitter | Gadget Warezhouse
Pingback: SleepRevolution Blog - HOWTOs for DIY Bedroom Improvement » Blog Archive » DIY Burglar Alarm
Pingback: Value of Twitter « My Blog
Pingback: Combining Twitter With Your House Security System | Tweeterism
Pingback: Twitter Home Automation | Kelvin’s Thunderstorm
Pingback: Arduino Burglar Alarm that uses Twitter « Technology All-In-One Blogs
Pingback: Kablo Yığını
Pingback: tech report 김경수, 김선화 « Interaction Design Studio 2009
Pingback: Twitter can control your total Home and Gadgets! | Taranfx: Technology Blog
So basically you acquire the output signal from the control unit of a classic alarm system?
I’m just wondering if is possible make a complete wireless system with arduino, xbee modules, and magnetic/pir sensor…but i fear it will be too expensive!
It’s a shame that the Z-wave protocol ( a wireless mesh protocol used in commercial home automation and alarm system) is closed source, otherwise it would be nice interface arduino with z-wave devices…
We have a similar product that we sell commercially and I am interested in where I can get info on the Twitter API. Can you email me the API, or a link to somewhere I can download it from ?
Pingback: Evil Monkey and the Cloud meets Arduino | Kenneth Roraback