Mindstorm-NxT User Guide
Mindstorm-NxT User Guide
LEGO MINDSTORMS
® ®
User Guide
WELCOME TO THE WORLD OF
LEGO® MINDSTORMS®
Congratulations on your new LEGO® MINDSTORMS® NXT robotics tool set. You
now have the power to build and program robots that do what you want!
Smart technologies
Your MINDSTORMS NXT set features the latest in robotic technology: an
advanced 32-bit programmable microcontroller; icon-based drag and drop
programming software and interactive challenges; smart sensors and Inter-
active Servo Motors; wireless Bluetooth and USB connection. In fact all the
smart technologies you need to create your dream robot.
MINDSTORMS.com
You are now a part of the worldwide LEGO MINDSTORMS community. Log on
to MINDSTORMS.com and get more robotic challenges. Download programs,
sound effects and other cool stuff. Share your inventions and exchange tips
and tricks with other MINDSTORMS users. www.MINDSTORMS.com is your new
robotic hot spot.
2
CONTENTS
INTRODUCTION
Build. Program. Go! ................................................ 4
NXT TECHNOLOGY
NXT technology overview ....................................... 6
Connecting the NXT technology .............................. 8
About the NXT......................................................... 10
Installing batteries in your NXT.............................. 12
NXT main menu....................................................... 13
NXT icons ................................................................ 20
Touch Sensor .......................................................... 22
Sound Sensor ......................................................... 23
Light Sensor ........................................................... 24
Ultrasonic Sensor ................................................... 25
Interactive Servo Motors ........................................ 26
Using Bluetooth ..................................................... 28
SOFTWARE
System requirements ............................................. 38
Installing the software........................................... 38
Your first program ................................................. 40
Software user interface ......................................... 42
The Robo Center ..................................................... 44
The programming palette....................................... 45
The configuration panel ......................................... 47
The Controller ........................................................ 47
LEGO BRICKS
Element overview ................................................... 48
Building instructions .............................................. 49
Test pad ................................................................. 72
USEFUL INFORMATION
Troubleshooting ..................................................... 74
3
INTRODUCTION
Build
Build a robot. You can find building
instructions in this User Guide, in the
software or at www.MINDSTORMS.com.
Or you can use your imagination to
build your own unique robot.
Program
Program your robot to do what you
want. Use the LEGO® MINDSTORMS® NXT
Software to make a program. Download
the program to the NXT by using the
USB cable or the wireless Bluetooth
connection.
4
INTRODUCTION
Quick Start
Use the Quick Start kit to get your first
MINDSTORMS experience. In the Quick
Start kit you will find everything you
need to get off to a great start. It will
only take you a few minutes to create
your first MINDSTORMS robot, test it,
and get a fun reaction.
Go!
Run the program and watch your robot
come to life.
5
NXT TECHNOLOGY
Touch Sensor
Enables the robot to feel and react to
its environment.
Sound Sensor
Enables the robot to hear and react to
sound.
Light Sensor
Enables the robot to detect light and
color.
6
NXT TECHNOLOGY
Input ports
Port 1: Touch Sensor
Port 2: Sound Sensor
Port 3: Light Sensor
Port 4: Ultrasonic Sensor
Output ports
Ultrasonic Sensor Port A: Motor used for an extra function
Port B: Motor for movement
Enables the robot to see, measure
distance to an object, and react to Port C: Motor for movement
movement.
7
NXT TECHNOLOGY
C B A Connecting motors
To connect a motor to the NXT, use one of the black 6-wire
cables. Attach one end of the cable to the motor and the other to
one of the NXT’s output ports (A, B, or C).
1 2 3 4 Connecting sensors
To connect a sensor to the NXT, use one of the black 6-wire
cables. Attach one end of the cable to the sensor and the other
to one of the NXT’s input ports (1, 2, 3, or 4).
8
NXT TECHNOLOGY
3 4
9
NXT TECHNOLOGY
Motors ports
The NXT has three output ports for attaching
motors. To make the motor work, the motors
need to be attached to port A, B or C
Bluetooth icon
The Bluetooth icon shows the current status of
any wireless Bluetooth connections. If there is no
Bluetooth icon shown, Bluetooth is OFF.
USB icon
When you connect your NXT to a computer with
a USB cable, a USB icon will be displayed. If you
disconnect the USB cable, the icon will disappear.
Sensor ports
The NXT has four input ports for attaching sen-
sors. The sensors need to be attached to port 1,
2, 3 or 4.
10
NXT TECHNOLOGY
Battery level
The battery icon displays the power level of the
NXT. When battery power is low, the battery icon
will flash on and off.
Technical specifications
• 32-bit ARM7 microcontroller
Running icon • 256 Kbytes FLASH, 64 Kbytes RAM
When your NXT is turned on, the running icon will
spin. If the running icon stops spinning, your NXT • 8-bit AVR microcontroller
has frozen and you will need to reset it (see page • 4 Kbytes FLASH, 512 Byte RAM
74, Troubleshooting.) • Bluetooth wireless communication (Bluetooth Class II
V2.0 compliant)
Loudspeaker • USB full speed port (12 Mbit/s)
Make a program with real sounds and listen to • 4 input ports, 6-wire cable digital platform (One port
them when you run the program. includes a IEC 61158 Type 4/EN 50 170 compliant
expansion port for future use)
• 3 output ports, 6-wire cable digital platform
NXT buttons • 100 x 64 pixel LCD graphical display
Orange button: On/Enter • Loudspeaker - 8 kHz sound quality. Sound channel with
Light grey arrows: Used for moving left and right 8-bit resolution and 2-16 KHz sample rate.
in the NXT menu.
Dark grey button: Clear/Go back • Power source: 6 AA batteries
11
NXT TECHNOLOGY
Battery type
• The NXT requires 6 AA/LR6 batteries to function properly.
• Alkaline batteries are recommended.
• Rechargeable batteries can be used, but the NXT’s power
may be reduced, making the motors turn more slowly.
Important!
• Never mix different types of batteries in the NXT.
• Always remove batteries prior to long-term storage.
• Promptly remove depleted batteries from the NXT.
• Only recharge batteries under adult supervision.
• Never attempt to recharge non-rechargeable batteries.
12
NXT TECHNOLOGY
The My Files submenu will let you see all of the programs you
have made on the NXT or downloaded from your computer.
Software files - programs you NXT files - programs you have Sound files
have downloaded from your made on the NXT
computer
13
NXT TECHNOLOGY
NXT Program
Make the robot go back and forth when its Touch Sensor is pressed.
First, the robot will move forward until the Touch Sensor is pressed,
and then it will move backwards. When its Touch Sensor is pressed
again, the robot will move forward once again. This will continue
indefinitely until you stop the program.
Make sure that your sensors and motors are connected to the right
ports.
1 2 3
Select Forward. Use the arrow buttons Select Touch. Select Backward.
to move through the choices and then
press the orange button (Enter) to
make your selection.
14
NXT TECHNOLOGY
4 5 6
Select Touch again. Now select if you want the program to Now you can run your program.
Loop. This means that the program will Simply select Run!
run again and again until you switch
off the NXT. For our little test, select
Loop.
2.
3.
4.
15
NXT TECHNOLOGY
Try Me
The Try Me submenu lets you test your sensors and motors
in a fun way:
You can always delete these Try Me files again using the
Settings submenu.
16
NXT TECHNOLOGY
View
The View submenu lets you carry out a quick test of your
sensors and motors, observing real-time data from each
unit:
1 2 3
Select the icon of the sensor or motor Select the port that the sensor or mo- The data from the sensor or motor will
you would like to test. You can only get tor is attached to. appear on the display.
readings from one sensor or motor at
a time.
17
NXT TECHNOLOGY
Settings
18
NXT TECHNOLOGY
Bluetooth
19
NXT TECHNOLOGY
Back left Turn left Turn left 2 Empty Backward Backward 5 Forward 5
Back left 2 Tone 2 Tone 1 Back right Back right 2 Turn right
General Icons:
Loop Stop
20
NXT TECHNOLOGY
Port 1 2, 3, 4, A, B, C
Visible On
Searching Connecting
Invisible Off
Turning on Connection?
21
NXT TECHNOLOGY
TOUCH SENSOR
Test it!
Test the Touch Sensor and get a fun reaction.
Connect a Touch Sensor to port 1 of your NXT and
select the Try-Touch program in the Try Me submenu
on the NXT’s display.
22
NXT TECHNOLOGY
SOUND SENSOR
The Sound Sensor makes your robot hear!
The Sound Sensor can measure sound pressure levels up to 90 dB - about the level
of a lawnmower. Sound pressure levels are extremely complicated, so the Sound
Sensor readings on the MINDSTORMS® NXT are displayed in percent (%). To give some
comparative examples: 4-5% is like a silent living room. 5-10% would be the reading
you get from someone talking some distance away. 10-30 % is normal conversation
close to the sensor or music played at a normal level. And you will record readings of Suggestions for use
30-100% from people shouting and music played at high volumes. You can use the Sound Sensor to make
a sound controlled robot. Talk to your
robot and it will answer you back. Clap
your hands and the robot can pick up
Test it!
things and bring them to you.
Test the Sound Sensor’s ability to read
sound volume:
Connect the Sound Sensor to the NXT.
1 2 3
Select the View submenu on the Make some sounds into the Sound Sensor and watch the readings
NXT’s display. Select the Sound displayed on the NXT. Use the sensor to read some sounds around you.
Sensor icon and the port where you How loud do your parents speak? How loud is your front doorbell?
have connected the sensor.
23
NXT TECHNOLOGY
LIGHT SENSOR
The Light Sensor is one of the two sensors that give
your robot vision (the Ultrasonic Sensor is the other).
The Light Sensor enables your robot to distinguish
between light and dark. It can read the light intensity
in a room and measure the light intensity of colored
surfaces.
This is what your eyes see.
Test it!
You can test the Light Sensor in different ways:
Connect the Light Sensor to the NXT.
1 2 3
Select the View submenu on the Hold the Light Sensor up to the different colors on the test pad and see
NXT’s display. Select the Light the different readings.
Sensor icon and the port where you
have connected the sensor.
Select the Try Me submenu on the NXT’s display and test your
Light Sensor. You’ll get a fun reaction.
24
NXT TECHNOLOGY
ULTRASONIC SENSOR
The Ultrasonic Sensor is the other sensor that gives
your robot vision. The Ultrasonic Sensor enables the
robot to see and detect objects. You can also use it to
make your robot avoid obstacles, sense and measure
distance, and detect movement.
The Ultrasonic Sensor uses the same scientific principle as bats: it measures
distance by calculating the time it takes for a sound wave to hit an object and return
– just like an echo.
Large-sized objects with hard surfaces return the best readings. Objects made of
soft fabric or that are curved (like a ball) or are very thin or small can be difficult for
the sensor to detect.
Suggestions for use
Note that two or more Ultrasonic Sensors operating in the same room may interfere You can use the Ultrasonic Sensor in
with each other’s readings. many different ways. Program a robot to
sneak around the house without it
bumping into things. Or make an
advanced burglar alarm robot that reacts
to movement as well as light. Your
Test it! Scorpion robot “stings” if you come to
Test the Ultrasonic Sensor’s ability to measure distance: close.
Connect the Ultrasonic Sensor to the NXT.
Select the View submenu in the NXT display.
1 2 3
Select the Ultrasonic Sensor icon Measure the distance to an object. For example, move your hand closer to
and the port where you’ve con- the sensor and watch the readings change.
nected the sensor.
Select the Try Me submenu on the NXT’s display and test your
Ultrasonic Sensor. You’ll get a fun reaction.
25
NXT TECHNOLOGY
Select the Motor Rotations icon. Now attach a wheel to the motor and measure the rotations as you roll the wheel along the floor.
Select the port where you have
connected the motor.
Select the Try Me submenu on the NXT’s display and test your
motors. You’ll get a fun reaction.
26
NXT TECHNOLOGY
1. The motor
2. Tachometer (Rotation Sensor)
3. Built-in gearing
27
NXT TECHNOLOGY
USING BLUETOOTH
Bluetooth is a technology that makes it If you have a mobile phone with Bluetooth
possible to send and receive data without capability, you can use it to control your
using wires or cables. Using Bluetooth, robot. You might even be able to use it as
you can exchange programs between your an advanced sensor, like a camera sensor.
NXT and other NXTs. Or you can establish Visit www.MINDSTORMS.com/bluetooth, for
a wireless connection between your com- more information on mobile phone require-
puter and your robot and try out programs ments.
instantly − even with your robot on the
other side of the room!
28