Alarm System ver 4.0

This page is about my current home alarm / automation system. The interface is a web-app designed for use on the iPhone, so uses the jQTouch JavaScript plugin to provide the look and feel of a native iPhone app, but is in reality a web page. The system uses a Raspberry Pi to host the web page, and a custom circuit board provides the hardware interface. The alarm circuit inputs and outputs are compatible with standard 12volt domestic alarm systems. The radio control channels are compatible with off the shelf radio control switches based around the PT2262 or HS2260A chipset.

You can find the Github project page here… Alarm System on the GitHub

and the project wiki is here… Alarm System wiki on the GitHub

The software will run on a Raspberry Pi ( or any other Debian system ) and doesn’t require the custom circuit board, so if you’ve got a Raspberry Pi, an iPhone and a some time on your hands, you can download a copy of the software by following the instructions here…Installing-the-Alarm-System


Alarm System Interface

Click to enlarge

Click to enlarge

Logon page

Prompts for a valid user logon and password.
All access attempts are logged and can be viewed through the system log files.
User accounts can be created / edited / deleted through the ‘Users’ administration screen.

 

 

iPhones2

Click to enlarge

Alarm page

Alarm system can be set to Night mode or Day mode. Also allows for Reset and Test functions.
Up to a maximum of 12 alarm zones can be created / edited / deleted through this screen. Zone can be renamed and configured to be active in Day mode, Night mode or neither. Chimes can also be enabled for zones when required.

 

 

Click to enlarge

Click to enlarge

Automation page

Remote Control power sockets can be manually switched on and off through this page. Up to a maximum of 160 Radio Control sockets can be created / edited / deleted through this screen. Radio Control sockets can be renamed and configured to either switch on, switch off or do nothing if the alarm triggers.

 

 


Click to enlarge

Click to enlarge

Circuit board

The circuit board provides isolation between the 12 volt alarm and the Raspberry Pi GPIO circuits. Also uses a 3.3 volt PIC microprocessor (PIC12LF1552 ) to emulate the Radio Control transmitter, providing up to 160 RC channels.

 

 

Click to enlarge

Click to enlarge

Click to enlarge

Click to enlarge

Circuit board with a Pi

The circuit board is designed to piggy back on a Raspberry Pi. GPIO connections can be through standard header pins ( requires additional cable ), or by means of the header socket ( illustrated ).

 

 

Click to enlarge

Click to enlarge

Circuit board with a Pi and cabling

This installation has all 12 alarm input circuits connected, and a tamper loop has been created using an addition connector strip. Each alarm circuit has a 12volt power feed to drive PIR’s if required. The 12 volt and 5 volt power feeds are also routed through the screw connectors.

 

 


