Controlling AC cieling fan and light
bboy8012
Posts: 153
I was wondering can any one give me guidance on parts to control it with a prop and say PWM? Its just a project I want to try for my house. Thanks
Comments
However you will discover, as I did, that you will need to detect the zero crossing on the AC line in order to activate the SSR synchronously with the AC signal. I used a random type SSR that was pulsed every 1/120th of a second (60Hz, each half cycle) with a pulse that had some delay between the zero crossing and when the LED line was sent high. The longer this delay the dimmer the light would be. If you don't synchronize the pulses you will experience the lights flickering on and off randomly rather than dimming.
To detect the zero crossing I used a stepdown transformer (it was already available in the system I was integrating the dimmer into and offered isolation) to drive a transistor. when the voltage went above 0.6V the transistor turned on triggering an I/O state change....Since there was a predictable delay for this 0.6V to be achieved I subtracted this delay from the expected 1/60th of a second and used this as the zero crossing for the next full cycle.
AC Fan
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN3471.pdf?fsrch=1&sr=3
light dimmer:
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2839.pdf?fsrch=1&sr=1