Aiming at glare and driving safety caused by unreasonable adjustment of backlight brightness of electronic rearview mirrors under different lighting conditions, a fuzzy PID based electronic rearview mirrors brightness adjustment system is designed in this paper. The system monitors the illumination of the front and rear of the car in real time through the ambient light sensor. The fuzzy PID controller is used to dynamically adjust the backlight brightness of the electronic rearview mirrors according to the ambient light changes, which can help to ensure that the driver gets the best visual experience under different lighting conditions. The experimental results show that the proposed fuzzy PID dimming system has good performance, and can effectively adapt to different ambient light intensities to improve driving safety and comfort.