File Exchange

image thumbnail

NXT-LTD: Line Tracking Dancing Robot Demo

version (142 KB) by Siddharth
Modeling Logic for Robot Control with Simulink and Stateflow


Updated 01 Sep 2016

View License

NXT-LTD is a two-wheeled robot built with LEGO Mindstorms NXT. This demo presents sample models and documents describe the following contents.
How to Build NXT-LTD
Mathematical Dynamics Model of Controller Design for Balance and Drive Control

You can generate the controller program that can be executed on the NXT.

This demo uses Stateflow to design the logic for the Robot and the Simulink Support Package for LEGO Mindstorm NXT to communicate with the hardware. Find more information about Stateflow and the support package below:

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.

Cite As

Siddharth (2020). NXT-LTD: Line Tracking Dancing Robot Demo (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


Hi Paul:
find a video recording about how to build this demo in the webinar titled "Modeling Logic for Robot Control" on


Paul Kassebaum

Do you have any instructions on how to build this robot? May I see a video of the robot running this model?


Updated license

cosmetic: changed subsystem view

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux