Code covered by the MathWorks Limited License

Highlights from
Embedded Coder Robot NXT Demo

4.63158

4.6 | 20 ratings Rate this file 207 Downloads (last 30 days) File Size: 5.99 MB File ID: #13399
image thumbnail

Embedded Coder Robot NXT Demo

by Takashi Chikamasa

 

15 Dec 2006 (Updated 12 Dec 2011)

Offers an enjoyable Model-Based Design experience using Simulink models with Lego robots

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

- This demo supports R2006a -> R2011b
Simulink plant and controller models are used with LEGO's latest high-tech robot (ARM-based LEGO Mindstorms NXT) to illustrate industrial application of Model-Based Design with Production Code Generation. Take note of the model architecture and component definition, as well as, use of fixed- and floating-point designs.

This demo includes three examples:
 Maze walking tricycle robot
 Line tracing tricycle robot
 Self balancing bi-wheeled robot
 NXT Remocon demo

In each example, you can simulate the robot on your personally designed bmp track with 3D virtual reality.

** A simplified EC Robot NXT installer is available now!
http://www.mathworks.com/matlabcentral/fileexchange/25207

** To learn more about EC Robot NXT, check it out now!
http://www.mathworks.com/products/demos/rtw/lego/

** For additional lego robot demos and capabilities with MATLAB and Simulink, see: http://www.mathworks.com/programs/mindstorms/

<Disclaimer>
LEGO(R) is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this demo.
LEGO(R) and Mindstorms(R) are registered trademarks of The LEGO Group.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
NXTway-GS (Self-Balancing Two-Wheeled Robot) Controller Design
This submission has inspired the following:
NXT SCARA (Two-Link Planar Robot Arm) Controller Design, NXT Ballbot (Self-Balancing Robot On A Ball) Controller Design, NXTway-GS (Self-Balancing Two-Wheeled Robot) Controller Design, NXT Scanner with Lego Mindstorms NXT, VU-LEGO Real Time Target, ECRobotInstaller – Simplified installation of tools for Embedded Coder Robot

Required Products Real-Time Workshop
Embedded Coder
Simulink
MATLAB release MATLAB 7.2 (R2006a)
Other requirements Works with R2006a - R2011b (32bit/64bit)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (26)
16 Mar 2007 hamed nozari  
21 Mar 2007 Kin Fung Chu

good

25 Mar 2007 Warden Wei  
31 Mar 2007 ilan zohar

Excelnt job. Wait for the nxt version for bluetooth support and genric I2C.

20 Oct 2007 Vicente Parra

Wonderful tool. This allows we researchers to devote the short spare time we have to support mindstrom based activities for children, which otherwise would rather imposible ro do.

22 Oct 2007 Takashi Chikamasa

For more detailed info about Embedded Coder Robot NXT, check http://lejos-osek.sourceforge.net/ecrobot_nxt.htm

27 Oct 2007 Sina ferdowsi

thast very good
Kind Regards

30 Oct 2007 pezeshki zahra

i want information about robot for my programming

04 Jan 2008 Fatih Can  
05 Feb 2008 Yasuhiko Matoba  
11 Feb 2008 Shein-Yung Cheng  
17 Feb 2008 D kiven  
27 Feb 2008 Nabhiraj Yalagoud  
27 Feb 2008 Nabhiraj Yalagoud

very good

10 Mar 2008 Ali Hamouda Ali  
10 Mar 2008 Ali Hamouda Ali

nural net and feature extraction

17 Mar 2008 Anas Obeidat

it's Excellent Simulation to NXT robot, but we need a good manual, to explain all circuit components, and how we can develop more demos

29 Jul 2008 aditya jha

very good

01 Oct 2008 eugenio marino  
05 Mar 2009 Syed Noman Hussain

v goooooooooddd

04 May 2010 Nguyen Hieu  
29 Nov 2010 Paul

Hi,

when it comes to compiling the files with gnu-arm, i get a lot of the following error messages

C:\cygwin\GNUARM-402\bin\arm-elf-gcc.exe: *** fatal error - couldn't allocate heap, Win32 error 0, ......

arm-elf-gcc 2192 child_copy: stack write copy failed, 0x28D450..0x290000, done 0, windows pid 2675588, Win32 error 5

i am running windows 7, matlab r2010b 64bit. Any help would be appreciated.

06 Apr 2011 fremond khoo

im sorry..i face some problem while installing..can u tell me what's wrong??
and how to solve it??..thanks

Install cancelled
??? Error using ==> install_ecrobot_tools>do_unzip at
456
Problem unzipping D:\Documents and Settings\user\My
Documents\MATLAB\ECRobotDownloads\ecrobotNXT.zip to
c:\LegoMindstorms\ECRobot\

Error in ==> install_ecrobot_tools>do_unzip at 456
        error('Problem unzipping %s to %s', zipfile,
        installdir);

