Lego Mindstorms

From Wikipedia, the free encyclopedia

(Redirected from Robolab)
Jump to: navigation, search
A Lego Mindstorms kit
A Lego Mindstorms kit

Lego Mindstorms is a line of Lego sets combining programmable bricks with electric motors, sensors, Lego bricks, and Lego Technic pieces (such as gears, axles, beams, and pneumatic parts) to build robots and other automated or interactive systems. The first retail version of Lego Mindstorms was released in 1998 and marketed commercially as the Robotics Invention System (RIS). The current version was released in 2006 as Lego Mindstorms NXT.

The original Mindstorms Robotics Invention System kit contained two motors, two touch sensors, and one light sensor. The NXT version has three servo motors and four sensors for touch, light, sound, and distance. Lego Mindstorms may be used to build a model of an embedded system with computer-controlled electromechanical parts. Many kinds of real-life embedded systems, from elevator controllers to industrial robots, may be modelled using Mindstorms.

Mindstorms kits are also sold and used as an educational tool, originally through a partnership between Lego and the MIT Media Laboratory.[1][2] The educational version of the products is called Lego Mindstorms for Schools, and comes with the ROBOLAB GUI-based programming software, developed at Tufts University[3] using the National Instruments LabVIEW as an engine.

Contents

First-generation RCX programmable brick.
First-generation RCX programmable brick.

The first generation of LEGO Mindstorms was built around a brick known as the RCX. It contains a Renesas H8/300 microcontroller as its internal CPU. The brick is programmed by downloading a program (written in one of several available programming languages) from a PC or Mac to the brick's RAM via a special infrared (IR) interface. After the user starts a program, an RCX-enabled Mindstorms creation may function totally on its own, acting on internal and external stimuli according to the programmed instructions. Also, two or more RCX bricks can communicate with each other through the IR interface, enabling inter-brick cooperation or competition. In addition to the IR port, there are three sensor input ports and three motor output ports (also usable for lamps, etc). There is also an LCD that can display the battery level, the status of the input/output ports, which program is selected or running, and other information.

Version 1.0 RCX bricks feature a power adapter jack to allow continuous operation instead of the limited operation time when using batteries. In version 2.0, the power adapter jack was removed. Power adapter-equipped RCX bricks are popular for stationary robotics projects (such as robot arms) or for controlling Lego model trains. In the latter context, the RCX needs to be programmed with Digital Command Control (DCC) software required for automated model train operation.

Lego-supplied Languages:

  • RCX Code (included in the Mindstorms consumer version sold at toystores)
  • ROBOLAB (based on LabVIEW and developed at Tufts University)

Popular Third-party Languages:

The LEGO Camera on its own is technically not a robotic toy; rather, it is a normal webcam (a Logitech Quickcam Web) packaged into a LEGO shell. Being a normal webcam, the LEGO Camera is, unlike most Mindstorms products, not programmable and is only usable connected to a PC or some other device that supports USB webcams.

The LEGO Camera is meant to be used with the included Vision Command software which can also interface with an RCX and thus enables creating robots with "vision". The software is capable of detecting different lightings, motion, and colors. It can also be used with any other software that uses a webcam. The webcam is capable of recording up to 30 frames per second. It also contains a microphone to record sound for videos.

Lego Cybermaster
Lego Cybermaster

Cybermaster was mainly sold in Europe and Australia/New Zealand, but was available for a short time via the Lego Club magazines. It was aimed at a younger audience as an early attempt of merging computer gaming with robotics and LEGO. The Pbrick shares many, especially software, features with the RCX but differs in appearance and technical specifications: 1 output (plus 2 built-in) and 3 sensors.

  • It uses RF (27 MHz R/C band) instead of IR for communication.
  • It has two built-in motors with integrated tachometers and speedos.
  • It is limited to passive sensors (a simple A/D with internal pull-up resistors).
  • The sensors shipped with it are colour coded and have internal resistors in their open state (allowing the Pbrick to sense which sensor is attached to which port).
  • It has a fixed firmware (so it cannot be upgraded or replaced).
  • It has limited RAM for programs and only one program slot.

Despite its obvious limitation it has a number of edges over its 'big brother', the RCX.

  • The RF link has greater range and is omnidirectional.
  • The built-in tacho and speed sensors on the internal motors provides the same function as the external rotation sensor to the RCX, but without using up sensor ports.

This makes it very useful for various mobile platforms and performing basic motion/positioning tasks.

It talks the same protocol as the RCX but cannot communicate directly to it (due to IR vs RF) but with a repeater (a computer with 2 serial ports and a simple program) they can be integrated.

Sold as part of the Barcode Truck kit. This unit was the first programmable brick (or Pbrick). It features a single motor, a single touch sensor and a light sensor. It is programmed by setting it to 'learn' and using the light sensor to feed barcoded commands. The command set is very limited. Since barcode is just a series of variances in light, this form of command entry was dubbed VLL (Visual Light Link) and has been used in several later Lego models.

Lego also released a brick named the Scout, which has 2 sensor ports, 2 motor ports, a built in light sensor, and no PC interface. The Scout can be programmed, but the user usually selects one of a collection of built-in programs. In order to program the Scout, a user must enable "power mode" on it. The Scout can store one program.

The RCX can control the Scout brick using the Send IR Message program block. The RCX does all of the controlling, and therefore can be programmed with the PC, while the Scout acts as a "slave". The Scout brick must have all of its options set to "off".

The Scout is also capable of using VLL to control a Micro Scout.

