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.
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.