Mission briefing
We've covered creating robots using a wheeled/track base and robots that can move using legs. In this chapter, you will be introduced to some of the basics of sensors, particularly sensors that can help you avoid objects by alerting you to them.
Why is it awesome?
Your robot will take quite a beating if it continually runs into walls, or off the edge of a surface. Let's help your robot avoid these so that it looks intelligent.
Your objectives
In this chapter, you will:
Connect the BeagleBone Black to a USB sonar sensor to detect the world around it
Use a servo to change the position of your sensor so that a single sensor can view a large field, eliminating the need for additional sensors
Tip
Downloading the example code and colored images
You can download the example code files and colored images for this Packt book you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to...