Incandacent Bulb
I am making a circuit that uses a Solid State Relay that uses the PWM statement to control brightness of incandescent bulbs on the 110 line. I have my eyes on this relay www.mouser.com/search/refine.aspx?Ntt=653-G3E-220T-US12 for cost. The dimmer has 255 (1 byte) steps. What frequency does a filament best respond to?
PWM, rb, <what should the duration be?>
Or should I do something else?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PWM, rb, <what should the duration be?>
Or should I do something else?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
I look at this relay data sheet it dose not say any thing about being able to use this in a dimming mode so i do not know
that you will be able to use it for what you want to with it
If i have time latter i will see if i can find something that might work for you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam
You could do a little dimming by switching on the SSR for a variable number of half cycles in some period of time (like 1/10 second). It would give you a limited number of levels and the results wouldn't be anything like linear light levels, but it would be something.
The easiest way to dim an incandescent lamp with a PBASIC Stamp is to use the X-10 lamps modules and employ the PBASIC XOUT command. You can find documentation and examples of the XOUT command in the PBASIC Syntax and Reference Manual, or in the PBASIC Help File. It really couldn't be simpler.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Lightfoot) : 7/28/2007 8:46:38 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You'd connect the logic output to an I/O pin. It would be delayed a little from the actual zero crossing because the LED has to have enough voltage to fire. You'll have to figure out that time delay and work it into your program if it's important.
2. Does the zero cross circuit trigger the microcontroller to run the pulse width modulatation code?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Lightfoot) : 7/29/2007 7:35:08 AM GMT
2) Yes, the zero crossing detector gives the starting time. Simply delay for whatever fraction of a half cycle you want, then trigger the triac.
Post Edited (JonnyMac) : 7/29/2007 2:06:16 PM GMT
Please let me know when these board are for sale because I want to buy one of them· FC-4 fader board········· Nice...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
FWIW, I've attached the FC-4 triac circuit schematic for your reference. The input to the MOC3023 is referenced from the zero-cross signal -- the longer the hold-off from ZC, the dimmer the lamp. The FC-4 uses an ISR that runs every 32.5 uS which gives 256 segments of each half cycle of the AC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Lightfoot) : 7/29/2007 10:42:40 PM GMT
You might be able to adapt this to high-level code like you're attempting, but you have to remember that when a triac is activated it can only be turned off by removing the gate and hitting zero-cross.
Post Edited (JonnyMac) : 7/29/2007 10:52:21 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Phil
An ISR is shorthand for Interrput Service Routine, a routine which is invoked whenever a (specified) interrupt occurs.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
2. Johnny, is your interrupt triggered by the zero cross detector? If this is the case perhaps I can put this code in the interrupt code block.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Lightfoot) : 7/30/2007 8:47:45 AM GMT
You might try something like this:
Note that when using constant values with PAUSEUS, fractions are allowed. You might want to use a 20 MHz resonator to give yourself plenty of resolution with PAUSEUS.
Post Edited (JonnyMac) : 7/30/2007 1:45:23 PM GMT
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Phil