web - VertiBOT - like segway in small
[...]
VertiBOT is an inverted pendulum platform that remains balanced by means of two tiny motors, located in the bottom of the structure. The battery is attached in the top of the main body, while the electronics board is located near the rotation axis. The feedback signal is provided by an IMU 6Dof composed by an accelerometer and a gyro. One ATmega 328 microcontroller execute the main loop every 10 milliseconds. A wireless communication over bluetooth is used to tune and check the signal response in a Graphical User Interface software.
source