Lego Mindstorms NXT

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description Script error: No such module "other uses". Template:Multiple issues

Logo, with the word "mindstorms" on an orange background
Logo of Lego Mindstorms NXT
A small robot on a floor
"Golf bot", a robot built with the NXT set

Lego Mindstorms NXT is a programmable robotics kit released by Lego on August 2, 2006.[1][2]Template:Primary source inline It replaced the Robotics Invention System, the first-generation Lego Mindstorms kit. The base kit ships in two versions: the retail version[3] and the education base set.[4] It comes with the NXT-G programming software or the optional LabVIEW for Lego Mindstorms.[5] A variety of unofficial languages exist, such as NXC, NBC, leJOS NXJ, and RobotC. A second-generation set, Lego Mindstorms NXT 2.0, was released on August 1, 2009, with a color sensor and other upgrades. The third-generation EV3 was released in September 2013.

NXT Intelligent Brick

Parts of the kit
Lego Mindstorms NXT Kit
A humanoid robot
Robot built from the kit

The kit's main component is the NXT Intelligent Brick computer, which can accept input from up to four sensors and control up to three motors with a modified version of RJ12 cables (similar to, but incompatible with, RJ11 phone lines). The plastic pin to hold the cable in the socket is moved slightly to the right. The brick has a 100×64 pixel monochrome LCD and four buttons that can navigate a user interface with hierarchical menus. It has a 32-bit ARM7TDMI-core Atmel AT91SAM7S256 microcontroller with 256 KB of FLASH memory and 64 KB of RAM, an 8-bit Atmel AVR ATmega48 microcontroller, and Bluetooth support. The kit has a speaker, and can play sound files at sampling rates up to 8 kHz. Power is supplied by 6 AA batteries (1.5 V each) in the consumer version of the kit, and a rechargeable Li-Ion battery in the educational version. The brick is compatible with sensors and motors of its successor Lego Mindstorms EV3.[6]

Development kits

Lego has released open source firmware for the NXT Intelligent Brick and schematics for all hardware components.[7]

Several developer kits are available with documentation for the NXT:

  • Software Developer Kit (SDK), with information on host USB drivers, executable file format, and bytecode reference
  • Hardware Developer Kit (HDK), with documentation and schematics for the NXT brick and sensors
  • Bluetooth Developer Kit (BDK), documenting protocols used for Bluetooth communications

Programming

Script error: No such module "labelled list hatnote". Simple programs can be created using the menu on the NXT Intelligent Brick. More complicated programs and sound files can be downloaded with a USB port or Bluetooth. Files can be copied wirelessly between two NXT bricks, and some mobile phones can be used as a remote control. Up to three NXT bricks can communicate simultaneously via Bluetooth when user-created programs are run.

The kit's retail version includes software for writing programs that run on Windows and Mac OS personal computers. The software, based on National Instruments LabVIEW, provides a visual programming language for writing simple programs and downloading them to the NXT Brick; instead of requiring users to write lines of code, they can use flowchart-like blocks to design their program.

Template:Glossary Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Template:Defn Template:Term Ch is a C/C++ interpreter running C/C++ code to control Lego NXT or EV3. No firmware upload/download or compilation is needed. A C/C++ code running in Ch can control a Lego NXT, EV3, or multiple of NXT/EV3.[8] Template:Glossary end

Script error: No such module "anchor".Sensors and actuators

The Lego Mindstorms NXT base kit includes:[9]

  • Three servo motors with built-in reduction gear assemblies and internal optical rotary encoders which sense their rotations within one degree of accuracy.[10]
  • A touch sensor detects whether it is pressed, has been bumped, or is released. The orange enter button and the gray right and left NXT buttons can be programmed as touch sensors. In the NXT-G programming software, a value of 0 is given when it is not pressed and a value of 1 is given if it is pressed.[11]
  • A light sensor detects the light level in one direction, and includes an LED for illuminating an object. It can sense reflected light values with the built-in red LED, or ambient light. In the NXT-G programming software, it senses light on a scale of 0 to 100; 100 is very bright, and 0 is dark.[12] If calibrated, the sensor can be used as a distance sensor.
  • A sound sensor measures volume on a scale of 0 to 100; 100 is very loud, and 0 is silent.
  • An ultrasonic sensor can measure the distance from the sensor to something it is facing and detect movement. It can show distance in centimeters and inches. The maximum distance it can measure is Template:Convert, with a precision of Template:Convert. The sensor sends ultrasonic sound waves that bounce off an object ahead of it and then back, and senses the time it took.[13]

Other parts may be bought separately.[14] Third-party companies manufacture sensors such as a compass, gyroscope, infrared tracker, RFID reader and accelerometer sensors sold by Lego. The temperature sensor can measure in Celsius or Fahrenheit.

Connector

Sensors are connected to the NXT brick with a six-position modular connector with analog and digital interfaces. The analog interface is backward-compatible (using an adapter) with the older Robotics Invention System. The digital interface is capable of I2C and RS-485 communication.

NXT sensor interface pinout
Pin Name Function Color Pin number
1 ANALOG Analog interface, +9V supply Pin 1 – ANA
White
File:Rj25 connector.jpg
2 GND Ground Pin 2 – GND
Black
3 GND Ground Pin 3 – GND
Red
4 IPOWERA +4.3V supply Pin 4 – IPOWERA
Green
5 DIGIAI0 I2C clock (SCL), RS-485 B Pin 5 – DIGIAI0
Yellow
6 DIGIAI1 I2C data (SDA), RS-485 A Pin 6 – DIGIAI1
Blue

NXT 2.0

Script error: No such module "For". Lego Mindstorms NXT 2.0 is the second set in the Lego Mindstorms series, introduced on August 5, 2009, at the Lego Shop in the U.S. The set contains 619 pieces, including a sensor that can detect colors. It was followed by the Lego Mindstorms EV3.[15]

Script error: No such module "anchor".Features

thumb

  • A sound editor for recording a sound and programming the NXT brick to play it.
  • An image editor for downloading an image to the NXT brick to appear on the screen.

Script error: No such module "anchor".NXT intelligent brick

  • 32-bit Atmel AT91SAM7S256 main microcontroller (256 KB flash memory, 64 KB RAM)
  • 8-bit Atmel ATmega48 microcontroller @ 4 MHz (4 KB flash memory, 512 Bytes RAM)
  • 100×64 pixel LCD screen
  • Four RJ12 input ports (ports 1–4)
  • Three RJ12 output ports (ports A-C)
  • USB port
  • Bluetooth Class II V2.0
  • Loudspeaker – 8 kHz sound quality, 8-bit resolution, 2–16 kHz sample rate
  • Four push buttons to navigate menus and use in programs
  • Powered by six AA batteries or the NXT rechargeable battery

See also

References

Template:Reflist

External links

Template:Sister project

Script error: No such module "Navbox". Template:Robot kits

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. Script error: No such module "citation/CS1".
  14. Script error: No such module "citation/CS1".
  15. Script error: No such module "citation/CS1".