I need PIC programing source code for "relay base security system". I'm using a Pic18F46J50 with a sim900 GSM module on it.
System needs to arm/disarm via cellphone.
output will give high voltage for indication LED to sigh
You need NC input (have code attached so you can see). Each Input (portB) connect to output (portD) relay.
Here comes the fun part.
First time the condition change on a input and the relay is triggered then next step would happen:
Count of 10 sec delay,
SMS send notifying system "alarm and which input"
A Output relay should be triggered with a 3min timer on it for a siren
A second relay should be trigger for a strobe and this relay will stay energized till alarm is deactivated.
When 10 sec is depleted, the relay matching that input will trigger for 10sec,
(Pause and wait for movement)
IF any other input trigger from this stage should be trigger the output relay will trigger for 10 sec instantaneously .
Each time a relay is trigger a SMS must be send with number of relay
When the same relay is trigger for the 3x time a 30 sec trigger should commence (this is optional and)
At any stage this system can be deactivated by sending SMS.
I also need a PIN where a receiver (normal remote receiver with relay on can be connected on) NO/NC (dry contact relay on receiver) doesn't matter but that pins should allow me to to arm and disarm using a remote and receiver
The a another input pin that over right everything (case tamper switch) when case is open when system is armed all relay will trigger.
Also when should be able to give its status like "System armed or System disarmed" when a MGS word for example "status" is send to it.
If it to much we can break project up into smaller pices
Send me mgs for more info. Schematic or if you need info
Additional Project Description:
02/22/2013 at 13:28 CET