Ping ultrasonic finder !!!
Tunisiano
Posts: 6
Hi everyone, am working on Ping Ultrasonic finder in my hexcrawler. I got a code which gives the distance of an object from the the Ping ultrasonic finder. Surprisingly, that code works only if the button of the board of education is put in position 1, the window shows "000" if the button is put in position 2. I tried to put that program in a larger code that makes the hexcrawler reacts depending on the distance of the closest object (for example if the distance is less than 20cm, the hexcrawler moves backward, otherwise it moves forward), the hexcrawler doesn't want to move anymore.
Please tell me how can I fix this. I read about the commands used for the Ping finder (PULSIN and PULSOUT), and nothing seems weird about them.
thanks.
Please tell me how can I fix this. I read about the commands used for the Ping finder (PULSIN and PULSOUT), and nothing seems weird about them.
thanks.
Comments
Thank you so much for your reply, I really apreciate that.