Programming Lego Mindstorms NXT
Teach your robot new tricks! With this projects-based approach you can program your Mindstorms NXT robot to solve a maze, build a house, run an obstacle course, and many other activities. Along the way you will learn the basics of programming structures and techniques using NXT-G and Microsoft VPL...
Main Author: | |
---|---|
Format: | eBook |
Language: | Inglés |
Published: |
Burlington, MA :
Syngress Publishing
c2008.
|
Edition: | 1st edition |
Subjects: | |
See on Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627494906719 |
Table of Contents:
- Front Cover; Programming Lego Mindstorms NXT; Copyright Page; Author; Contents; Chapter 1: Robots and Programs; Introduction; What is a Program?; Designing a Robot; Specify the Robot's Environment; Intelligent or Smart?; Summary; Chapter 2: About NXT-G Programs; Introduction; Creating a Program; First Steps; Out of Memory?; Coming for a Spin?; Tying it Together; Chapter 3: Data; Introduction; Sources of Data; Variables; A Variable Has a Name, a Type, and a Value; Arithmetic Operators; Logical Operators; Flag Variables; Chapter 4: Loops; Introduction; Outside Events; Time Limit
- Counting the LoopsDance Some More; Use Loops to Make Actions Repeat; Another Way to Use the Loop Counter; Logical Conclusions; Use a Loop (or a Wait Block) to Wait for an Event to Occur; Nested Loops; The Wait Block; Chapter 5: Switches and Other Topics; The Switch Block; Switch Blocks Direct Execution Along Alternative Pathways; Simultaneous Processing; Diagnostic Programming; Chapter 6: Using the Light Sensor; Introduction; Light Sensor Directed Downward; Lined in; Line Follower; Edge Follower; Light Sensor Directed Upward; Housefly; Light Sensor Directed Forward; Lightfinder1; LightFinder2
- Almost an InterruptLightFinder3; LightFinder4; Summary; Chapter 7: Using the Touch Sensor and the NXT Buttons; Introduction; Waiting for Contact; Bumper; Waiting for Input; Scanning the NXT Buttons; Entering Numbers; Chapter 8: Using the Ultrasonic Sensor; Introduction; Avoidance Routine for Alpha Rex; Ultrasonic Search; Chapter 9: Sounds Received and Emitted; Introduction; Start and Stop; Start, Stop, and Turn; One Clap or Two?; Playing a Tune (with a Little Dance); Choreography; Song Snippets; Dance Snippets; Chapter 10: The Magnetic Compass Sensor; Introduction
- Heading in the Right DirectionPolygon; Circle; Chapter 11: More Mathematics; Introduction; Floating Point Arithmetic; Calculating Cosines; Calculating Sines; Square Root; Factorials; Combinations; X modulo Y; Modulo Counting; Chapter 12: Navigation; Introduction; Distance Traveled; Magnetic Compass; Edge Follower 1; No-go Response to a Line; Steering Alpha Rex; Marching Orders; Rex On Line; Rex On Edge; Pathfinder; Cosine Rule; Chapter 13: Games Robots Play; Introduction; Maze Runner-Version 1; Maze Runner-Version 2; Maze Runner-Version 3; Maze Learner; Scissors, Paper, Stone
- Signalling by SemaphoreMagic; The Program; Chapter 14: Databases for Robots; Introduction; Lookup Table for Weekdays; Writable Lookup Table; Another Way of Using a Lookup Table; Reading Data from a File Access Block; Acknowledgements; Index