> This is a question. *Without regard to cost*, is it reasonable to > rectify the AC mains and measure the RMS of the AC waveform and run a > high current peak PWM cycle that is proportional to the RMS of the AC > waveform ? > cc If you made do with measuring average volatage (which would probablly be a good enough approximation for this application, it doesn't have to respond to the dimmer in exactly the same way a filiment bulb would) it wouldn't be too difficult. The hardest part would probablly be designing a power supply for the LEDs that was suitable for running off the dimmed supply without damaging either itself or the dimmer and allowed the dimmer to function normally but I can't imagine it would be too difficult. You may also have issues with the dimmers minimum loading. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist