I did a quick Christmas present for my brother. He found this old lamp and I converted it to LED with a micro-controller to do PWM dimming.
The underside. Control knob at right is read by the Arduino Pro mini at left. Transistor at top of circuit board forms a constant current source with current set by large rectangular resistors and is switched on and off to do PWM by the Arduino.