SRF08 to take distance readings and determines to make the Boe-Bot go left, rig
Martin Nelisse
Posts: 2
I would like·to use my SRF08 to take distance readings and·determines to make the Boe-Bot go left,·right or turn. I compared different codes·hoping to·try make one for my Boe-Bot by·reading·the N&V column Robot eyes, the SRF08 demo code, the SRF04 sonic sight code and the S3 SRF04 Distance Decision code from Crustcrawler. But it seem i cant make cheese of it. For instance the SRF04 uses Get_Distance and RawDist
GOSUB Get_Distance
··· IF (rawDist < TooClose) THEN
··· Backup
But how does this work for the SRF08?
The·demo SRF08 demo code works fine and have no problems with connections or what so ever.
I`m a newbe and just finished the Robotis with the Boe-Bot book so i hope some can help me out with a code or something.
Greetings.
Martin
The Netherlands.
GOSUB Get_Distance
··· IF (rawDist < TooClose) THEN
··· Backup
But how does this work for the SRF08?
The·demo SRF08 demo code works fine and have no problems with connections or what so ever.
I`m a newbe and just finished the Robotis with the Boe-Bot book so i hope some can help me out with a code or something.
Greetings.
Martin
The Netherlands.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax