An AC controller provides programmable switching of AC power flow, together with
producing a source of DC power for the AC controller. The AC controller is connected
in series with only one side of the AC power source and the AC load, and uses a
microcontroller or a Programmable Logic Device (PLD) for the programmable capability.
The AC controller can be programmed to provide a light flasher function, a time
delay off function, an automatic fade function, a dimming function, a burglar deterrent
function, and a time delay dim function. With a multiple-position switch replacing
a current wall switch, the operator can easily select many pre-programmed functions.