132Views2Replies

Author Options:

how to write a program for a burglar alarm using sensor to an ic ? Answered

Tags:hmm

Discussions

0
None
theexternaldisk

5 years ago

I would recomend an arduino
google it
I found some instructions on how to use a PIR sensor
http://www.practicalarduino.com/projects/security-sensors

0
None
rickharris

5 years ago

Much, in fact everything, depends on what controller ic your going to use.

In principle:

Loop:
Check input 1 if input on jump to Alarm
Check input 2 if input on jump to Alarm
... repeat for all inputs

repeat loop

Alarm:

Sound alarm
wait 180 seconds (to allow enough time for alarm to register)
reset alarm (this avoids driving the neighbours nuts)

repeat loop