pratikkamble1993
Newbie level 1
- Joined
- Mar 9, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,290
i am doing project with ultrasonic module hc sr-04,and pic 18f4550,please help me for code.i need to trigger sensot with 10 microsecond pulse,then sensor sends 8 bursts of 40khz...they are reflrcted back from object....if obstacle is detected we get 150microsecond to 25ms pulse at echo pin of sensor else if no obstacle detected we get 38ms pulse,so iwant programming using this things in c language.I have to show that obstacle detected anf distance at which it is detected on lcd,16x2.for distance mesurement using formula distance
distance(in cm)=pulse width(in microsec)/58
please send me c code for this, i tried alot but its not working properly
distance(in cm)=pulse width(in microsec)/58
please send me c code for this, i tried alot but its not working properly