Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

atmetga 8535 and door sensor and other sensor

Status
Not open for further replies.

deepakgupta.rf

Member level 4
Joined
Jul 21, 2010
Messages
77
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
jaipur
Activity points
1,820
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 alarmingView attachment controller and door sensor diagram.bmp
 

controller and door sensor diagram.jpg

Here is the formatted resized image

What motion sensor you are using?

Give the details about door sensor and motion sensor..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top