HiTechnic NXT Sensor Multiplexer for LEGO Mindstorms NXT
Introduction
The HiTechnic Sensor Multiplexer, (SMUX), allows you to attach up to four NXT sensors to a single NXT port.
The SMUX connects to an NXT sensor port using a standard NXT wire and uses the digital I2C communications protocol. A standard HiTechnic battery box is provided with the SMUX that uses 6 AA batteries to provide adequate power for the attached sensors. The SMUX supports a wide range of digital and analog sensors.
Supported HiTechnic and LEGO Sensors
| LEGO Ultrasonic Sensor |
| LEGO Light Sensor |
| LEGO Touch Sensor |
| LEGO Sound Sensor |
| HiTechnic Acceleration Sensor |
| HiTechnic Angle Sensor |
| HiTechnic Barometric Sensor |
| HiTechnic Compass Sensor |
| HiTechnic Color Sensor |
| HiTechnic EOPD Sensor |
| HiTechnic Gyro Sensor |
| HiTechnic IRReceiver |
| HiTechnic IRSeeker |
| HiTechnic IRSeeker V2 |
| HiTechnic Magnetic Sensor |
Note: The HiTechnic IRLink is not supported because the Sensor Multiplexer only allows read operations from the attached digital sensors. This also implies that certain operations, such as controlling the mode of the Color Sensor V2, is disabled when attached through the multiplexer since this would require a write operation to the sensor.
Programming
NXT-G
New versions of NXT-G programming blocks are required to use the SMUX with the LEGO Mindstorms software. These blocks are very similar to the standard sensor blocks but allow you to specify the SMUX port your sensor is attached to in addition to the NXT port connected to the SMUX. These blocks will be available from the HiTechnic downloads page in coming weeks.
Other Programming Environments
RobotC
To use HiTechnic Sensor Multiplexer with RobotC, HiTechnic recommends the use of the HiTechnic drivers pack developed by Xander Soldaat. With these drivers it is easy to use the sensors connected either directly to the NXT or through the HiTechnic Sensor Multiplexer. To get the latest version of the driver suite, as well as installation and tutroial information, please go to botbench.com.
NXC
Xander Soldaat has developed a driver suite for programming the HiTechnic Sensor Multiplexer with NXC. This driver suite provides functions that let you read sensors connected through the multiplexer. You can find the latest version of the driver suite on botbench.com.
Sensor Multiplexer Register Layout
Address |
Type |
Contents |
00 – 07H |
chars |
Sensor version number |
08 – 0FH |
chars |
Manufacturer |
10 – 17H |
chars |
Sensor type |
18 – 1FH |
bytes |
Not used |
20H |
byte |
Command |
21H |
byte |
Status |
22H |
byte |
Channel 1 mode |
23H |
byte |
Channel 1 type |
24H |
byte |
Channel 1 I2C byte count |
25H |
byte |
Channel 1 I2C device address |
26H |
byte |
Channel 1 I2C memory address |
27H |
byte |
Channel 2 mode |
28H |
byte |
Channel 2 type |
29H |
byte |
Channel 2 I2C byte count |
2AH |
byte |
Channel 2 I2C device address |
2BH |
byte |
Channel 2 I2C memory address |
2CH |
byte |
Channel 3 mode |
2DH |
byte |
Channel 3 type |
2EH |
byte |
Channel 3 I2C byte count |
2FH |
byte |
Channel 3 I2C device address |
30H |
byte |
Channel 3 I2C memory address |
31H |
byte |
Channel 4 mode |
32H |
byte |
Channel 4 type |
33H |
byte |
Channel 4 I2C byte count |
34H |
byte |
Channel 4 I2C device address |
35H |
byte |
Channel 4 I2C memory address |
36H |
byte |
Channel 1 upper 8 bits |
37H |
byte |
Channel 1 lower 2 bits |
38H |
byte |
Channel 2 upper 8 bits |
39H |
byte |
Channel 2 lower 2 bits |
3AH |
byte |
Channel 3 upper 8 bits |
3BH |
byte |
Channel 3 lower 2 bits |
3CH |
byte |
Channel 4 upper 8 bits |
3DH |
byte |
Channel 4 lower 2 bits |
3E, 3FH |
chars |
Reserved |
40 – 4FH |
bytes |
Channel 1 I2C buffer |
50 – 5FH |
bytes |
Channel 2 I2C buffer |
60 – 6FH |
bytes |
Channel 3 I2C buffer |
70 – 7FH |
bytes |
Channel 4 I2C buffer |
Additional information about low level program including examples in both RobotC and NXC is available from the HiTechnic Downloads page and also from http://www.breigh.com/xander/HTSMUX-Tutorial-LATEST.pdf
Downloads
New with version 2.0: This block adds support for the HiTechnic Sensor Multiplexer as well as data logging with the LEGO Mindstorms 2.0 Education software.
| Description | Version | Release Date | Size | ||
| HiTechnic Acceleration Sensor Block for Mindstorms NXT Software | 2.0 | July 29th, 2010 | 420.43 KB | Download Now |
New with version 2.0: This block adds support for the HiTechnic Sensor Multiplexer as well as data logging with the LEGO Mindstorms 2.0 Education software.
| Description | Version | Release Date | Size | ||
| HiTechnic Color Sensor Block for Mindstorms NXT Software | 2.0 | July 28th, 2010 | 646.03 KB | Download Now |
New with version 2.1: Fixes a bug preventing entering Calibration mode. You can now tell if calibration succeeded or failed by examining the absolute heading after calibration. This block supports for the HiTechnic Sensor Multiplexer as well as data logging with the LEGO Mindstorms 2.0 Education software.
| Description | Version | Release Date | Size | ||
| HiTechnic Compass Sensor Block for Mindstorms NXT Software | 2.1 | January 14th, 2011 | 637.96 KB | Download Now |
New with version 2.0: This block adds support for the HiTechnic Sensor Multiplexer as well as data logging with the LEGO Mindstorms 2.0 Education software.
| Description | Version | Release Date | Size | ||
| HiTechnic Gyro Sensor Block for Mindstorms NXT Software | 2.0 | July 29th, 2010 | 430.68 KB | Download Now |
| Description | Version | Release Date | Size | ||
| LEGO Ultrasonic Sensor Block with support for the HiTechnic Sensor Multiplexer | 1.0 | July 30th, 2010 | 470.43 KB | Download Now |
| Description | Version | Release Date | Size | ||
| LEGO Light Sensor Block with support for the HiTechnic Sensor Multiplexer | 1.0 | July 30th, 2010 | 434.68 KB | Download Now |
| Description | Version | Release Date | Size | ||
| LEGO Touch Sensor Block with support for the HiTechnic Sensor Multiplexer | 1.0 | July 30th, 2010 | 371.63 KB | Download Now |
| Description | Version | Release Date | Size | ||
| LEGO Sound Sensor Block with support for the HiTechnic Sensor Multiplexer | 1.0 | July 30th, 2010 | 430.29 KB | Download Now |
| Description | Version | Release Date | Size | ||
| LEGO Sensor VIs for LabVIEW 2009 | 1.0 | October 28th, 2010 | 147.26 KB | Download Now |





