Book Image

Learning Lego Mindstorms EV3

By : Gary Garber
Book Image

Learning Lego Mindstorms EV3

By: Gary Garber

Overview of this book

Table of Contents (19 chapters)
Learning LEGO MINDSTORMS EV3
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
10
Other Programming Languages
Index

Concept of a balancing robot


The inspiration for Gyro Boy is the Segway robot. The LEGO community has been building LEGO MINDSTORMS two-wheeled balancing robots almost since the introduction of the Segway by Dean Kamen. The real Segway is a two-wheeled motorized personal transport device that uses several Gyro Sensors to detect the pitch and pitch rate of the vehicle. The real Segway uses additional Gyro Sensors for redundancy and to detect roll (turning left and right). The physics model for a Segway is what we call the inverted pendulum problem. A simple pendulum has its pivot point at the top and the bob swings back and forth below the pivot. An inverted pendulum has this pivot point at the bottom with the bob oscillating above the pivot. We can think of a metronome or even a human being as simple inverted pendulums. In the case of the Segway, the goal is to minimize the oscillations and keep the vehicle upright and then provide movement forward, backwards, as well as turn left or/and...