Twitter Burglar Alarm

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.

Arduino / Xbee Module

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).


Bookmark and Share This Article
[del.icio.us] [Digg] [Google] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Twitter] [Yahoo!] [Email]
This entry was posted in Projects and tagged , , , , , , , , . Bookmark the permalink.

31 Responses to Twitter Burglar Alarm

  1. Pingback: Twitter Burglar Alarm tweets to let you know your TV is being stolen - SlashGear

  2. yzf600 says:

    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

  3. Pingback: Twitter Burglar Alarm tweets to let you know your TV is being stolen | ComputerFinance.net

  4. Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY]

  5. Pingback: DIY: Twitter Burglar Alarm | Beating the Internet

  6. Pingback: Aggregator @ Bitubique

  7. Pingback: GEARFUSE » Arduino Burglar Alarm

  8. Pingback: Ink and Virtue » Blog Archive » DIY Burglar Alarm That Tweets On Thieves [DIY]

  9. Pingback: Arduino Burglar Alarm | American News World - News And Technology

  10. Pingback: DIY Burglar Alarm That Tweets On Thieves | Gadgetorium!

  11. Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY] | Gigategy

  12. markus says:

    Awesome, should be part of the Arduino projects collection:

    http://www.hacknmod.com/hack/top-40-arduino-projects-of-the-web/

  13. Pingback: DIY Burglar Alarm That Tweets On Thieves [DIY] | The gadgets

  14. Pingback: Gadget» Blog Archive » DIY Burglar Alarm That Tweets On Thieves [DIY]

  15. Pingback: Technology Info » Blog Archive » Arduino Burglar Alarm that uses Twitter

  16. Pingback: jopettitt.com » Twitter Burglar Alarm

  17. Pingback: Twitter Burglar Alarm | ArduinoFun.com

  18. Pingback: blog test via un flux rss google reader » Archives du Blog » Une alarme anti-voleurs capable de tweeter l’information

  19. Pingback: Hack Twitter to Control Electronics | Hack N Mod

  20. Pingback: Arduino Burglar Alarm that uses Twitter | Gadget Warezhouse

  21. Pingback: SleepRevolution Blog - HOWTOs for DIY Bedroom Improvement » Blog Archive » DIY Burglar Alarm

  22. Pingback: Value of Twitter « My Blog

  23. Pingback: Combining Twitter With Your House Security System | Tweeterism

  24. Pingback: Twitter Home Automation | Kelvin’s Thunderstorm

  25. Pingback: Arduino Burglar Alarm that uses Twitter « Technology All-In-One Blogs

  26. Pingback: Kablo Yığını

  27. Pingback: tech report 김경수, 김선화 « Interaction Design Studio 2009

  28. Pingback: Twitter can control your total Home and Gadgets! | Taranfx: Technology Blog

  29. decagrog says:

    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…

  30. Steve Nutt says:

    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 ?

  31. Pingback: Evil Monkey and the Cloud meets Arduino | Kenneth Roraback

Leave a Reply

Your email address will not be published. Required fields are marked *