|Version 52 (modified by behrens, 5 years ago)|
Home | Preview | News | In the Press | Projects | Features | Download | Development | Bug Reports | FAQ | Login
Table of Contents
(includes sourcecodes and documentation)
Download the full toolbox below, including all functions with sourcecodes, documentation, examples and demos. For installation see the included README.txt file or the installation guide below in this site. Works with MATLAB 7.3 or higher, tested under Windows and Linux.
RWTHMindstormsNXTv2.00.zip (0.7 MB)
RWTHMindstormsNXTv1.00.zip (0.5 MB)
Overview of the toolbox system requirements:
- Operating system: Windows or Linux
- MATLAB Version 7.3 (R2006b) or higher
- LEGO® Mindstorms NXT building kit (e.g. Education Kit)
- LEGO® Mindstorms NXT firmware v1.05 (recommended)
- Bluetooth 2.0 adapter recommended model by LEGO® (e.g. AVM BlueFRITZ! USB) supporting the serial port profile (SPP)
- USB cable and LEGO Mindstorms NXT Fantom USB Driver for Windows ( http://mindstorms.lego.com/support/updates/) or libusb library for Linux
Click here to see the Release History
|Linux Scripts||LinuxConnection.zip (3 KB)|| Download scripts for Linux that help you to establish a Bluetooth connection|
and prepare the NXT to be used as USB device
|libusb package for Linux||libusb||Available for several Linux distributions|
|LEGO® MINDSTORMS ® NXT Software Updates||Firmware||NXT Firmware (v1.05 recommended)|
|Driver||NXT Fantom Driver (required for the USB support on a Windows machine)|
In these archives you can find stand-alone applications of the toolbox-demos, that run without MATLAB installed. They can be used for diagnostic purposes, even when classic LEGO Mindstorms NXT programs (.rxe) are executing on the NXT brick at the same time. The demos require a working Bluetooth connection, read the included README.txt file or see the installation guide on this site how to edit the bluetooth.ini file to get the demos working.
At the moment the only supported operating system is Windows.
(Archive includes MATLAB Component Runtime which has to be installed)
(Requires installed version of MATLAB Component Runtime which is not included)
Browse Current Stable Release
SVN Repository Checkout
For developing the RWTH - Mindstorms NXT Toolbox the usage of the SVN repository and its revision management system is recommended. To check out and update the RWTH - Mindstorms NXT Toolbox repository to your local hard drive a SVN client has to be installed on your system. Under Windows we recommend the TortoiseSVN Client. A short tutorial how you can check out the toolbox is given on First steps with SVN.
The SVN repository server is located at http://www.mindstorms.rwth-aachen.de/subversion
All files can be checked out and updated without limitations. But for full access permissions to the SSL-secured SVN repository you have to be a registered developer (register/login) first.
Browse All Releases
|Stable Releases||/tags/||/tags/||stable|| Stable and recommended releases.|
The usage for normal users is recommended!
|Developer Releases||/branches/xxx/||/branches/||beta|| Individual developer versions maintained directly by the developer.|
The usage for normal users is not recommended!
|Working Release||/trunk/||/trunk/||beta|| Current common working release includes merging progress. |
The usage for normal users is not recommended!
|Root Directory||/||/||Repository root directory|
The current toolbox version is also available at the MATLAB Central an open exchange for MathWorks MATLAB and Simulink user community.
The toolbox is categorized under File Exchange - Production Code - ''RWTH - Mindstorms NXT Toolbox'' (http://www.mathworks.com/rwth_nxt) .
Installation Guide (for current stable version 1.00)
- Extract the archive anywhere you want, KEEPING DIRECTORY STRUCTURE
- The destination folder should contain a directory called RWTHMindstormsNXT
- In MATLAB, go to "File", "Set Path…", "Add Folder…"
- Browse to the location you extracted to, and add the folder RWTHMindstormsNXT
- Also add the folder demos (it is a sub-directory of RWTHMindstormsNXT)
- Press Save to remember settings for future MATLAB sessions
- Run the command BT_MakeConfigFile from the MATLAB command window or:
- edit a bluetooth-example ini-file from the toolbox folder to suit your configuration
- Establish a Bluetooth connection to your NXT using your adapter's driver software
- Authenticate with the NXT (a passkey request should appear)
- You can now open Bluetooth connections using the toolbox command BT_OpenHandle
Full Installation Guide
The RWTH - Mindstorms NXT Toolbox is a collection of MATLAB-functions (so called m-files)
and documentation / help files (mostly HTML). You have received these files in a
compressed archive, that just needs to be extracted to a directory of your choice. This
folder can even be on an external hard disk, USB stick or network drive. However it is
recommended to use a folder on a normal hard disk drive for performance reasons.
So just uncompress the archive and remember the folder you extracted it to.
Make sure that the internal sub-directory structure is kept! Also it is important that all
files are located in a sub-folder called RWTHMindstormsNXT for identification purposes.
Now inside MATLAB, go to the menu "File" and choose "Set Path…". Inside the new window, press "Add Folder…", and browse to the location where you extracted the files from the archive to in the previous step. Now select the folder RWTHMindstormsNXT and confirm. Repeat this step, and add the folder called demos, which is a sub-folder of the previously added RWTHMindstormsNXT-directory. When done, press "Save" to remember these settings for future MATLAB sessions.
|Open the "Set Path" window||Add the RWTHMindstormsNXT folder and its subfolder demos|
After adding these 2 folders to the MATLAB search path, the installation is complete. To
verify the installation, you can type the following line
info = ver('RWTHMindstormsNXT')
inside the MATLAB command window. Also the command BT_CloseAllHandles should work and complete without an error.
The First Bluetooth Connection
Before you can begin working with Bluetooth connections, you have to create a settings
file that contains information about your Bluetooth adapter and serial port.
Either you can use the toolbox-command BT_MakeConfigFile inside the command window. A
dialog window lets you enter the required parameters. The other way is to edit the
example-files called bluetooth-example-windows.ini or bluetooth-example-linux.ini,
that are provided in the toolbox root folder.
You can leave the default values for the beginning, the only thing you will have to enter is the COM-Port. The Bluetooth SPP (serial port profile) maps a virtual COM-Port to your adapter. Find out which port this is (under Windows you can use the Device Manager) and enter it in the dialog window (example: COM4). The other parameters are explained in the documentation. Advanced users should refer to the first chapter Bluetooth connections and serial handles of the section Functions - Overview.
If there is more than one additional Bluetooth COM-Port, this is most likely caused by the adapter's driver software. Most of the time it is the lowest available COM-Port (above the classic "real ports"). The only way to be sure is to try which ports are working. (Sometimes there are certain ports that only work for sending OR receiving. The toolbox however needs a bidirectional port.)
|Device manager with correct Bluetooth serial port||Dialog window of BT_MakeConfigFile command|
Linux users should use the bluez Bluetooth stack. The serial port will then be called /dev/rfcomm0 or similar.
This is the parameter that has to be added instead of COM3 for example. The sample ini-file for Linux does not contain all
settings as they are not needed here.
Once the correct ini-file is created, it can be put inside the toolbox root path or anywhere inside the MATLAB search path for better convenience.
You can now try the demos (which require a correct configuration file called bluetooth.ini) or start opening connections using the toolbox command BT_OpenHandle. Note that before this works, you have to establish a physical connection to your NXT. Depending on your Bluetooth adapter's driver software, this can be different. Once successful, the NXT and driver software will prompt you for a passkey. The authentification is then complete, and the toolbox should work properly.