The linear one-level inverted pendulum system is a typical nonlinear unstable system, but it has an important role in the application of microcontroller programming. Aiming at the nonlinear and natural instability of linear one-level inverted pendulum, this paper proposes an adaptive fuzzy PID control algorithm after completing the mathematical modeling of linear one-level inverted pendulum, and designs a fuzzy adaptive controller by synthesizing the stability theory of Li Yapunov to satisfy the stability and control effect. The adaptive fuzzy PID control algorithm in this paper is the core algorithm, and the intelligent control system programmed by microcontroller is constructed. In the system simulation experiment, the overshoot of the displacement, lower pendulum angle and upper pendulum angle of the adaptive fuzzy PID control system of this paper is about 0.02m, 0.012rad, 0.005rad, and the adjustment time is about 3s, 2.5s, 2.5s, and the results of the experimental simulation are better than that of the conventional PID control system as a comparison, which shows an excellent performance of the system.