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.
Loukia Papadopoulos

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.

What you need for this special robot is a custom-made PCB, an Arduino nano, an MPU6050, a A4988 driver, an HC-05 bt module, an MDF board, and some hardware. 

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:

Most Popular

#define CURRENT_AXIS PITCH // possible to choose ROLL or PITCH axis as current.

  1. /* This is the speed of the serial interfaces */
  2. #define SERIAL0_COM_SPEED 115200
  3. #define SERIAL1_COM_SPEED 115200
  4. #define SERIAL2_COM_SPEED 115200
  5. #define SERIAL3_COM_SPEED 115200
  1. #define MAX_SPEED 350 // should be <= 500
  2. #define MAX_TARGET_ANGLE 130 // where 10 = 1 degree, should be <= 15 degree (i.e. <= 150)
  3. #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.

message circleSHOW COMMENT (1)chevron