
254 Chapter 14 • Classic Projects
a touch sensor for this, connecting it to a feeler flush with the ground (see Figure
14.5 for a detail).When the feeler in front of the robot drops, you have detected
an edge.
Unless you have a third touch sensor, you are forced to use the light sensor.
It’s time to look back at some of the tricks explained in Chapter 4 and see if you
find something useful.A light sensor can actually emulate a touch sensor:You
have to place movable parts of different colors in front of it, so that when contact
is made, the parts move, and the color of the brick in front of the light sensor
changes.
We kept the edge sensor behind the b