This device was designed on request; to control the light intensity of four filament lamps (i.e. a ring illuminator) powered by two AA or AAA batteries, for close-up pictures with a digital camera. Obviously it can be used in other ways, at anyone's will.IC1 generates a 150Hz square wave having a variable duty-cycle. When the cursor of P1 is fully rotated towards D1, the output positive pulses appearing at pin 3 of IC1 are very narrow.
Bulb LP1, driven by Q1, is off as the voltage across its leads is too low. When the cursor of P1 is rotated towards R2, the output pulses increase in width, reaching their maximum amplitude when the potentiometer is rotated fully clockwise. In this way the bulb reaches its full brightness.
circuit from http://www.extremecircuits.net/2009/08/brightness-controller-circuit-for-small.html