Error in ==> install_ecrobot_tools>install_ecrobot at
373
    do_unzip(zipfile,
    config.ECRobot_InstallationDirectory);

Error in ==> install_ecrobot_tools at 68
       install_ecrobot(config);

08 May 2011 ehs  
07 Jun 2011 Didem

### Executing GNU-ARM toolchain for building executable ... and nothing else for long time. Test for motors was working but that code is not working. What can I do?

13 Oct 2011 VV

That's happening to me too. It builds the code but then it stops in "### Executing GNU-ARM toolchain for building executable", but doesn't build executable. That happens sometimes, not always...and it's happening now with a very important project. Help, please!

Please login to add a comment or rating.
Updates
27 Mar 2007

## Rev.200 02/28/2007. Support for Real-Time Workshop Embedded Coder deployment to ATMEL AT91SAM7S256 in the NXT (no Bluetooth/USB support)
## Rev.202 26/03/2007 Updated LEJOS NXJ to 0.2alpha

29 May 2007

06/01/2007
- Integrated LEJOS OSEK RTOS
- Support Bluetooth for target deployment
- Obsolete Keyboard Input block

30 May 2007

Fixed format issues with PDF document.

10 Sep 2007

What's new in ECRobot NXT V3.03 is:
- Support MATLAB R2006a to R2007b, including model reference normal mode
- Support floating-point code generation (fixed-point is already supported)
- Added Bluetooth data logging feature

21 Nov 2007

- Added support for HiTechnic Acceleration and Gyro Sensors, which are useful for control engineers.

26 Nov 2007

- reposting v3.04 since didn't update.

04 Feb 2008

What's new in V3.05:
- Supports NXT to NXT Bluetooth communication (nxt2nxt demo is available)
- Supports Sound Tone blocks
- Refactored ECRobot NXT customizations

10 Mar 2008

V3.06 New Features:
- Supports R2006 -> R2008a
- Uses LEGO standard USB driver (fantom.sys) instead of ATMEL SAM-BA
- New NXT Remocon demo, similar to Nintendo Wiimote remote control with sound
- Updated docs

09 Apr 2008

what's new in V3.10:
- ecrobotnxtsetup.m enables users to easily establish path settings via GUI.
- Support for LEJOS OSEK 2.0 application flash (over 200Kbytes Flash and ~50Kbytes SRAM are available for user application)

11 Jun 2008

CRobot NXT v3.12:
- Support for enhanced NXT standard firmware (so So ECRobot NXT can be used without replacing firmware.)
- Support for nxtOSEK v2.02

14 Oct 2009

Updated Description.

06 Apr 2010

Updated to support R2010a.
Removed NXTway demo
Support for the latest nxtOSEK v2.12

06 Apr 2010

Updated copyright notifications.

22 Mar 2011

Support Windows7 (32bit/64bit)
Added HiTechnic Prototype Sensor blocks
Added NXT 2.0 Color Sensor blocks
Added external C code integration interface

12 Dec 2011

Updated ecrobotnxtsetup.m to support GNU Make 3.82

Tag Activity for this File
Tag Applied By Date/Time
control design Takashi Chikamasa 16 Oct 2009 09:30:35
embedded code Takashi Chikamasa 16 Oct 2009 09:30:36
simulink Takashi Chikamasa 16 Oct 2009 09:30:36
simulation Takashi Chikamasa 16 Oct 2009 09:30:36
lego mindstorms Gautam Vallabha 18 Jan 2010 10:26:28
embedded code Gautam Vallabha 18 Jan 2010 10:26:28
ecrobot Gautam Vallabha 18 Jan 2010 10:26:28
lego mindstorms nxt Gautam Vallabha 18 Jan 2010 10:26:28
modelbased design Gautam Vallabha 18 Jan 2010 10:26:28
nxt Gautam Vallabha 18 Jan 2010 10:26:28
project based learning Gautam Vallabha 18 Jan 2010 10:26:28
realtime workshop Gautam Vallabha 18 Jan 2010 10:26:28
robot Gautam Vallabha 18 Jan 2010 10:26:28
embedded code Takashi Chikamasa 06 Apr 2010 09:29:49
control design Takashi Chikamasa 06 Apr 2010 09:29:49
simulink Takashi Chikamasa 06 Apr 2010 09:29:49
modeling Takashi Chikamasa 06 Apr 2010 09:29:49
automotive Takashi Chikamasa 06 Apr 2010 09:29:49
simulation Takashi Chikamasa 06 Apr 2010 09:29:49
automotive Christian Komposch 09 Apr 2010 08:59:02
package Elton 19 May 2010 09:00:07
potw Lindsay Coutinho 26 Apr 2011 14:40:57
pick of the week Lindsay Coutinho 26 Apr 2011 14:40:57
control design enddl22 13 Oct 2011 13:08:56
modeling enddl22 13 Oct 2011 13:09:07

Contact us at files@mathworks.com