skmdmasud
Member
Hi..
I am trying to control AC220 ceiling fan using uC.
My Goal - Change fan speed e.g. Low, Medium, High - is good enough.
My Project so far
-- Zero detection Successful using 1MΩ resistor. (i don't need Isolation, see attachment)
-- PWM to optical isolator(MOC3021) which controls the triac, successful.
uC atmega8 running at 16Mhz, 8 bit timer, prescale 1024.
Result -- when pwm duty cycle is beween 1% to 80% my fan turns very very slowly then at 90% or 100% fan blows at full speed.
pseudocode
Zero detected
set dutucycle, start_timer_8bit
Timer Compare Match
stop_timer_8bit
In other words my project so far can turn on the fan @ full speed and switch off. No speed controlling.
Thanks and Regards.
I am trying to control AC220 ceiling fan using uC.
My Goal - Change fan speed e.g. Low, Medium, High - is good enough.
My Project so far
-- Zero detection Successful using 1MΩ resistor. (i don't need Isolation, see attachment)
-- PWM to optical isolator(MOC3021) which controls the triac, successful.
uC atmega8 running at 16Mhz, 8 bit timer, prescale 1024.
Result -- when pwm duty cycle is beween 1% to 80% my fan turns very very slowly then at 90% or 100% fan blows at full speed.
pseudocode
Zero detected
set dutucycle, start_timer_8bit
Timer Compare Match
stop_timer_8bit
In other words my project so far can turn on the fan @ full speed and switch off. No speed controlling.
Thanks and Regards.