PWM dimming experiment based on AVR microcontroller