This DIY Self-Balancing Robot Will Impress You with Its Ability to Stay Upright
This special robot can constantly correct its position in order to balance itself on two wheels.
If the video player is not working, you can click on this alternative video link.
Ever wanted your own self-balancing robot? Well, it turns out you can make your own provided you have the right tools and expertise.
A self-balancing robot, if the name does not make it obvious, is a robot that can constantly correct its position in order to balance itself on two wheels. To achieve this impressive task, this robot version uses a gyro sensor that sends orientation data to a controller.
Using this data, the controller commands the robot to go forward or backward in order to maintain its upward position. Quite a feat!
How do you build such a robot you might ask? Well, you start with three 130 x 65mm pieces of MDF sheet that is 4mm thick. You then drill some holes in the MDF pieces in order to insert an M3 rod through all three pieces.
We will also share with you the programming code used for the robot:
#define CURRENT_AXIS PITCH // possible to choose ROLL or PITCH axis as current.
- /* This is the speed of the serial interfaces */
- #define SERIAL0_COM_SPEED 115200
- #define SERIAL1_COM_SPEED 115200
- #define SERIAL2_COM_SPEED 115200
- #define SERIAL3_COM_SPEED 115200
- #define MAX_SPEED 350 // should be <= 500
- #define MAX_TARGET_ANGLE 130 // where 10 = 1 degree, should be <= 15 degree (i.e. <= 150)
- #define MAX_STEERING 90 // should be <= 100
What do you do next? We won't tell you that. You have to watch the video to find out. We will tell you it is a DIY project that will inspire you to make a robot of your own.
Interesting Engineering is a participant of the Amazon Services LLC Associates Program and various other affiliate programs, and as such there might be affiliate links to the products in this article. By clicking the links and shopping at partner sites, you do not only get the materials you need but also are supporting our website.