In order to save energy and promote green development,this design uses the STM32F103 series microcontroller as the core to design an intelligent indoor lighting system.It detects whether there are people entering or leaving the surrounding environment through infrared pyroelectric sensors,detects sound signals through sound sensors,and controls the lighting time of the desk lamp by detecting the brightness of the surrounding light through photosensitive circuits.The lighting intensity is also adjusted according to the lighting needs of different time periods.These analog signals are transmitted to the microcontroller and then converted into digital signals using the internal A/D conversion module of the microcontroller.PWM is used to control and adjust the brightness of LED lights in real-time.Finally,the effectiveness of the lighting system was demonstrated through testing on a hardware platform.