The article introduces the stepper motor control system used for X-ray sources and detectors.It describes the working principle, hardware design ,and the major software programming processes and methods of the stepper motor control system.Therefore,this paper presents that the stepper motor control system can improve the accuracy of the measurements of bone mineral density.