Accelerating the pace of engineering and science

LEGO MINDSTORMS NXT Support from Simulink

Run models on LEGO MINDSTORMS NXT

Capabilities and Features

Simulink® Support Package for LEGO® MINDSTORMS® NXT Hardware lets you develop algorithms for LEGO MINDSTORMS NXT robots. The support package extends Simulink with blocks for configuring and accessing the robot’s sensors, actuators, and communication interfaces. You can develop algorithms in Simulink, verify they work in simulation, and download the completed algorithm for standalone execution on the NXT brick (via USB).  You can also tune parameters live from your Simulink model while the algorithm runs on the device.

The support package is available in MATLAB R2014a and newer releases, and includes:

  • Library of Simulink blocks that connect to LEGO MINDSTORMS NXT I/O, including microphone and speaker; numerous input sensors, including light, color, touch, and ultrasonic; and output sensors, such as servo motor and LCD
  • Communication between multiple LEGO MINDSTORMS NXT robots
  • Interactive parameter tuning and signal monitoring of applications running on LEGO MINDSTORMS NXT
  • Model deployment for standalone operation

About LEGO MINDSTORMS NXT

LEGO MINDSTORMS NXT is a robust, low-cost, and flexible platform for robotics that helps you understand the workflow for designing an embedded system using block diagrams. LEGO MINDSTORMS NXT features a 32-bit ARM microcontroller (256 KB flash and 64 KB RAM), provides ports for connecting a variety of sensors, such as ultrasound, color/light, and touch, and supports USB and Bluetooth.

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability. For more information on current support for specific releases, please refer to this MATLAB Answers post.

View enhancements and bug fixes in release notes.

Note: Support for Simulink® Support Package for LEGO MINDSTORMS NXT Hardware will be removed for releases later than R2016b. Please consider migrating to LEGO MINDSTORMS EV3 hardware.

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

MathWorks Requirements

Software

Required

Also supported in student and home software.

Recommended

Support Package

Required

Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.

Third-Party Requirements

Hardware

Required

Recommended

Software

Required

All required third-party software is installed by the Support Package Installer.

Request Hardware Support