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


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