This study investigated the multiple correlations among spectral simulation units based on digital micromirror device (DMD) spectral simulation, which leads to the problem that conventional spectral simulation methods such as PID control exhibit a low fitting accuracy or long fitting time in the spectral simulation of various targets. In this paper, a method of stellar spectrum simulation based on back propagation neural network-based PID (BP-PID) control is proposed to achieve high efficiency and high precision simulation of various spectral targets. The topology of the BP neural network was constructed based on the spectral modulation model of a DMD stellar spectrum simulation system, and the algorithm of the BP-PID control was designed. Finally, an experimental platform was built to verify the performance and spectral simulation accuracy of the BP-PID control algorithm. The results show that the overshoot and response time of the BP-PID control algorithm decreased by 79.01% and 30%, respectively compared with those of the PID control algorithm. The maximum spectral simulation accuracies of 2000K, 7000K, and 12000K color temperature increased by a factor of 2.311, 1.871, and 2.254, respectively, and the standard deviations of the spectral simulation error decreased by 56%, 41%, and 54%, respectively. In the range of 2000-12000K color temperature, the spectral simulation error of the BP-PID control algorithm is better than ±3.495%, and the standard deviation of the spectral simulation error is between 1.8255 and 2.2358. The proposed method can improve the spectral simulation accuracy and simulation efficiency of a star simulator, reduce the magnitude and spectrum calibration errors caused by the differential response, improve the star feature recognition accuracy of the orbiting star sensor, and hence, provide a theoretical and technical basis for the development of high-precision star sensors.