Here is a cube-shaped robot that uses a motor to keeps its balance. It is based on STM32 and has a 1300mAh battery. Once you set the initial position, the robot will stay balanced by activating the motor to counter any disturbance.
This robot has an OLED display to show the status of the robot. The above video shows this robot in action.
[HT]