- #1
neilmartin
- 1
- 0
I'm using a freescale DEMO9S12XDT512 microcontroller as a control system for an airship. The airship uses ultrasonic transducers to detect obstacles so it can then avoid them, to do this I want to send out a pulse from the transmitter sensor and measure the time that it takes to return to the reciever so I can work out the distance from an obstacle. Does anyone have any tips on how to do this as I have can't seem to figure it out, I am using codewarrior development studio to write the program.