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 ...

Get The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor's Guide, 2nd Edition 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.