Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Control the dimming of lights using microcontroller

Status
Not open for further replies.

glenncjy

Newbie level 6
Newbie level 6
Joined
Aug 21, 2005
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,375
microcontroller dimmer

hi guys,

Im planning to do a project whereby i need to control the dimming of lights.
Rather than limiting the current by manually design the ckt setup, is there any commercially available microprocessor whereby i can do the a/m process.

If yes, may i know the brand and name of the processor.

thanks alot
 

Fragrance

Advanced Member level 4
Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,190
Helped
248
Reputation
496
Reaction score
201
Trophy points
1,343
Location
East Of Earth
Activity points
8,929
igbt light dimming

glenncjy said:
hi guys,

Im planning to do a project whereby i need to control the dimming of lights.
Rather than limiting the current by manually design the ckt setup, is there any commercially available microprocessor whereby i can do the a/m process.

If yes, may i know the brand and name of the processor.

thanks alot

here you go
 

gorkin

Advanced Member level 1
Advanced Member level 1
Joined
Feb 27, 2002
Messages
422
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Location
brazil
Activity points
3,375
lighting control system using microcontroller

I see one application note from Zilog explaining how build one dimmer for resistive load.

For more details, visit zilog home page.

Gorkin.
 

UroBoros

Advanced Member level 2
Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,463
dimmer microcontroller

hai

Thanks fragrence for the attachement.


I have some clarifcations required .


How can I debugg the system using ICD because I have some altrations to suit my purpose .

The system is live so cannot connect the ICD or any other things.

But we can drive the picmicro from a DC sourse during development,But how then we can we give the input to PORTA for zero crossing detection?

can you suggest the best method to isolate the device from AC at the same time give input to I/O of pic to get the zero crossing?

If I use a optocoupler triac driver(MOC3021) for driving triac can we drive the triac from PWM output of PIC16F628 with 10ms period?

Please suggest. I am in A very urgent situation regarding this project

Picstudent
 

koky

Full Member level 2
Full Member level 2
Joined
May 12, 2001
Messages
145
Helped
11
Reputation
22
Reaction score
8
Trophy points
1,298
Location
Italy
Activity points
1,097
triac dimmer microcontroller

you can't use pwm with triac !
a triac cannot be turn off until next zero crossing
you must use igbt with pwm
 

Fragrance

Advanced Member level 4
Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,190
Helped
248
Reputation
496
Reaction score
201
Trophy points
1,343
Location
East Of Earth
Activity points
8,929
light dimmer using 8051

Picstudent said:
hai

Thanks fragrence for the attachement.



If I use a optocoupler triac driver(MOC3021) for driving triac can we drive the triac from PWM output of PIC16F628 with 10ms period?
Picstudent


yes you can used triac with optocoupler moc3021 in pwm never used moc3041 or moc3040 i have temperatuer controller using pwm with moc3021 and driving triac


regards
Fragrance
 

UroBoros

Advanced Member level 2
Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,463
microcontroller light dimmer triac

[quote="Fragrance ] yes you can used triac with optocoupler moc3021 in pwm never used moc3041 or moc3040 i have temperatuer controller using pwm with moc3021 and driving triac


regards
Fragrance[/quote]

can you give some more details about period of PWM and how or weather you synchronise with AC ? My purpose to control the speed of a ceiling fan

Thanks
Picstudent
 

mohamedtaha

Junior Member level 1
Junior Member level 1
Joined
May 12, 2004
Messages
18
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
181
phase control using microcontroller

Controlling AC power with a triac is called phase control. If you intend to control power delivered to the lamp wit a triac, you should trigger the triac at a certain point in the AC cycle that gives you the required RMS voltage output. PWM can be used if you intend to supply the lamp from a DC source. I did it before with the PIC16F876 PWM and a power transistor and it was excellent.
 

johnbharath

Newbie level 5
Newbie level 5
Joined
Jun 13, 2006
Messages
8
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,312
micro controller phase control

Check for pic reference on chip 12c508,Bst application on dimmer.
 

Enlightenment

Full Member level 3
Full Member level 3
Joined
Jul 26, 2006
Messages
174
Helped
29
Reputation
58
Reaction score
23
Trophy points
1,298
Location
3rd Rock From Sun
Activity points
2,672
microcontroller light dimmer control

What you have to do is:
- Circuit for AC zero-crossing optoisolator detection.
- Circuit to delay amount for time since zero-crossing occurs, which then enables an output to occur until the next zero-crossing.
- You have to convert the amount of time delay against a light-curve look-up table, because light brightness doesn't change in a linear line, which is done with a microcontroller.
- The output from the timer circuit drives an optoisolator which trigger a triac circuit or a AC power switch "brick".
- You will need a big inductor in the AC output to reduce switch noise, otherwise will cause lots of RF interference.

Added after 12 minutes:

Here is a circuit that I found on the internet, some great ideas.
 

Attachments

  • ac_light_chaser_circuit_1233.pdf
    672.8 KB · Views: 1,067

nandhu015

Advanced Member level 5
Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,959
Helped
300
Reputation
600
Reaction score
222
Trophy points
1,353
Location
India
Activity points
9,879
microcontroller dimmer edaboard

Hai Enlightenment

Thanks for that circuit

Where can I find the code for that?
Can you help me

Nandhu
 

necolei

Junior Member level 2
Junior Member level 2
Joined
Oct 26, 2007
Messages
24
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,409
moc3021 pic

glenncjy said:
hi guys,

Im planning to do a project whereby i need to control the dimming of lights.
Rather than limiting the current by manually design the ckt setup, is there any commercially available microprocessor whereby i can do the a/m process.

If yes, may i know the brand and name of the processor.

thanks alot

YOU can use a z8 microcontroller and use a Pulse with modulation to control the brightness of a bulb.
 

ful babu

Full Member level 3
Full Member level 3
Joined
Nov 11, 2004
Messages
174
Helped
13
Reputation
26
Reaction score
3
Trophy points
1,298
Location
Singapore
Activity points
1,634
microcontroller light dimmer controller

well i have one as well, this one can conrol single phase motors as well, using PIC16F628A,

here, portb is the speed configuration of the circuit. i hav put 2 dip sw's, 0 being off state and 255 is full/on state. u can put a 8 bit counter / modify the code / add a 8 bit port of a mcu with up/dwn buttons

for any help plz let me know

regards
 

funnynypd

Banned
Advanced Member level 1
Joined
May 9, 2007
Messages
436
Helped
48
Reputation
100
Reaction score
25
Trophy points
1,308
Location
USA & Canada
Activity points
0
igbt light dimmer

IGBT is good on performance and easy to control, price is high.

Triac is cheap but need AC zero-crossing optoisolator detection and exteral control.

Light dimming is a wide topic.
 

funnynypd

Banned
Advanced Member level 1
Joined
May 9, 2007
Messages
436
Helped
48
Reputation
100
Reaction score
25
Trophy points
1,308
Location
USA & Canada
Activity points
0
pic pwm zero crossing detector light dimmer

How much is the chip now?
 

firmware

Member level 4
Member level 4
Joined
Apr 10, 2007
Messages
69
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
1,599
fan dimmer using 8051

We are call this method " Phase controller ", by you must have a reference signal from AC source 50Hz or 60Hz, the connect this signal to your microcontroller external interrupt pin for reference to make the phase control signal. Using the timer to on and off the control signal.
 

bynz

Newbie level 4
Newbie level 4
Joined
Jun 10, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
microcontroller ac light dimmer

what should be change if 60hz 220v mains is used?
thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top