LEGO MINDSTORMS NXT-G Programming Guide by James Floyd Kelly

Posted by

By James Floyd Kelly

James Kelly’s LEGO MINDSTORMS NXT-G Programming consultant, moment Edition is a fountain of knowledge and ideas for these seeking to grasp the artwork of programming LEGO’s MINDSTORMS NXT robotics kits. This moment version is fully-updated to hide all of the most recent good points and components within the NXT 2.0 sequence. it's also routines on the finish of every bankruptcy and different content material feedback from educators and different readers of the 1st edition.

LEGO MINDSTORMS NXT-G Programming advisor, second Edition makes a speciality of the NXT-G programming language. Readers 10-and-up learn how to practice NXT-G to real-life difficulties corresponding to relocating and turning, finding gadgets established upon their colour, making judgements, and masses extra. excellent for in case you are new to programming, the e-book covers the language, the underlying arithmetic, and explains tips on how to calibrate and alter robots for top execution in their programming.

  • Provides programming thoughts and easy-to-follow examples for every and each programming block
  • Includes homework-style workouts to be used through educators
  • Gives transparent directions on the right way to construct a try robotic to be used in working the instance courses

What you’ll learn

  • Understand the fundamentals of laptop and robot programming
  • Easily software your robotic utilizing the NXT-G 1.0 and 2.0 visible programming languages
  • Learn real-world suggestions for relocating, ready, determining, and masses extra.
  • Get conversant in new comparable to the colour sensor integrated within the NXT 2.0 equipment
  • Control your robotic manually from a handheld remote control gadget
  • Learn simple math ideas that might make you a greater programmer

Who this e-book is for

This e-book is for individuals 10-years-old and up who're new to programming, or who're new to the NXT-G programming language. The publication additionally appeals to educators who use NXT-G as a car for instructing approximately robotics and programming ideas.

Table of Contents

  1. Robots and Programs 
  2. Program Structure
  3. Hello global!
  4. Get Movin’
  5.  Record and Playback 
  6. Make a few Noise! 
  7. Wired! 
  8. True or False? 
  9. Feedback 
  10. Wait for It! 
  11. Round and Round  
  12. Decisions, Decisions 
  13. Stop It! 
  14. Pick a Card, Any Card 
  15. Apples and Oranges 
  16. Inside or Out?  
  17. Yes? No? Maybe?  
  18. Title = something You Like  
  19. Basic Text  
  20. Basic Math 
  21. Staying Alive 
  22. Your personal submitting Cabinet  
  23. Calibration  
  24. Motoring  
  25. Messages 
  26. My Block Is Your Block

Show description

Read Online or Download LEGO MINDSTORMS NXT-G Programming Guide PDF

Similar robotics & automation books

Robot Grippers

On account that robot prehension is generic in all sectors of producing undefined, this booklet fills the necessity for a accomplished, up to date remedy of the subject. As such, this can be the 1st textual content to deal with either builders and clients, dealing because it does with the functionality, layout and use of commercial robotic grippers.

Automatic Generation of Computer Animation: Using AI for Movie Animation

We're either lovers of staring at lively tales. each night, prior to or after d- ner, we consistently take a seat in entrance of the tv and watch the animation software, that's initially produced and proven for kids. we discover ourselves turning into more youthful whereas immerged within the attention-grabbing plot of the animation: how the princess is first killed after which rescued, how the little rat defeats the large cat, and so forth.

Adaptive systems in control and signal processing : proceedings

This moment IFAC workshop discusses the range and purposes of adaptive platforms up to speed and sign processing. some of the methods to adaptive regulate structures are coated and their balance and suppleness analyzed. the quantity additionally comprises papers taken from poster classes to offer a concise and entire overview/treatment of this more and more very important box.

Control-oriented modelling and identification : theory and practice

This complete assortment covers the cutting-edge in control-oriented modelling and identity innovations. With contributions from top researchers within the topic, it covers the most tools and instruments on hand to strengthen complicated mathematical types appropriate for regulate method layout, together with an outline of the issues that may come up in the course of the layout technique.

Extra info for LEGO MINDSTORMS NXT-G Programming Guide

Example text

Text. 20 CHAPTER 3 ■ HELLO WORLD! The WAIT block does exactly what it says—it waits. As you can see in Figure 3-6, there are many different types of WAIT blocks, but the one I’m interested in right now is the WAIT block that allows me to specify how many seconds to wait. That would be the TIME WAIT block (the block that is circled on the fly-out menu in Figure 3-6). 0 version of NXT-G, you won’t see the WAIT icon to the far right in Figure 3-6. 0 Retail set. Select the icon for the WAIT TIME block, and place it immediately after the DISPLAY block.

To do this, I’ll use something called a SENSOR block to monitor the Light sensor. The SENSOR block will be programmed to look for the color black. Finally, I want SPOT to stop when the SENSOR block detects the color black. For this, I can use another MOVE block that tells the motors to stop spinning. You will use these blocks and many more to properly program your robot to follow your instructions. This book will teach you about all the different NXT-G blocks, so you’ll know which ones to use when converting your pseudo-code to an NXT-G program.

Figure 2-1. A collection of NXT-G blocks that make up a program See those three squares located in the center of the NXT-G software screen in Figure 2-1? Those are blocks! The block on the left (with gears) is the MOVE block. The block in the middle (with the little speaker icon) is the SOUND block. And the block on the right is the SENSOR block—its icon tells me that it’s the Light sensor block. Don’t worry, you’ll learn about all these blocks and more in future chapters (the SOUND block is covered in chapter 6 and the sensors are covered in Chapter 9), but for now I just wanted you to understand what a block is and what it looks like.

Download PDF sample

Rated 4.54 of 5 – based on 11 votes