Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

AC FAN Speed Control via Dimmer using Microcontroller

Status
Not open for further replies.

saeed_pk

Full Member level 4
Joined
May 20, 2006
Messages
238
Helped
35
Reputation
68
Reaction score
27
Trophy points
1,308
Location
Islamabad, Pakistan
Activity points
2,667
Dear All,
I need to control the speed of common ceiling fan using a Triac/dimmer I know about a dimmer circuit but it uses a POT.
I want to design a digital dimmer which get some Analog Voltage/or PWM from MCU and control the speed
or please tell me any other way i can do this.
 

pranam77

Advanced Member level 5
Joined
Apr 22, 2008
Messages
2,786
Helped
552
Reputation
1,102
Reaction score
371
Trophy points
1,363
Location
INDIA
Activity points
16,411
For controlling AC and its load, you need to control the phase angle of the waveform. You may program a microcontroller which may control the phase angle iin reference to the Zero crossing detected by a section dedicated for it. The micro may drive an opto and that in turn may drive the gate of a triac. PWM works fine with DC
Cheers
 

daviddlc

Full Member level 5
Joined
Feb 11, 2007
Messages
260
Helped
35
Reputation
70
Reaction score
9
Trophy points
1,298
Location
USA
Activity points
2,709
If the dimmer uses a pot, another possibility is to use a digital pot controlled by the micro, but you need to isolate the microcontroller from AC levels.
 

millwood

Advanced Member level 3
Joined
Jul 2, 2009
Messages
734
Helped
80
Reputation
164
Reaction score
35
Trophy points
1,308
Activity points
5,088
wouldn't it be infinitely easier just to get a regular dimmer?
 

deperkin

Member level 2
Joined
Apr 12, 2009
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,776
controlling AC fan is very tricky business.

You do need a zero-crossing detector. I use a 1Mohm resistor straight into an interrupt Pin.

Getting the timing down is tricky though and I have not been perfectly sucessful.

Alot of it depends on what type of triac you use.

Lookup TB094 on the Microchip site: "Dimming AC Incandescent Lamps Using A PIC10F200"
this will get you started.

Using a light dimmer is not the best approach for an inductive load however.

Variable frequency is the better choice, but more complex.

Is the project for controlling a ceiling fan with a remote control or something??
you can buy those as well. Or if it is for a wall, that is even cheaper.

If it is just for learning purposes, I would warn you that it is not a simple task.

Another easy option is to use a 'motorized potentiometer' and drive it with the uC.
 

millwood

Advanced Member level 3
Joined
Jul 2, 2009
Messages
734
Helped
80
Reputation
164
Reaction score
35
Trophy points
1,308
Activity points
5,088
Why don't people refer to application notes by several companies
why take the easy route when difficult ones exist?

:)
 

dr pepper

Full Member level 5
Joined
Mar 15, 2010
Messages
292
Helped
34
Reputation
68
Reaction score
37
Trophy points
1,308
Location
lancs
Activity points
3,447
I have never tried this with an ac power control circuit, however certain d to a Ic's can be used as a pot, so long as one end of the pot is grounded, the other track end connect to the d to a vref input, and the 'wiper' is the d to a output.
Using a proper pot ic is probably better.
If all of the pic circuit is well insualted then isolating the chip isnt totally necessary, so long as steps are taken to stop noise from latching up the chip.
This isnt reccomended though for a prototype esp if it was someone with limited experience.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top