Chapter 4. Avoiding Obstacles Using Sensors
You've constructed your biped robot. Now, your robot can move around. But what if you want the robot to sense the outside world, so you don't run into things? In this chapter, you'll discover how to add some sensors to help avoid barriers.
Specifically, you'll learn:
- How to connect Raspberry Pi to an IR (infrared) sensor
- How to connect Raspberry Pi to a USB sonar sensor to detect the world
- How to connect Raspberry Pi and its GPIO to a sonar sensor to detect the world