LEGO EV3 Balancer Robot using LQR controller

An LQR controller is designed for the LEGO balance robot and implemented in MATLAB/Simulink
242 Downloads
Updated 4 Jul 2021

View License

In this project an LQR controller is designed to balance the LEGO balancer robot (Tutorial: Building BALANC3R – Robotsquare). LQR is a pole placement technique where the poles are located such that a certain cost function is minimized. The control action is divided into three signals; the first one balances the robot, the second moves the robot forward and backward (using the IR remote control) and the third one rotates the robot about its vertical axis (using IR remote control). Since the system is linearized about the vertical position all the signals are added and then converted into two signals to the right and left motors through a decoupling matrix. The entire control system is implemented in MATLAB/Simulink using Simulink Support Package for LEGO MINDSTORMS EV3 Hardware. Other techniques will be issued in the future.

Cite As

Amin Asham (2024). LEGO EV3 Balancer Robot using LQR controller (https://www.mathworks.com/matlabcentral/fileexchange/95158-lego-ev3-balancer-robot-using-lqr-controller), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
3.16

Modified Implementation

1.0.21

Minor Changes

1.0.2

Minor modifications

1.0.1

Minor Modifications

1.0.0