Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Door Alarm


  • Please log in to reply
No replies to this topic

#1 rajahd123

rajahd123

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 May 2013 - 10:51 PM

Our sump pump room is in the corner of a "game room" in our basement.  I want to ensure the door stays closed and people (mainly kids) aren't going in there.  The "door alarm" solutions commercially available seem targeted at freezers and just didn't suit my needs.  Enter Netduino.

 

My original desire was something that would sound a short alert when the door was opened and then alert at intervals (every few minutes) similar to a smoke detector with a dying battery until the door was closed.  After playing around with the Netduino Plus 2 the project has evolved into something that is probably overkill but I thought was cool and wanted to share :)

 

The unit monitors the door via a magnetic switch.  When the door is opened several things happen:

1. The overhead light is turned on via a high-voltage relay.

2. A webservice is called which sends an MMS to my phone.

3. A timer is activated which will produce and audible alert and antoerh webservice call (MMS message) if the door remains open for a specified period of time.

 

When the door is closed the light is turned off and the alarm timer is stopped.  I've incorporated a 2-line LCD for messages, 2 LEDs (1 for power, 1 for trouble/override mode indication), and some buttons.  Strickly speaking the button count could be reduced but I had them and it was easier to program for single function buttons versus programming for short/long press or some time of menuing system (such as many printers use).

 

Anyway attached is a picture Attached File  doormanager.JPG   28.35KB   36 downloads, a wiring diagram Attached File  Netduino_Door_Manager.png   30.99KB   34 downloads, and the C# project Attached File  DoorManager.zip   8.78KB   38 downloads.  Feel free to make fun of my neophitic soldering/wiring job, I'm not very experienced in that art :)

 

My next step is to add a water level sensor and battery backup but that will have to wait for another day.

 

 

Netduino Door Alarm

- Turns light on automatically when door is opened and off when door is closed
- MMS alert when door is opened (via web service call)
- Audible alert and additional MMS alert if door is left open longer than the timer
- Alerts repeat at specified intervals if door continues to be left open
- Button 1: Manual light on/off override

- Button 2: Return to automaticaly light control

- Button 3: Review error messages (mainly for network connections)

- Button 4: Turn on/off door sensor (allows for prolonged door open without alerts)
 

Parts list:

Netduino Plus 2 - $59.95
http://www.amazon.co...uct/B009QOYK2U/

Magnetic Switch - $4.60
http://www.amazon.co...uct/B0009SUF08/

Amprobe RC-120S Remcon Relay Switch - $39.33
http://www.amazon.co...uct/B0029XOKH0/

9V Power Adapter - $6.45
http://www.amazon.co...uct/B003XZSZWO/

Parallax 2x16 Serial LCD w/Speaker - $29.99
http://www.parallax....50/default.aspx

5VDC/1A SPDT Micro Relay - $4.69
http://www.radioshac...oductId=2062480

1N4004 Micro 1-Amp Rectifier Diode - $1.49
http://www.radioshac...oductId=2036270

MPS2222A Transistor - $1.49
http://www.radioshac...oductId=2062608

3 1K-Ohm Resistors - $1.49
http://www.radioshac...oductId=2062323

2 LEDs, 4 Momentary Switches, misc screws, project box

Optional:
Protoshield Kit for Ardiono - $9.90
http://www.seeedstud...uino-p-318.html
This kit includes a prototyping circuit board, connectors, resistors, LEDs (not project box mountable), switches (not project box mountable) and other misc parts that can help an initiate get started.
 


  • FourT2 likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.