Scanning obstacles with PING for robot navigation
Hello.
Is there any suggestion (simple code) for using the PING sensor with a standard servo in order to scan various directions for obstacle avoidance ?
I'm interested in combining servo angle with robot direction and obscale detection.
Thank you,
Luca.
Is there any suggestion (simple code) for using the PING sensor with a standard servo in order to scan various directions for obstacle avoidance ?
I'm interested in combining servo angle with robot direction and obscale detection.
Thank you,
Luca.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I had a look to the suggested code, which is one possible implementation. However, I was more interested in linking "directly" Ping mounting servo direction with obstacle distance and robot position (a sort of "simplified" relationship between the Ping detector angle and the obstacle avoidance).
I keep waiting if other suggestion may occur.
Thank you,
Luca.
May I have more details concerning the code used?
Thank you,
Luca.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
- rotating Ping))) pan servo in calibrated angles (brads)
- measuring and storing Ping))) distance with the ANGLE of the distance (brads)
- turning the Boe-bot in calibrated angles (brads)
You could take "go to and find closest object" and change the main logic of the program to "go forward to farthest distance". Instead of scanning for the closest object and finding it's edges and aiming for the center point, find the farthest distance and aim at it.
The "go to and find closest object" program also includes logic for stopping the Boe-bot when it is about 5cm from the target object -- you could change that portion of the code to have the Boe-bot stop and again scan for farthest distance and go there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
I could manage to buid a first program from bits and pieces.
Luca.