Navigate by Touch

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.
 

 

Before You Start: