flash force Wiki
Interactive browser →
Wiki / LEGO hardware
#device#ir#rcx

RCX

The big yellow MINDSTORMS brick, 1998 to 2001: a Hitachi H8 microcontroller, three motor outputs, three sensor inputs, an LCD and a speaker. It hears the infrared serial link in RCX IR protocol, and it answers back.

Reach

CapabilityStateNote
Three motor outputs, A B Cworks, untested heredirect commands act at once, with no program in the brick
Three sensor inputsworks, untested herethe reading comes back on the reply, so it takes both directions of the link
Its light sensor as a sensorworks, untested herereflected and ambient brightness, the same physics VLL uses as a channel
Speaker and LCDworks, untested heresix built-in sounds, a tone by frequency and duration, a chosen value on the display
Five stored program slotsworks, untested herebytecode downloaded over the link, then run with no computer in the room
Firmware downloadworks, untested herethe brick ships empty and needs one before anything else
One-byte messages, brick to brickworks, untested herethe same infrared both ways; this is how cooperating robots were built
The handheld remote, no program runningworks, untested here9738 speaks this link itself
VLL out, through a lamp brick on an output portworks, untested herethe RCX becomes the emitter and commands a Micro Scout
Flash Force through the bridgeworks, untested heremotors, sounds, stored programs and messages, from a layout on the glass or a gamepad
The bridge's frames on real hardwareworks, untested herethe remote's frames were replicated on a real Scout, which shares this link layer, never on an RCX here
Hearing the RCX answer through the bridgeout of reachthe reply needs an infrared receiver the bridge does not carry

What it hears

An infrared serial link that runs in both directions: a computer pushes a program in and reads a sensor value back out, and every other link here is one way. The framing, the carrier, the baud rate and the toggle bit are in RCX IR protocol; the commands are in RCX opcode table; every link a LEGO brick can hear sits on one page in How the links work. The handheld LEGO Remote Control (9738) rides this same link with an opcode and rules of its own, including one firmware-version bug, all in the protocol note.

The brick's other optical path is not a channel at all. Its light sensor reads brightness, which is the same physics VLL uses to carry codes, put to work as a sensor instead.

Reaching it today

One tower does double duty: the same hardware that talks to an RCX can flash VLL at a Micro Scout. And an RCX emits VLL itself by blinking a 9V light brick on an output port — see rcxvll.nqh (pbrick).