Book description
The Art of LEGO MINDSTORMS NXT-G Programming teaches you how to create powerful programs using the LEGO MINDSTORMS NXT programming language, NXT-G. You'll learn how to program a basic robot to perform tasks such as line following, maze navigation, and object detection and how to combine programming elements (known as blocks) to create sophisticated programs.
Table of contents
-
The Art of LEGO® MINDSTORMS® NXT-G Programming
- acknowledgments
- introduction
- 1. LEGO and robots: a great combination
- 2. the NXT-G programming environment
-
3. the test robot
- right-side motor
- left-side motor
- chassis
- caster wheel
- attach the caster wheel
- add the NXT
- touch sensor bumper
- attach the bumper to the chassis
- ultrasonic sensor
- sound sensor
- color sensor or light sensor
- attach the wires
- the final beam
- alternate placement for the color sensor
- alternate placement for the ultrasonic sensor
- conclusion
- 4. motion
- 5. sensors
- 6. program flow
- 7. the WallFollower program: navigating a maze
- 8. data wires
-
9. data wires and the switch block
- the switch block’s value option
- rewriting the GentleStop program
- advantages of using a sensor block
- passing data into a switch block
- passing data out of a switch block
- matching more than two values
- using numbers with the NXT-G 2.0 switch block
- fixing the SoundMachine program’s volume display
- conclusion
- 10. data wires and the loop block
- 11. variables
- 12. the NXT buttons and the display block
- 13. my blocks
- 14. math and logic
- 15. files
- 16. data logging
- 17. using multiple sequence beams
- 18. the LineFollower program
- A. NXT websites
- B. moving from NXT-G 1.0/1.1 to NXT-G 2.0
- Index
- About the Author
- updates
Product information
- Title: The Art of LEGO MINDSTORMS NXT-G Programming
- Author(s):
- Release date: August 2010
- Publisher(s): No Starch Press
- ISBN: 9781593272180
You might also like
book
Lego Mindstorms NXT-G Programming Guide, Second Edition
James Kelly's LEGO MINDSTORMS NXT-G Programming Guide, Second Edition is a fountain of wisdom and ideas …
book
Programming Lego Mindstorms NXT
Teach your robot new tricks! With this projects-based approach you can program your Mindstorms NXT robot …
book
Building Robots with LEGO Mindstorms NXT
The Ultimate Tool for MINDSTORMS® Maniacs The new MINDSTORMS kit has been updated to include a …
book
The Unofficial LEGO MINDSTORMS NXT Inventor's Guide
The LEGO® MINDSTORMS® NXT set includes a variety of powerful electronic parts (motors, sensors, and the …