Obstacle Avoidance using LEGO Mindstorms EV3 and Simulink

This package contains files necessary to build your own robot that can avoid obstacles

You are now following this Submission

This package shows how to get started with the LEGO Mindstorms EV3 support from Simulink and build an obstacle avoiding rover. This uses the Simulink support package to communicate with the robot and uses Simscape Multibody for the 3-D simulation environment.
This project shows how Simulink helped us - 1) simulate and understand robot behavior before deploying the same code onto the robot and 2) Tune parameters and monitor signals from Simulink while the code is still running on the robot without having to recompile. The project also shows basics of Control System Design - data acquisition, parameter estimation and motor controller design.
https://www.youtube.com/watch?v=eFm_Rg_JlII

Cite As

Madhu Govindarajan (2026). Obstacle Avoidance using LEGO Mindstorms EV3 and Simulink (https://www.mathworks.com/matlabcentral/fileexchange/56293-obstacle-avoidance-using-lego-mindstorms-ev3-and-simulink), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.0.1.0

Fixed couple of warning messages on the startupDemo script by deleting two unnecessary lines of code.

1.0.0.1

Updated license
Adding the YouTube link to the description

1.0.0.0

Updated the ReadMe text file