Chapter 6. A Self-Balancing Robot

Now that you've built an astounding number of cool projects, you are ready to take on a slightly more complex technical challenge; building a robot that can balance on two wheels. This type of vehicle was unknown until the advent of the Segway and now has seen lots of new interest with hover boards that allow users mobility in a very small size.

In this chapter, you'll learn the following:

  • How to build a self-balancing, two-wheeled robot
  • How to use control theory to make your robot stable

Let's get started by building a simple hardware platform.

Creating the hardware platform

As you might suspect, your hardware platform will begin with two DC motors and two wheels. You'll also need a simple hardware set to which you ...

Get Raspberry Pi Robotic Projects - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.