159Views2Replies

Author Options:

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

Tags:hmm

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
theexternaldisk
theexternaldisk

7 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
rickharris
rickharris

7 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