I am working on a RC car that can be controlled via phone with the DTMF decoder and i have decided to add a distance measuring system to prevent me from bumping into obstacles
I have bought the HC-SR04 ultrasonic sensors and I really don't understand how to work with them or how to code them since i am working with the AT89c5131 processor on a developers board since they didn't allow me to use an arduino and there for i cannot use the pulse in function, let alone that I don't know how to work with the sensor at all
can anyone explain to me how to measure distance with it? (i.e. move to other direction when there is something 50cm away from the sensor)
and how am i supposed to code it?
can anyone give me an example code?
I have bought the HC-SR04 ultrasonic sensors and I really don't understand how to work with them or how to code them since i am working with the AT89c5131 processor on a developers board since they didn't allow me to use an arduino and there for i cannot use the pulse in function, let alone that I don't know how to work with the sensor at all
can anyone explain to me how to measure distance with it? (i.e. move to other direction when there is something 50cm away from the sensor)
and how am i supposed to code it?
can anyone give me an example code?