Chapter 9. Modifying the Robot to React to Edges and Lines

This chapter covers techniques that enable your robot to use sensors to gain awareness of its environment. Using reflectance sensors, the robot will gain the ability to follow lines or to avoid falling off the edge of the surface it is on. Information from the sensors is abstracted so that the robot logic has a single consistent interface and can easily be enhanced to support other sensors. The physical mounting of the sensors varies with different platforms: see Chapter 4, Building the Four-Wheeled Mobile Platform if you have the 4WD chassis, Chapter 3, Building the Two-Wheeled Mobile Platform if you have the 2WD chassis.

Hardware Required

Get Make an Arduino-Controlled Robot now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.