Covid-19
Advertisement

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.

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, a 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:

#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.

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.

Advertisement
Follow Us on

Stay on top of the latest engineering news

Just enter your email and we’ll take care of the rest:

By subscribing, you agree to our Terms of Use and Privacy Policy. You may unsubscribe at any time.