self-balancing-bot-doc

Problem Definition

Demonstrate the inverted pendulum problem using a two-wheeled bot and input from gyroscope+accelerometer module

Components

  • MPU 6050
  • Arduino Uno
  • 2 x N20 12V 120 RPM Micro Metal Gear Motor With Encoder
  • 2 x 3PI miniQ Car wheel Tyre 44mm N20 DC Gear Motor Wheel
  • Motor driver L298
  • Phone box as chassis
  • SMPS Power Supply

Setup picture

Top view Front view

Preliminaries/Learning

Circuit diagram

Circuit

Control equations

Controls

Used an SMPS for the first time

SMPS

Videos

Single motor feedback to tilt

Link

High Kp dance

Link

Cord (Arduino powered through USB cable)

Link

Final Demo: Cordless (Arduino powered by SMPS)


Other Learnings

  • Calibrating MPU 6050
  • Register level programming