The invention provides a method and
system for adjusting the illumination of an
atmosphere lamp in a vehicle in a partitioned mode based on an increment PID
algorithm, and belongs to the field of auxiliary illumination of the
atmosphere lamp in the vehicle, and the method specifically comprises the steps: setting the illumination values of a plurality of partitions in the vehicle, the increment PID
algorithm of each partition, and the setting parameters of an illumination sensor; the digital value of the
illuminance sensor at the current moment is sent to an opposite MCU through a UART-CAN; the visible light
illuminance X1 of the current partition is calculated; according to the target visible light illumination values St1, St2, St3 and St4, the proportionality coefficient Kp, the
integral coefficient Ki, the
differential coefficient Kd and a preset increment PID calculation formula, an output value OUTk is obtained to serve as the high level width of PWM, the output power and the output brightness of an LED are adjusted, and the
illuminance value of each area is adjusted. According to the method, the illuminance of each area can be adjusted in real time, the fluctuation of the relative brightness of the LED caused by the fluctuation of the
junction temperature of the LED is effectively reduced, and the overall illumination effect of the LED
atmosphere lamp is improved and stabilized.