BasicStamp Dimmer with Triacs, flickering problem
johnmademlis
Posts: 3
Hello,
i 've just finished a light controller that controls 5 220V lamps, using 5 pins of a BS2. Each pin drives a led and the gate of a triac, via a MOC3063 optotriac.
Switching on and off the lamps works perfect through PBASIC programming. The problem is when i try to dimm the lamps using PWM command. Although the leds dimm nicely, the lamps doesn't dimm but they have a flickering. Does anyone knows why the leds dimm while the triacs no?
Sincerely
John
i 've just finished a light controller that controls 5 220V lamps, using 5 pins of a BS2. Each pin drives a led and the gate of a triac, via a MOC3063 optotriac.
Switching on and off the lamps works perfect through PBASIC programming. The problem is when i try to dimm the lamps using PWM command. Although the leds dimm nicely, the lamps doesn't dimm but they have a flickering. Does anyone knows why the leds dimm while the triacs no?
Sincerely
John
Comments
Obviously the solution is to increase the on/off cycle rate. It may be that with the higher voltage, internal capacitances and resistances play a role in creating a slower response - a time delay.
Everything is guess work unless you actually put the output on an oscilloscope and see what it looks like. But sometimes guesswork can lead to an adequate solution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"If you want more fiber, eat the package.· Not enough?· Eat the manual."········
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
i am aware about the zero crossing issue but the MOC3063 optoisolator i use between BS2 pin and TRIAC gate has embedded the zero crossing circuitry, thats why i didn't use another circuit for it. If i use a capasitor between the pin that drives triac and ground would i had better results?
Except PWM, is there any other instruction that i could use for the same task? Maybe PULSEOUT?
Sincerely
John Mademlis
The device I have information on uses the following components
BTA216X-600B RAIL 3Q TRIAC 1.2 20 $24.00
MOC3011M 6-Pin DIP 250V Random Phase Triac Driver Output Optocoupler 0.305 20 $6.10
6N138 8-Pin DIP Single-Channel Low Input Current High Gain Split Darlington Output Optocoupler 0.72 20 $14.40
The triac's have internal snubbers
The 6n138 is used for the zero crossing detector
The drivers are Random Phase so the triac can be turned on after the crossover point
I will post the information I have when I get home
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
As i have seen, it utilizes a more advanced microcontroller with timers and interupts capablilities, something that lacks in Basicstamp. Maybe the solution is detecting zero crossing with external circuitry.
John Mademlis
please visit :
http://nowfal85.googlepages.com/home
thank you
You couldn't go wrong reading this pdf: http://www.ortodoxism.ro/datasheets2/1/03pxx82cl7r9zp7fq65askzx89cy.pdf
Post Edited (skylight) : 4/14/2007 4:48:29 PM GMT
You shouldn't be reviving posts, especially when you are posting about a totally different processor. To answer your question: Why are you feeding AC into your processor's interrupt pin? That is not safe, you should at least put a single diode in between the processor and the transformer so you clip the bottom of the AC signal.
Your switches when open are floating. You should pull them down with resistors or use the internal pullups and connect the switches to ground instead of +5 for an inverted signal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!