Building a GSM Alarm

Circuit Overview

Update:
Arduino version coming soon.(will drastically reduce the total cost)


Material Used:
1 - BasicX24
1 - Lynxmotion Mini-ABB as carrier board for the BX24
1 - PIR Sensor Pyronix KX15ED
1 - Old 5V Samsung Cellphone Charger
1 - 9V Power Supply
2 - 9V batteries
1 - Siemens C35


AT Commands & BX24<->Cellphone Communication:
- You may have heard AT commands when talking about old dial-up modems, since these set of commands were used to control the modem and its connections, in case of serial modems these commands were sent over a serial port.
- The thing that some of you dont know is that today cellphones support and use a set of commands called (AT Commands) that are very alike to their old brothers, you can access them via bluetooth if you phone has a serial protocol service or dial-up service over bluetooth or by cable using a simple hyperterminal like tool.
- In this case i connected 2 ports of a BasicX24 directly to the phones RX-TX, well not directly since BasicX24 is TTL (5V) and the RX-TX pins in the cellphone work better at 3V, i say better because with 5V i were able to communicate with the cellphone but when the connection was made the phone lost all the network signal so with 5V you can only access phone functions memory etc, no sms neither calls. Im not sure if this happens in all the phones but in this case (Siemens C35) it happened, to resolve this problem, a interface was built to downgrade the voltage from 5V to 3V, i used a voltage divider with a 12K and a 18K resistors.

- "Comparison chart of AT+C commands of GSM devices"
- "Siemens Lumberg cell phone special connector Pinout"
- Siemens AT Commands


BasicX24:
- In order to comunicate with the cellphone like i said before, 2 ports were used, these ports were configured to function like RX TX of COM3.
- Another port was used as input to the PIR sensor, that is gona be used to detect movement like those cheap light sensors.

To be Implemented in near future:
- Since this cellphone has 2 pins to use with an external microphone, im thinking on using this to amplify the cellphone microphone in order to be able to listen what is happening in the remote place.


How it Works:
Power:- There is a 9v power supply connected to a pair of 9V batteries, these bats are connected in parallel and are powering the BX24 and PIR sensor. The other power supply is an old 5V Samsung cellphone charger that was dismanteled, i use this one to keep the siemens C35 charged, so if the power goes down i have 400mah(200+200) storaged in batteries for the Microcontroller and PIR Sensor and the cellphone battery for its own, this should be enough to keep the alarm online for a few hours.

Software Logic:
Logic Diagram (im not very good at diagrams)- Click to enlarge

Notes:
- It is really easy to change the alarm mode, for example if you wanted the alarm to call you instead of using sms just change the at command that is sent when the PIR sensor triggers.
- The sms that is sent is an sms storaged in the cellphone memory this way i dont need to send the sms PDU thru the wires, i just order the phone to send that sms to the specified cellphone number :)
- Alot more sensors can be added since we are only using 3 ports of the BX24 and can group them in zones whatever, like all my other work it can be upgraded in something alot more bigger, this is just a good starting point.

Downloads:

Download - BasicX24 Code

Download - Photo1
Download - Photo2
Download - Photo3



Other Work - Home

Pedro Miguel aKa Ap0cN3t 2007
Mail: ap0cn3t@gmail.com