Balancing Robot using a Raspberry Pi and an accelerometer and gyro.
Accelerometer and gyroscope used ;
http://ozzmaker.com/product/berryimu-accelerometer-gyroscope-magnetometer-barometricaltitude-sensor/
More information here;
http://ozzmaker.com/pibbot-v2-balancing-robot-using-a-raspberry-pi/