LEGO MINDSTORMS EV3 Support from Simulink


Capabilities and Features

Simulink® Support Package for LEGO® MINDSTORMS® EV3 Hardware lets you program and run algorithms on LEGO MINDSTORMS EV3 robots. The support package includes a library of Simulink blocks for configuring and accessing the robot’s sensors, actuators, and communication interfaces.

You can develop algorithms in Simulink, simulate them to verify that they work as intended, and download the completed algorithm for standalone execution on the device (via USB, Bluetooth, Wi-Fi, or Ethernet connection). You also have the ability to tune parameters live from your Simulink model while the algorithm runs on the EV3 brick.

The support package includes:

  • Library of Simulink blocks that connect to LEGO MINDSTORMS EV3 I/O, including buttons and speakers; numerous input sensors including color, touch, gyro, ultrasonic, infrared, and encoder; and output sensors such as servo motor, status light, and display
  • Support for LEGO MINDSTORMS NXT sensors on LEGO MINDSTORMS EV3 Bricks, including ultrasonic, touch, sound, battery, timer, and gyroscope
  • Interactive parameter tuning of outputs and signal monitoring of sensor inputs for applications running on LEGO MINDSTORMS EV3
  • UDP and TCP/IP blocks to let your LEGO MINDSTORMS EV3 communicate with ArduinoRaspberry Pi™, and mobile devices (Android and iOS)
  • Model deployment for standalone operation

Learn more about Arduino programming with MATLAB and Simulink.

Watch video to learn how to implement serial communication between Raspberry Pi and Arduino.


LEGO MINDSTORMS EV3 is based on a brick that includes an ARM®9-based processor, micro SD card reader, and USB port for Wi-Fi connectivity. It connects to a variety of sensors, such as ultrasound, color/light, gyroscope, and touch. It also connects to up to four servo motors that enable to build mobile robots. It can be programmed to do tasks such as line following and object detection and avoidance.

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability. 

View enhancements and bug fixes in release notes.


Related Hardware Support Views: Simulink, ARM, Bluetooth, Control Systems, C ∕ C++ Code Generation, Embedded Systems, LEGO, MathWorks Supported, Mechatronics, Project-Based Learning, Robotics, Run on Target Hardware, Support Package Installer Enabled, USB

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

Get support package




Support Package


Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.

Get support package





  • LEGO MINDSTORMS EV3 firmware versions 1.03, 1.06, 1.07, or 1.08
  • Tested with LEGO MINDSTORMS EV3 firmware version 1.03

Don't see the hardware you're looking for?