16-299: Elegoo balancing robot lab info.


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 robot as is from Elegoo only uses the A signals from the wheel encoders. In order to get the B signals which doubles your position (and velocity) resolution and allows the robot to know which direction each wheel is turning, we modified the motherboard and changed the Arduino computer from a Nano to a Nano Every. See Info on robot hardware for more information.


Building the robot


Getting started with the Arduino Nano Every


Testing the hardware, sensors, and software


Collecting (sinusoidal) data


Collecting step-response data


Making a model of the motors driving the wheels


Testing single wheel controllers


Estimating missing measurements: wheel velocity and body angle


Getting the robot to balance


Info on robot hardware


Videos


Another balancing robot to work with.