
davidrefi WROTE:mr.shahrul. i'am still blur... i just wanna connected SK40C(pic 16F877A) to my PIR sensor, so that mean my sensor can work using the interface(code) from MPLAB.
bcoz in ur blog u mix buzzer + pir, so that code make me confused.thx
ZaM WROTE:PIR output pin is digital output same as normal switch, except PIR have delay when trigger.. try this, RB0= PIR output pin
if(RB0=0)
{
do_something;
}
Users browsing this forum: No registered users and 7 guests