With the development of the times, intelligence has become more and more the theme of the era, and intelligent mobile devices are more applicable to various production and living in society. In order to reduce costs, increase applicability, and improve performance, this project designs a two-wheeled self-balancing scootr simulation. The scooter uses the STM32F103 chip as the main controller, uses the MPU-6050 to collect the tilt angle and motion speed of the vehicle body, and uses the PID algorithm to control the state of the vehicle body. The PID algorithm uses the given speed and calculates the acceleration through proportional, integral and differential three variables; then it controls the motion of the DC motor through the driver chip. The DC motor feeds back the speed to the main chip through the encoder to achieve self-balancing of the two-wheeled scooter when powered on. This design can also connect to a mobile APP through a Bluetooth module to control the movement of the scooter.