Flashlight on Li-Ion battery with voltage control and PWM