Library for controlling the LEGO® control lab interface.
The control lab is a computer control interface for LEGO® electrical elements, like motors and sensors. It is a predecessor to LEGO® MINDSTORMS® products, and is compatible with many of the elements that work with the MINDSTORMS® RCX product. Also known as Interface B, it was sold by the educational division of LEGO® in the DACTA® product line, as part of set 9751, part number 70909. It came in both a PC and a Mac version, with different serial cables and software, though the interface boxes are identical.
While MINDSTORMS® products are battery powered, compact, and geared toward mobile robots, the control lab is stationary, tethered to a power source and the computer that controls it. The advantage for the control lab is that without the need to be compact it can connect to many more motors and sensors.
It has eight controllable outputs and eight sensor inputs, along with another always on output, and a stop button to halt the running program. It is compatible with elements from the 9 volt electric system, including motors, lights and sound blocks. Compatible sensors include touch, temperature, light, and rotation.
brick-control-lab is a Java library to allow programs to control the control lab programmatically. It is not the first piece of hobby software to target working with the control lab, but it is the first with these goals:
- Java-based
- as a library (e.g. no user interface, used by other programs)
- usable from Maven
As software that uses a serial port, usability from Maven was a challenge. The standard Java Communications API (JavaComm) never had a reference implementation that worked on all major platforms. There is an independent serial library, RxTx, but neither it nor JavaComm are usable from Maven, as they have setup procedures that involve adding files into the JRE on the target platform. See Serial Java for more details.
The solution is a relatively new library called Java Simple Serial Connector (jSSC). While the future development of the library is unclear, it has a release on Maven Central that allows cross platform serial port access without any JRE modifications.
Refer to the Maven generated site for usage instructions and additional documentation.
Licensed under GNU Lesser General Public License 3.0
LEGO®, DACTA®, TECHNIC®, and MINDSTORMS® are trademarks and/or copyrights of the LEGO Group, which does not sponsor, authorize or endorse this software.