Simulink Support Package for LEGO MINDSTORMS EV3 Hardware

Run models on LEGO MINDSTORMS EV3.
22.5K Downloads
Updated 11 Dec 2024
Overview:
Simulink® Support Package for LEGO® MINDSTORMS® EV3 Hardware enables you to create and run Simulink models on LEGO MINDSTORMS EV3 hardware. The support package includes a library of Simulink blocks for configuring and accessing LEGO MINDSTORMS EV3 sensors, actuators, and communication interfaces. It also enables you to interactively monitor and tune algorithms developed in Simulink as they run on the LEGO MINDSTORMS EV3.
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 Arduino, Raspberry Pi™, and mobile devices (Android)
  • Model deployment for standalone operation
Examples:
Other Resources:
Required Hardware:
  • LEGO MINDSTORMS EV3 retail set (31313) or LEGO MINDSTORMS EV3 Education Core set (5003400)
  • Requires access to Wi-Fi network with NETGEAR N150 Wireless Adapter (WNA1100) or access to network hub with Apple USB Ethernet Adapter and Ethernet cable
  • LEGO MINDSTORMS EV3 firmware versions 1.03, 1.06, 1.07, or 1.08 (Tested with LEGO MINDSTORMS EV3 firmware version 1.03)
MATLAB Release Compatibility
Created with R2016b
Compatible with R2016b to R2025a
Platform Compatibility
Windows macOS (Apple silicon) macOS (Intel) Linux

Community Treasure Hunt

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

Start Hunting!