Navigating waypoints with a Lego MINDSTORMS NXT Robot
On Mar 15, 2013 MathWorks UK held a student competition that had teams come together and perform a set of 4 tasks leading to a final competition that had Lego MINDSTORMS NXT robot navigate a set of waypoints as quickly as possible.
This File Exchange Submission collects the set of 4 preliminary tasks along with sample models that anyone can explore and learn how the Simulink Support Package for Lego MINDSTORMS NXT Hardware works.
The tasks are:
Task 1: Spin your robot in place – both in simulation and on the robot itself. Compare results to see if they match.
Task 2: Explore and try a simulation of the robot on the floor with sample target waypoints, change controller parameters to see changes in behavior. Compare results.
Task 3: Run the same algorithm from previous task on the real robot, logging real time histories. Compare to previous simulation.
Task 4: Design and simulate your algorithm for an arbitrary set of waypoints, explore algorithms to find the shortest distance between points.
This example uses this Simulink Support Package for LEGO MINDSTORMS NXT Hardware:
http://www.mathworks.com/hardware-support/lego-mindstorms-simulink.html
Learn more about running Simulink models on target hardware here:
http://www.mathworks.com/discovery/simulink-embedded-hardware.html
Cite As
MathWorks Robotics and Autonomous Systems Team (2024). Navigating waypoints with a Lego MINDSTORMS NXT Robot (https://www.mathworks.com/matlabcentral/fileexchange/42835-navigating-waypoints-with-a-lego-mindstorms-nxt-robot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Robotics and Autonomous Systems > ROS Toolbox > ROS Toolbox Supported Hardware >
- Engineering > Electrical and Computer Engineering > Robotics >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.