Feed on
Posts
Comments

Its been a while since I last worked on this officially project though I have done a little here and there to gather ideas and testing for the new design. To briefly recap, my first alarm system was on I bought from Ebay and made some modifications to it then I made my own alarm system that has PIR/Door sensors with the NRF24 wifi module.

Since my last post on the alarm system, I’ve now removed the 433MHz remote and switched to the Raspberry Pi so I can switch the alarm on/off via Wifi which makes things easy. Also I’ve moved to the SIM900A for SMS sending. It’s been almost 2 years now, I’ve had to charge up of the PIR modules batteries once and most of the door sensors have stopped working properly either because of the coin cell didn’t last, the NRF module or its position so I gave up on them and I’ve had 2 false alarms, one I think the battery was running too low (my voltage cut off may not have been high enough) and not sure about the other one.

Some of my ideas for the new project are:

Use the 433MHz Si4432 module for the wireless network

alarm3-1

Using this module over the nRF 2.4GHz should allow for better reception in areas that reception was hit and miss, this was in the garage and some spots around the house. Input voltage is 1.8V to 3.6V so it’s quite low. Current consumption is 1uA when sleeping, 18mA in receive and you can change your transmit power from 1dBm to 20dBm (17mA to 85mA), so I might go for 5 or 8dBm which might be around 20mA.  The downside is that it’s a lower frequency it will need to be receiving and transmitting for a longer period of time.

si4432

Price is $3 for the module from Ebay so that’s pretty cheap.

Door sensor – Hall effect sensor / updated reed switch

reed

The problem with the old door sensors was the reed switch, if there was a vibration say hitting the door frame or similar it could trigger it, I was doing some filtering for this, like delaying a few ms and re-checking but I’d rather not have vibration impact the system.

alarm3-2

I looked at going with hall sensors, if mounted correctly, you would detect if the magnet passing as the north and south poles would induce a voltage change. There were a few problems, one hall sensor was latched so it wouldn’t change states unless you pulsed the sensor on/off, so I bought a non-latched sensor but the current consumption was around 2mA at idle and the magnet did have to be relatively close for it to work properly.

reed1

So I went back looking at reed switches and found some that were covered in a black mold, I had my doubts but they do seem to resist vibration very well, on Ebay they are called “Gps-14A”, weird name and are 5x for $3.

Battery change

I’ve been thinking about what battery other than LiPos I can use, it’s a bit concerning using them without a battery protection switch though I do have a low current fuse in place in case of shorts. The new battery would have to account for the Si4432 1.8V to 3.6V and also with the PIR if we remove the 3.3V regulator we can drop down to 3.1V and it should still function correctly.

zippy700mah

It looks like the LiFePo4 battery chemistry will do the trick, it’s safer than LiPos and offers a 3V to 3.3V working voltage which is perfect for my application. I bought a Zippy 2S 700mAh one, discharged it to 3.05V and then recharged it to 3.6V which the charger said it recharged about 600mAh. I’ll just have to separate the cells but I’ll also put a fuse on them too just in case.

Alerts

In Australia the 2G network will be no more in Dec 2016 so this will force me to either switch to a 3G network/module which might be around $50-60 or look at doing it via push messages to the phone directly which seems like it could be the easier solution. At first I looked at a service like Pushbullet which is free for a certain amount of messages per month but for some reason it didn’t seem to give push notifications unless you checked the app (might be a recent update that broke it) although the good thing is that other email providers do support push like @icloud.com. I enabled the mail for my iPhone, made sure Push was enabled and it seems to do the job. The downside is if the internet is down we might have a problem!

Wifi interface

As I currently have the RPi acting as the wifi interface, I’d like to have more options being displayed on the webpage like sensor check ins (which are currently LEDs on the physical device), alarm logs such as when it was turned on, off, alarm tripped, which sensor reported it, battery voltage monitoring, etc. Also I’m investigating whether I should just replace the RPi with the ESP8266 for a more compact solution and cheaper solution, I think it’s the better option if I can get it up and running, I would still have an ATmega for the Si4432 side.

Atmel CryptoAuthentication

I was looking at a chip that would do all the HMAC/SHA so I can save on chip memory/usage, off load all processing to that chip, have a true random number generator (as I was just increment the static random number before!) and have the keys be secure on chip. It’s probably overkill for a simple alarm system but I’d like to give it a go anyway.

crypto

One of the chips available to me is the ATSHA204A available for $1 which isn’t too bad at all. After reviewing the datasheet for a few hours (way longer than I wanted to), it seems like it will work though it was a little confusing reading through the commands as it’s possible to do all sorts of things with various keys, nounce, one time programmable zones, and so on but I’ll just need to stick with the bare basics.

Other ideas to look at:

  • A “voting system” for the PIR modules, instead of having just 1 PIR module in 1 room, have 2 or 3 so if 1 PIR goes off, nothing will happen, but if 2 or more go of within a few seconds of each other then the alarm would trigger; this would help with false triggering if one PIR module acted up which I have had before. Better PIR sensors would do the job too, depends how expensive they are.
  • Ability to turn on PIR sensors only or door sensors only or both
  • Use a SMPS and current limiter for recharging the 12V battery due to the 12V siren

One Response to “Alarm System v3: Part 1 – Ideas”

  1. I’ve always had trouble with Pushbullet. I like using Pushover. It’s a one time $5 (at least when I bought it years ago) purchase, but it’s been around and supported. Easy to connect to with raspberry pi, etc. https://pushover.net/ Here’s my code from a home automation setup: https://github.com/dwaq/Macrostomata/blob/master/pushover.py

Leave a Reply