File Exchange

image thumbnail

Gyroboy - self-balancing two-wheel robot (segway) based on Lego EV3

version 1.0.2.0 (276 KB) by Pavel Roslovets
Model of EV3 segway robot with LQR controller. Could be run on hardware (EV3)

29 Downloads

Updated 09 Feb 2017

View License

Use config.m to change behavior of model and params.m to change it's parameters.
Building instruction:
http://robotsquare.com/2013/10/01/education-ev3-45544-instruction/
Description of kinematics and plant model you can find in NXTway-GS project
https://www.mathworks.com/matlabcentral/fileexchange/19147-nxtway-gs--self-balancing-two-wheeled-robot--controller-design
This robot is a part of YouTube course called 'Gyroboy Matlab Project' (on Russian)
https://youtu.be/wE-5eSu2ap0

Comments and Ratings (6)

Frank Wang

thanks for the excellent work.

It will be great if someone can give the the physical definition of variables in the code:
theta_int,
theta,
psi
theta_dot,
psi_dot,
phi,
phi_dot

thanks

Armin Azim

Works really great and has a very comprehensive video tutorial (although in Russian, it you can follow up quite well with the auto-translate subtitles).

mt nguyen

problem solved. Just create new variant block and copy internal component of old variant block before suppressing them. Probably version compatibility (I am on 2014b)

mt nguyen

hello, can you help. I get following error when compiling:
The name of Inport block 'Ctl' of the variant block 'gyroboy_full2/Plant/EV3' must match one of the names of the corresponding Inport blocks of the Variant Subsystem block 'gyroboy_full2/Plant'.

Plesae, can you provide a model file compatible with the 2016a version (when you save your model, you can choose File-> Export Model to --> Previous Version.
Thx

Hi. can u provide the gyroboy_full.slx file for matlab2016a version... thanks!

Updates

1.0.2.0

Added models for old releases (R2014a, R2015a, R2016a)

1.0.1.0

Add cover picture

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor