Forum Replies Created
-
AuthorPosts
-
narayan gourParticipant
i have microcontroller board from my …in this borad simple microcontroller require peripheral (reset ckt,crystl oscilator.reisster etc).bt difficulty is this ckt having one more pullup registers are attached on all port…(means by default pullup is there on port 1,2,3 bt again pullup r connected on all port ,0,1,2,3,)..if i want zero or 5v on output …what i need to provide logic in my c code so i will able to get output according to my programing …means if i want high logic on output what i have to give logic in program …thanks and plz rply..
narayan gourParticipanti did these all calculation ….i will send u code if u get some time plz evaluate my code and notify my mistake …give me ur mail id ….mine is…[email protected]
narayan gourParticipantA 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..?
narayan gourParticipanti m doing some programming in embedded c but i m not getting proper output …so if u have 8052 uc interfacing with sr hc04 sensor than plz send me ,…[email protected]
-
AuthorPosts