deepakgupta.rf
Member level 4
hello sir i use atmega32 and there use codevision avr
and ther i define
PORTA=0xFF;
DDRA=0x00;
and at this port a i directly connect pir sensor of 12 v.there in pir ,i connect 4 pin of it 12v and gnd and two rest pins are c and nc ( relay operation ).and pir gives the 0v to avr when any alert .in simple
in atmega 32 first pin(PINA.1) have 5v when no motions.when any motion pir sensor get then avr show 0 v.after 5 sec it again show 5v when no motions.
PINA.1==1 //intially define
if(PINA.1==0) //this pin get input 0v from pir sensor module
{
start buzzer;
}
and in circuit i connect first pin PINA.1 of avr with pir sensor deirctly.
then avr can have any problem,with this situations.
and ther i define
PORTA=0xFF;
DDRA=0x00;
and at this port a i directly connect pir sensor of 12 v.there in pir ,i connect 4 pin of it 12v and gnd and two rest pins are c and nc ( relay operation ).and pir gives the 0v to avr when any alert .in simple
in atmega 32 first pin(PINA.1) have 5v when no motions.when any motion pir sensor get then avr show 0 v.after 5 sec it again show 5v when no motions.
PINA.1==1 //intially define
if(PINA.1==0) //this pin get input 0v from pir sensor module
{
start buzzer;
}
and in circuit i connect first pin PINA.1 of avr with pir sensor deirctly.
then avr can have any problem,with this situations.