August 2010
Intermediate to advanced
288 pages
13h 21m
English
The Touch Sensor (shown in Figure 5-2) has a small button on the front. NXT-G blocks can use input from this sensor to tell whether the button is pressed, released, or bumped (bumped means the button was pressed and then quickly released).
Programmers often use the Touch Sensor to detect when the robot has run into something, but you can also use it to control your program. For example, you can have the robot wait until you press the Touch Sensor before it starts moving.

Figure 5-2. The Touch Sensor
You can configure the Touch Sensor as part of the Wait, Loop, or Switch block. The part of the Configuration Panel ...