hello everyone
i made a alarm system for my home. in that use
atmega8535 and door sensor, motion sensor,and vibration sensor.
problem: sometime it make false alarm
how i made it:
i have codevision avr for programmming
controller pina.1 and pina.2 are initially equal to 1(one) and pulled up by 10 k resistor through +5 v dc supply
there i made a function to check();
check()
{
if( pina.1 ==1)
alarm_bit=1;
if(pina.2==1)
alarm_bit=1;
}
///////// main function start here
main()
{
while()
{
if(alarm_bit==1)
then start hooter;
}
}
hardare : there are 2 zone
in 1 zone input for door sensor is gnd supply and its output ==0 goes to controller and reads normal condition means no alarm condition
because gnd i flowing then door are cloesed so contrller gets 0( zero)
and this pulled up also by +5 supply
then any door open then it open and it get +5 dc state alarm start
this is ok working but mine problem it does sometime false alarming while all doors are closed properly
please tell me the how i can make this in industrial or without false alarming
_________________
working at atmega32 nad modem and want to work with rf ,ir .
i am to learn wireless and to make projects realted with that.
i made a alarm system for my home. in that use
atmega8535 and door sensor, motion sensor,and vibration sensor.
problem: sometime it make false alarm
how i made it:
i have codevision avr for programmming
controller pina.1 and pina.2 are initially equal to 1(one) and pulled up by 10 k resistor through +5 v dc supply
there i made a function to check();
check()
{
if( pina.1 ==1)
alarm_bit=1;
if(pina.2==1)
alarm_bit=1;
}
///////// main function start here
main()
{
while()
{
if(alarm_bit==1)
then start hooter;
}
}
hardare : there are 2 zone
in 1 zone input for door sensor is gnd supply and its output ==0 goes to controller and reads normal condition means no alarm condition
because gnd i flowing then door are cloesed so contrller gets 0( zero)
and this pulled up also by +5 supply
then any door open then it open and it get +5 dc state alarm start
this is ok working but mine problem it does sometime false alarming while all doors are closed properly
please tell me the how i can make this in industrial or without false alarming
_________________
working at atmega32 nad modem and want to work with rf ,ir .
i am to learn wireless and to make projects realted with that.