17 Responses to Alarm System ver 4.0

  1. Hi Tony great alarm project. Im really keen to replace my current alarm board with a PI solution but before i jump in was wondering if you looked into alarm keypad integration for setting/unsetting. Im fine with iphone logins etc but when ever i do home automation projects which i have done a number now i have to make it easy or minimal change for my wife etc or she goes off.

    If i could integrate my existing keypads to set/unset that would be awesome so thought i would ask if you did look into their communications methods also.

    Thanks again

    Shane Kuzmanic

  2. Hi Shane,

    Thanks for leaving the post and the feedback.

    I did have a very quick look at keypad integration at the start of this project as my previous system used small 12 volt keypads. I found they were using an open collector circuit to allow multiple units to operate over a single line, data being transmitted by any unit being able to pull the line low. But I decided trying to interface this to a Raspberry Pi would probably require dedicated hardware, and a lot of software, so took it no further.

    I had seen an interesting installation where an iPad was screwed to a wall and used as a control panel for a multi-sensory swimming pool ( complete with underwater music ). It made for quite an effective interface, and I was vaguely intending to use this approach. But I’ve found having the iPhone in my pocket is far more convenient than having to get up and go to a control panel.

    Maybe you should look at it not so much as adding a new iPhone interface, but as getting rid of an old keypad interface.

    Good look with the project.

    Tony

  3. Last week i bought a set of ZAP 5LX remote switch outlets (they’re the same 433mhz ones as you have). I’ve stripped them down to use lighting circuits (or pendent in line switches – N/C so that they can be bypassed by switching off and back on again).
    Bumped into your website today by googling HS2260a – I’m looking at Arduino Yun / BBB / PI (already have the PI) Android app and 433 transmitter …… did you consider BB or Arduino?/
    Projects looks good – I need to integrate to a texecom wireless PIR alarm too :/

    🙂

    • Hi Jonathon,
      Arduino Yun and BBB are fun looking devices, but I’m not familiar with them, so I left them alone. It’s taken me long enough to come up to speed on the Pi and PIC. Good luck with the project.
      Tony

  4. Wow! Very nice. Incredible development.

    Any chance that circuit board or design is available?

    • Hi Scott,

      You’re in luck. I have a couple of spares. I’ll put some details in an email to you.

      Tony

  5. HiTony,
    Two things, briliant idea,
    1 do you have an android app developed
    2 Do you have any more boards available.

    • Hi Andrew,

      I’ve never tried the system on an Android phone, but it should be possible. The main requirement is that the browser should use the Webkit rendering engine as this is a requirement of the jQT plugin. There is a whole list of Webkit browsers on Wikipedia.

      But there is an online demo for jQT here… jQTouch The page has a button marked ‘preview on your phone’, so you should be able to get an idea from there. alternately, load up the alarm software on a Raspberry Pi and give it a go. There are full instructions in the Wiki on the Github.

      And yes – I’ve got a couple of spare boards. I’ll drop you further details in an email.

      Cheers

      Tony

  6. Hi Tony,

    This is the best RPI alarm project what I ever seen. Great idea the GPIO matrix to increase the usable input or output channels.
    I think the alarm software working on latest PRI 2 too, like on RPI B+. Can I automate relay output on stay armed? So I think to auto shut down the garage door when alarm is on. (Because when I leave the door open, my dog became to the garage to sleep, and triggering the alarm on night.. :o) )
    Can You share the PCB (for example Eagle) plan with me pelase?

    Thanks
    Robert

    • Hi Robert,

      Thanks for leaving the comment – its certainly taken a long time to get the project to where it is today.

      Connecting a relay will need some additional hardware, as the Raspberry Pi GPIO’s aren’t capable of driving a relay directly, but there are plenty of examples on the internet. But have a look at this tutorial…
      TUTORIAL: Siri/HomeKit Garage Opener with Raspberry Pi
      It covers connecting a garage door opener to a Pi. The tutorial uses Apples HomeKit interface to control the device, but the last part of the video explains the type of hardware modifications you would need.

      I’m not sharing the PCB designs at the moment, but have got a few spare development units if you are interested ?

      Regards

      Tony

  7. Hi nice system can you tell me i have an 443mhz rec for an pi can i use that with your system on my pi once i sorted out my probs

    from peter

    • Probably not – the system only works with the custom circuit board. But the code is open source, so you could modify it to work with your own hardware.

  8. Have you looked into adding Z-Wave yet? But I like the option to use less expensive magnetic switches if wires can be run.

    I just bought my first Pi and will be installing your code shortly.

    • Hi Jeff,
      I don’t have any Z-Wave devices, so I’m not planning to develop that option. But I have been looking at these Radiator Valves.

      The code needed a bit of maintenance recently, as the Apahche2 folder structure had changed, the Raspberry Pi Debian image had changed, and Apple rolled out IOS 10. But it all seems to be installing ok again now. There is a bit of an oddity when using the app in full screen mode, it can seem to lock up. But the fix is simple enough – during the setup, when configuring the iPhone, you have to create the homescreen icon using an external network ( not 3G or 4G, has to be a wi-fi ). I’ll add the details to the wiki when I get a chance.

      link text

  9. Hi Tony,

    very cool project ! I am really interested in setting up this installation, do you have any boards left ?

  10. Hi Bart,

    Yes I still have a couple of spare boards, unfortunately Mark pointed out just yesterday that my install is broken ( again ) 🙁
    I’m not planning on fixng the current code, as I’m wanting to finnish the new version instead.

    I’ll give you a shout when the code is stable, then leave it to you if you want to go ahead.

    Tony

  11. Hi Tony,

    thanks for your answer. I didn’t see Marks comment, to bad !

    Please keep me posted.

    Bart

Leave a Reply

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


× nine = 45