The Micro Scout was added as an entry level to Lego robotics. It is a very limited Pbrick with a single light sensor and a single built-in motor. It has seven built-in programs and can be controlled by a Scout, Spybotics or RCX unit using VLL.

The unit was sold as part of the Droid Developer Kit (featuring R2D2) and later the Darkside Developer Kit (featuring an AT-AT Imperial Walker).

Main article: Spybotics

Spybotics was more of an attempt to expand on the Cybermaster line. The kits were sold together with a computer game where part was played on the computer and part was played by controlling the Spybot to solve a number of fixed missions. The Pbrick itself shares many features with the Cybermaster, but it has no tachometers or spedometers and a single integrated touch sensor.

It also features a light sensor which doubles as computer interface. This interface can also be used to connect to the Scout, Micro Scout and possibly the Codepilot using VLL. It has an expanded IR functionality allowing it to communicate with other Spybots or RCX units. The IR unit also has limited direction and range function, allowing it to track and locate other Spybots, IR Remote Controls/beacons or RCX units.

Main article: Lego Mindstorms NXT

Lego Mindstorms NXT is a programmable robotics kit released by Lego in July 2006, replacing the first-generation Lego Mindstorms kit.[4] The kit consists of 519 Technic pieces, 3 servo motors, 4 sensors (ultrasonic, sound, touch, and light), 7 wires, a USB cable, and the NXT brick. It also includes NXT-G, a graphical programming environment that enables the creation and downloading of programs to the NXT.

The NXT is the "brain" of a Mindstorms robot. This computer-controlled LEGO brick lets the robot autonomously perform different operations.

Name Language type(s) Notes URL
Actor-Lab Custom flowchart-like language [1]
Ada Interface to MindStorms Ada [2]
brickOS C/C++ [3]
GCC C/C++, Objective C, Fortran, Java, Ada among others [4]
GNU Toolchain for h8300 C/C++, ASM [5]
LabVIEW National Instruments LabVIEW Visual programming language Core language used to develop Mindstorms NXT software. Can use available add-on kit to create and download programs to NXT, create original NXT blocks or control robot directly via USB or Bluetooth using NXT fantom.dll [6]
Lego.NET Anything that can compile to .NET, works best with C# Does not come with a compiler, converts bytecode to machine code [7]
leJOS Java [8]
librcx C/C++ A library for GCC [9]
Logitech SDK Visual Basic, Visual C++ Can be combined with an RCX control library such as spirit.ocx from the MindStorms SDK to make use of the Lego Cam [10]
NQC NQC, a C-like language This is the most widely used unofficial language [11]
NXT++ C++ Allows you to control the NXT directly from any C++ program. [12]
Official MindStorms SDK Visual Basic, Visual C++, MindScript, LASM You do not need VB to use the VB features as MS Office comes with a cut down version of VB for making macros [13]
OnScreen A custom language which can be programmed directly on the RCX [14]
pbForth Forth [15]
PBrickDev PBrickDev, a flowchart based language. Has more functionality than the RIS language, such as datalogs and subroutines/multithreading. [16]
PRO-BOT A kind of Visual Basic/spirit.ocx-based language Designed for robots which are in contact with the workstation at all times [17]
QuiteC C A library for use with GCC and comes with GCC for Windows. [18]
RCX Code RCX Code, a custom flowchart-based language Included in the Mindstorms consumer version sold at toystore [19]
ROBOLAB A flowchart language based on LabVIEW This is the programming environment offered to schools who use MindStorms, supports the Lego Cam [20]
ROBOTC A multi-platform C programming language designed for the programmer in need of powerful debugging tools for the NXT, RCX, VEX, and soon-to-be FIRST Controller (for FRC). ROBOTC gives the ability to use a text-based language based on the C programming language. It includes built-in debugger tools, as well as (but not limited to) code templates, Math/Trig operations (sin,cos,tan,asin,acos... etc), user-friendly auto-complete function built into the interface, built-in sample programs [21]
SqLego Squeak [22]
TclRCX Tcl [23]
Terrapin Logo LOGO [24]
TinyVM Java [25]
The Transterpreter occam [26]
Gostai URBI for Lego Mindstorms NXT URBI, C++, Java, Matlab Easy to use parallel and event-driven script language with a component architecture and opensource interfaces to many programming languages [27]
Vision Command RCX Code The official programming language for use with the Lego Cam [28]
XS Lisp [29]
LegoLog Prolog Uses an NQC program to interpret commands send from the pc running the Prolog code [30]
Microsoft Visual Programming Language (VPL) Graphical flowchart, based on .NET With the Microsoft Robotics Studio, it uses a native NXT program msrs to send and receive messages to and from a controlling program on a computer via Bluetooth [31]
DialogOS Graphical Flowchart for voice controlled robots DialogOS combines speech recognition and speech synthesis with robotics, enabling you to build talking robots that react to your voice commands. [32]
Processing Java Processing (programming language) is an open source programming language and environment for people who want to program images, animation, and interactions. It is used by students, artists, designers, researchers, and hobbyists for learning, prototyping, and production. [33], [34]
Interactive C C-style language. Language developed for the Botball robotics competition [35]

There is a strong community of professionals and hobbyists of all ages involved in the sharing of designs, programming techniques, and other ideas associated with Lego Mindstorms. The Lego Mindstorms system/website is organized much like a wiki, harnessing the creative potential and collaborative efforts of participants. LEGO also encourages sharing and peering by making software codes available for downloading and by holding various contests and events.

Wikimedia Commons has media related to:
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.