Self Balancing Robot

This project is designed to create a self balancing robot featuring two wheels attached to two DC motors , the LSMD9S1 IMU sensor and an H-bridge to drive each motor. A self-balancing robot is an inverted pendulum, which is a pendulum with its center of mass above the pivot point. Balancing an inverted pendulum is a challenge, because it is inherently unstable. The slightest disturbance from equilibrium position results in a force away from equilibrium that further destabilizes the system. Therefore, keeping balance at an unstable equilibrium requires precise, low-latency control to instantly correct any errors in tilt the instant they happen.

Hardware Used

Mbed NXP LPC1768
IMU Sensor
H-Bridge
Spark Fun Shadow Chassis
DC Motors
Wheels

Software Used

IMU Library
mbed API

Assembly

IMUmbed
SCLp10
SDAp9
VddVout
GNDGnd
H Bridge Pinmbed Pin
GNDGnd
VCCVO
VMOTVsupply
GNDGnd
PWMAp21
AIN2p23
AIN1p24
STBYVout
BIN1p26
BIN2p25
PWMBp22
GNDGnd

Program

Import programSelfBalancingPID

SelfBalancing Robot with PID

Demo


Please log in to post comments.