MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware
Acquire sensor data and control outputs on LEGO MINDSTORMS EV3
22.3K 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:
- MATLAB Support for LEGO MINDSTORMS EV3
- Getting Started with MATLAB Support Package for LEGO® MINDSTORMS® EV3™ Hardware
- Interact with Brick Peripherals, Read Sensor Values and Control Motors on LEGO® MINDSTORMS® EV3™ Hardware
- Build a Collision Alarm Using the EV3 Ultrasonic Sensor
- Design a Closed-Loop Control Algorithm to Make a Two-Wheel LEGO® MINDSTORMS® EV3™ Vehicle Drive Straighter
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) LinuxCategories
- Test and Measurement > Instrument Control Toolbox >
- Image Processing and Computer Vision > Computer Vision Toolbox > Computer Vision Toolbox Supported Hardware >
- Robotics and Autonomous Systems > ROS Toolbox > ROS Toolbox Supported Hardware >
- Engineering > Electrical and Computer Engineering > Robotics >
Find more on Instrument Control Toolbox in Help Center and MATLAB Answers
Tags
Communities
More Files in the Power Electronics Control Community
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.