This is a One axis self-balancing device, which is based on the PID control system.

arduino ide arduino nano r3 mpu-6050