Print

 

HomeAlarmPlus Pi

https://homealarmpluspi.blogspot.com/2013/04/blog-post.html

 

Home Alarm System using Raspberry Pi, Netduino Plus and ATtiny85 (HomeAlarmPlusPi project)

Latest update: Friday, November 8, 2013

This is an open source home alarm monitoring system using Raspberry PiNetduino PlusATtiny 85 and a typical home alarm system. This implementation could be used in conjunction with the PC5010 Digital Security Controls (DSC) PowerSeries Security System control panel and sensors.  Tested with Netduino Plus 1 running .NET Micro Framework 4.2 (QFE1 or QFE2) and Raspberry Pi Model A running Debian GNU/Linux 7.0 (wheezy).

Previous Implementation
When I first started HomeAlarmPlus on February 2012 my intent was to have a simple home alarm monitoring system and learn more about microcontrollers. As the knowledge kept growing, also the complexity of the circuitry, system and requirements. Then Raspberry Pi complemented the existing project by using full capability of Apache Web server. This involved massive code changes to the original project reflected in HomeAlarmPlusPi.

Objective
Use full capabilities of Raspberry Pi and Netduino Plus to monitor home alarm system and report any sensor/motion detector activities via email (using Simple Mail Transfer Protocol (SMTP)), local web server, notifications (using PushingBox) and Pachube (now Cosm). 

Programming Languages and Web Development

On Netduino Plus

 


On Raspberry Pi

 


On ATtiny85

 

Warning 
This code contains information related to a typical home alarm systems.  Please, be aware that this procedure may void any warranty.  Any alarm system of any type may be compromised deliberately or may fail to operate as expected for a variety of reasons.

The author, Gilberto García, is not liable for any System Failures such as: inadequate installation,  criminal knowledge, access by intruders, power failure, failure of replaceable batteries, compromise of Radio Frequency (Wireless) devices, system users, smoke detectors, motion detectors, warning devices (sirens, bells, horns), telephone lines, insufficient time, component failure, inadequate testing, security and insurance (property or life insurance).

One last thing:
DISCONNECT AC POWER AND TELEPHONE LINES PRIOR TO DOING ANYTHING.

Required Hardware


Optional Hardware

 

 


Settings
For HomeAlarmPlus and HomeAlarmPlus Pi the conditional symbol ALARM_DEBUG enables alarm debug on Visual Studio. To enable debugging on Visual Studio just right click AlarmByZones project, select properties, select Build tab and add ALARM_DEBUG under "Conditional compilation symbols".

 

More debugging capabilities will be implemented for Raspberry Pi and ATtiny85.

Circuitry
The following Fritzing diagram shows how the Netduino plus, LEDs and the alarm zones (or motion detector) are wired. Compared from previous implementation(HomeAlarmPlus) I added ATtiny85 in order to reduce threads in the Netduino Plus 1. By doing this I saved 2 KB of RAM and have more code space.

 

 
 

Keep in mind that one or more zone consist of the following:
a) 1 Normally Open contact and 1 Normally closed contact with End Of Line (EOL) resistor.
b) Double EOL circuit, 1 Normally closed contact with 5.6kohm EOL resistor and Schottky diode.  This will bring the protection needed for the Netduino or Arduino.
c) Each ground zone should be connected to the  ProtoScrewShield GND.

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


Web server options on Netduino Plus

   
   
   
   
   
   
   
   
   
   
   
   
   
   

 
 


Web server options on Raspberry Pi

   
   
   
   
   
   
   
   
   

 
 

 


Software Architecture

 

 


Final Product

 


Under Development


References

Code Repository and Documentation
HomeAlarmPlusPi 

Video
HomeAlarmPlus Pi just initializing



HomeAlarmPlus Pi Initializing and Running