O'Reilly logo

The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor's Guide, 2nd Edition by Laurens Valk, David J. Perdue

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 13. Table-Bot: An Edge-Avoiding Robot

In this chapter, you’ll build and program Table-Bot, another variation of Inventor-Bot. Table-Bot (Figure 13-1) senses the edge of a table so that it can drive around on the table without falling off. To accomplish this feat, Table-Bot has two antennae, each consisting of a touch sensor and an extension constructed from beams. When the robot approaches the edge of a tabletop, one of the touch sensors becomes pressed. Table-Bot then knows not only that it should back up but also the direction in which it should turn in order to continue driving.

Table-Bot can drive on a table and detect the edges so that it doesn’t fall off.

Figure 13-1. Table-Bot can drive on a table and detect the ...

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