|
Lego Mindstorms occurs as line of robotic Lego Group products, including programmable bricks along with electro-motors, sensors, Lego bricks, and Lego Technic pieces (gears, axles, beams, pneumatic parts, etc.) to build robots and more machine-controlled or even interactional systems.
Despite existence the swell known toy, Lego Mindstorms is also utilized as an educational tool, as originally arranged by Lego & MIT; it is a good case of an embedded system with computer-controlled electromechanical parts. About tons kinda realistic embedded systems, from either elevator controllers to industrial robots, may be modelled applying Mindstorms.
Watch likewise: FIRST LEGO League
The RCX programmable brick
A RCX is the virtually all mighty programmable brick over the Mindstorms line. It contains the Renesas H8/300 microcontroller as its internal CPU. A brick is programmed by downloading a program written in one of many available programming languages from the PC to the brick's flash memory via a favorite infrared (IR) interface. When program downloading & starting, an RCX-enabled Mindstorms creatiin can work all in its have, acting on internal & external stimuli based on data from a programmed videos. Besides, ii or even supplementary RCX bricks potty communicate using every more through the IR interface, enabling inter-brick cooperation or competition. Additionally to the IR port, there are terzetto detector input ports & triad drive output ports (too usable for lamps, etc). There exists likewise an LCD that can display a battery level, status of the input/output ports, which program is selected or even heading, & more trading tools.
Version One.Nought RCX bricks feature the power adapter jack to allow continous operation instead of the limited operation period after utilizing batteries. Power adapter-equipped RCX bricks come popular for even stationary robotics projects (like automaton arms) or for controlling Lego model trains. In a latter context, the RCX needs to become programmed by having Digital Command Control (DCC) software package involved for machine-driven exemplary train operation (understand Information, beneath, for an lesson of such software).
Sensors
A RCX relies in sensing element to interpret its environment. the Lego Mindstorms line has Quaternion different detector: Touch, Weak, Rotation, & Temperature sensing element , + a range of Third person detector simply available for education.
Available programming languages
Lego-supplied (two of the babies in writing):
RCX Code (involved in the Mindstorms consumer version sold at toystores)
ROBOLAB (according to LabVIEW and developed at Tufts University)
Third-person (everthing of the children textual):
Java under leJOS
NQC ("Not Quite C")
C and C++under BrickOS (formerly LegOS)
pbFORTH (extensions to the Forth programming language)
Visual Basic* XS (a Scheme-like LISP dialect)
Simple program example in NQC
The elementary end line text program written around NQC for an RCX sustaining the motor attached to output port The may look such as this:
project independent () // main program
So, motor The may last at to the full speed for 2 seconds prior to existence murder off.
Notes
Lego distributes a Mindstorms SDK featuring examples in Visual Basic and C++.
Ditto mark.
|