O'Reilly logo

Programming Lego Mindstorms NXT by Owen Bishop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Using the Touch Sensor and the NXT Buttons

Introduction

The touch sensor is a typical pushbutton that can be pressed or not pressed. Usually, we build a simple lever system to touch against the button. An example is the system used in TriBot (see Figure 7.1). The arrangement is used to detect when the robot has bumped into something or when there is an object ahead that is ready for grabbing. These are the two main uses of the touch sensor.

Figure 7.1. The bumper mechanism of Tribot consists of a freely swinging paddle that rests against the button of the touch sensor.

The touch sensor is used with any one of four programming blocks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required