Abstract:In order to realize the dynamic automatic adjustment of environmental illumination intensity, a illumination detection and adjustment system was presented. The system was consisted of single chip, sensor, constant current source and lamp set, etc. The light intensity of the current environment was detected in real time through a TSL2561 light sensor, and the PID control algorithm was adopted. The output quantity of the system was adjusted in real time based on the deviation between the measured value of light intensity and the preset value of the user, and the output current of the constant current source was controlled by the signal in the form of PWM to realize the accurate control of the environmental illumination intensity. The PID parameters were adjusted by both simulation and experiment. The results showed that the system was reliable, the shortest time was 6 s and the longest was 10 s under the continuous disturbance, which could meet the requirements of general environmental illumination regulation. It could provide a reference for intelligent adjustment of illumination in related fields.