Electronics › Electronics › help in ultrasonic circuit › thanks A M Bhatt
April 20, 2015 at 5:41 am
#12808
narayan gour
Participant
A M sir i read fully these sensors manual and according to that i have written code…
basic principle what i have read is ..
first i will trigger on trig pin for 10 microsec than bcoz of that sensor will automatically make echo pin high
as soon as echo pin is high my timer will start and wait upto next echo signal …when echo pin comes low within 38ms ..timer will stop nd according to that time value i m going to calculate distance ..
bt dificulty is its is not giving proper output i mean if i put my hand in front of sensor at distance of 30cm ..in programm it is giving just double 60cm…which is totally wrong …so plz give me proper solution .how i can debugg it..?