Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
RWTH - Mindstorms NXT Toolbox

4.3 | 3 ratings Rate this file 32 Downloads (last 30 days) File Size: 8.38 KB File ID: #18646 Version: 1.5
image thumbnail

RWTH - Mindstorms NXT Toolbox



07 Feb 2008 (Updated )

Toolbox for controlling LEGO® MINDSTORMS® NXT robots via a Bluetooth or USB connection.

| Watch this File

File Information

The RWTH - Mindstorms NXT Toolbox provides several MATLAB functions for controlling LEGO® MINDSTORMS® NXT robots, including NXT system features, sensors, and motors via a Bluetooth or USB connection. Also some helper functions for an effective programming are implemented.

The development of the RWTH - Mindstorms NXT Toolbox was motivated by a RWTH Aachen University student project - MATLAB meets LEGO Mindstorms - for electrical engineering students and therefore designed mainly for education purposes.
In winter 2008 over 380 students and 80 supervisors participated in this project and developed and programmed 200 robots based on the RWTH - Mindstorms NXT Toolbox for MATLAB.

Because of license issues the sources of the RWTH - Mindstorms NXT Toolbox (GPL) are hosted at project page


This file inspired Low Cost 3 D Scanner Using Lego Mindstorms.

MATLAB release MATLAB 7.7 (R2008b)
Other requirements Windows or Linux; LEGO® MINDSTORMS® NXT building kit; LEGO® MINDSTORMS® NXT firmware v1.26 (recommended); Bluetooth 2.0 adapter (e.g. AVM BlueFRITZ! USB) supporting the serial port profile (SPP) or MATLAB Bluetooth interface, USB cable.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
03 Aug 2010 Leo Kay

Thank you for this, amazing work, i wish i can give more than 5 stars, i have been working with this code for the past 1.5 year and its truly outstanding :D
Thank you again !

09 Feb 2009 Todd

Todd (view profile)

Excellent submission Mohammad. Here's a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code -

05 Apr 2008 song ss  
13 Mar 2008 Mohammad Omer

I dont know what to say!! THANKS for saving the time , this job is the best

Comment only
07 Feb 2008

correct false entry fields sequence

30 Sep 2008

New Toolbox Version 2.00

New Features: USB Support; Improved Multi-NXT Support; Better Performance; Compass, Infrared, Accelerator Sensors Support

27 Jan 2009 1.1

New Toolbox Version 2.03 New Features: Motor class (MATLAB 7.6) for better motor control (using also NXC); Improved Multi-NXT Support; Better Performance; Color, Gyroscopic, RFID Sensors Support, BugFixes

17 Jul 2009 1.3

update toolbox examples

19 Oct 2011 1.5

Updated examples for new toolbox release v4.06 with full 64Bit Win support (USB and Bluetooth)

Contact us