How do I use the LEGO® Mindstorms® NXT robot in the Simulink® environment?

1 view (last 30 days)
I am interested in programming the LEGO Mindstorms NXT robots. In particular, I would like to model the control system that governs the robot's movement and balance. I would like to run the simulation in Simulink and then deploy the algorithm onto the robot's ARM® processor.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Mar 2023
Edited: MathWorks Support Team on 19 Apr 2023
The following link describes a Simulink-based solution for LEGO Mindstorms NXT. It allows the user to model the plant and controller in Simulink and visualize the system using Simulink 3D Animation. Code can then be generated using Real-Time Workshop to target the onboard ARM processor and verify the control algorithm on the actual NXT robot.
Please see
for details.
Note: This solution requires several freely-available third party products in order to compile the C code and download it to the LEGO NXT.

More Answers (0)

Categories

Find more on LEGO MINDSTORMS EV3 Hardware in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!