Chapter    9

Touching and Bumping

As I’ve stated, a smart robot is one that fully uses its sensors. One of the simplest, most useful sensors is the Touch sensor, shown in Figure 9-1.

9781430245360_Fig09-01.jpg

Figure 9-1.  LEGO MINDSTORMS NXT Touch Sensor

The Touch sensor allows your robot to “feel” its way around a course and react appropriately. It is very basic—it’s either on or off, depending on the state of the Push button. The Touch sensor provides a hole for an axle in the Push button—giving users more options for incorporating the sensor into their designs.

The Touch Sensor

The Touch sensor reports its status to the NXT as one of three states: Pressed, Released, ...

Get Winning LEGO MINDSTORMS Programming now with O’Reilly online learning.

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