16-299: Elegoo balancing robot lab info. (2025 version)


The lab will involve working with this robot: ELEGOO Tumbller Self-Balancing Robot Car Kit Compatible with Arduino IDE, which is a Two Wheeled Inverted Pendulum (TWIP), like a Segway.


The original V1.1 Tumbller seems to be always sold out on the Elegoo site but is available on amazon.com. This year we are modifying the controller board and using a new processor, the Nano RP2040 Connect, to get the full signals from the encoders to directly measure what direction the wheel is turning, get better wheel velocity measurements, sample the IMU faster, and generally sample faster and have a lot more compute power. See Info on robot hardware for more information.


Building the robot


Getting started with the Arduino Nano RP 2040 Connect


Collecting data to make a model.


Modeling the static relationship of commands to torques.


Is the velocity estimate generated by the PicoEncoder software accurate?


Fitting a model by hand using simulation


From last year: Making a model of the motors driving the wheels

Note that last year's data files have different fields, had just a quadrature encoder rather than the PicoEncoder higher resolution encoder reading, and didn't have the PicoEncoder speed estimate.
Last year: microsecond_clock, left_wheel_encoder, right_wheel_encoder, command
This year: microsecond_clock, left_wheel_encoder, left_wheel_speed, command, right_wheel_encoder, right_wheel_speed


Info on robot hardware


Videos


Another balancing robot to work with.