Door controller and proximity switch detection.

Dependencies:   mbed-rtos mbed VodafoneUSBModem_bleedingedge

This program takes in a digital input - which is a reed switch for a door - and an output to a relay. The door is open with a simple 'text' to the modem on the USB bus (i used k3770 vodafone dongle).

The door will send an alarm message to your nominated numbers at the start of the program if the door is open without a command being sent.

Very simple - and just meant as a demonstration of how to incorporate GSM/3G functionality to a evice.

Files at this revision

API Documentation at this revision

Comitter:
nherriot
Date:
Thu Sep 20 08:03:11 2012 +0000
Parent:
11:769f2b28b236
Child:
13:4afa5a86f05b
Commit message:
some changes to allow debug mode to work properly

Changed in this revision

VodafoneUSBModem_bleedingedge.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/VodafoneUSBModem_bleedingedge.lib	Wed Sep 19 09:36:57 2012 +0000
+++ b/VodafoneUSBModem_bleedingedge.lib	Thu Sep 20 08:03:11 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/donatien/code/VodafoneUSBModem_bleedingedge/#45c3b5cb0234
+http://mbed.org/users/donatien/code/VodafoneUSBModem_bleedingedge/#d19354028042
--- a/main.cpp	Wed Sep 19 09:36:57 2012 +0000
+++ b/main.cpp	Thu Sep 20 08:03:11 2012 +0000
@@ -167,8 +167,9 @@
   Ticker t;
   t.attach(tick,1);
   DBG_INIT();
+  DBG_SET_SPEED(115200);
 
-  Thread testTask(test, NULL, osPriorityNormal, 1024*6);
+  Thread testTask(test, NULL, osPriorityNormal, 1024*5);
   // keepAlive(NULL);