Sure, commercial versions of this IR-controlled light dimmer have been available ... which trims the peaks off of the AC waveform. The PIC is powered by a large capacitor while the triac is ...