Detect Obstacles by Bumping into Them
Whisker sensors allow your robot to detect obstacles by bumping into them. When the robot's whisker bumps into an object, it makes an electrical connection between the whisker and a circuit on the breadboard. In this lesson, you will program your robot’s Propeller microcontroller to detect those contacts and make the robot avoid obstacles.
Get the Example Code
- Make sure you have the latest SimpleIDE software, Learn folder, and ActivityBot Library.
- Download the ActivityBot Navigate by Touch code
- Unzip the folder, and copy it to Documents\SimpleIDE\Learn\Examples\ActivityBot Tutorial.
- Follow the links below to continue with the ActivityBot tutorial.