hy,, i doing my project with hc sr04 ultrasonic sensors..
i check singnal with oscilloscope there nothing..
how do i read the singnal with pic16f877a,,
tq
captenusop WROTE://************************************
i have made a pulse with 10u sec
void pulse ( void )
{ RB1=1;
__delay_us(10);
RB1=0;
__delay_us(10);
}
captenusop WROTE:so i have modified to
void pulse ( void )// L-H-L
{ RB1=0;
__delay_us(10);
RB1=1;
__delay_us(10);
RB1=0;
__delay_us(10);
}
but stil not working
pinMode(pingPin, OUTPUT);
digitalWrite(pingPin, LOW);
delayMicroseconds(2);
digitalWrite(pingPin, HIGH);
delayMicroseconds(10);
digitalWrite(pingPin, LOW);
Users browsing this forum: No registered users and 1 guest