O'Reilly logo

Mastering Arduino by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Autonomous robot–obstacle avoidance and collision detection

If you want to build an autonomous robot, you will need to have some form of obstacle avoidance and collision detection with the logic that tells the robot how to move around obstacles. We showed how to use several obstacle avoidances and collision detection sensors in Chapter 10, Obstacle Avoidance and Collision Detection, but the question may be how we develop logic to go around or avoid objects that are detected.

Before we start to discuss the logic of obstacle avoidance, let's take a look at the BuddyBot robot again:

If you look closely at the "eyes" on the BuddyBot, you may recognize ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required