LEGO EV3 Balancer Robot using LQR controller
Version 3.16 (36 KB) by
Amin Asham
An LQR controller is designed for the LEGO balance robot and implemented in MATLAB/Simulink
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 LinuxCategories
Find more on Robotics in Help Center and MATLAB Answers
Tags
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.