Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

initial design

The next step in designing a program is to think about the major tasks the robot has to perform and decide how you can solve them. For one thing, the TriBot should travel next to the wall while staying a short distance away from it. You can use the Ultrasonic Sensor to tell how far the TriBot is from the wall and use Move blocks with different steering settings to move toward or away from the wall.

Because the wall will be next to the TriBot as it’s moving, you need to mount the Ultrasonic Sensor pointing to the side (instead of to the front). Follow the building instructions in alternate placement for the ultrasonic sensor in alternate placement for the ultrasonic sensor to mount the sensor so that it points to the side, as shown ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata