MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware

Acquire sensor data and control outputs on LEGO MINDSTORMS EV3
22.2K Downloads
Updated 11 Sep 2024
Overview:
Use the MATLAB Support Package for LEGO® MINDSTORMS® EV3 Hardware to control LEGO MINDSTORMS EV3 robots. The support package provides MATLAB functions to control the motors and interface with the hardware input sensors and output capabilities.
Perform the following tasks directly from MATLAB:
  • Control the motors
  • Read color and light intensity
  • Measure distance and proximity
  • Detect touch
  • Acquire rotation angle and rate
  • Write text to EV3 Brick LCD display
  • Beep and play tones on EV3 speaker
  • Detect button presses
You can connect your LEGO EV3 robot to your desktop MATLAB using Bluetooth, Wi-Fi, or USB. You can then use MATLAB and the LEGO EV3 sensors to program your robot to do tasks such as line following, object detection, object sorting, and collision avoidance.
Related Resources:
Required Hardware:
  • LEGO MINDSTORMS EV3 retail set (31313) or LEGO MINDSTORMS EV3 Education Core set (5003400)
  • Requires access to WiFi network with NETGEAR N150 Wireless Adapter (WNA1100), or access to network hub with Apple USB Ethernet Adapter and Ethernet cable
  • All required third-party software is installed by the Support Package Installer.
MATLAB Release Compatibility
Created with R2016b
Compatible with R2016b to R2024b
Platform Compatibility
Windows macOS (Apple silicon) macOS (Intel) Linux
Communities

Community Treasure Hunt

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

Start Hunting!