A Propeller Christmas
kt88seamp
Posts: 112
A future project of mine is to build a multichannel programmable dimmer switch whose task is to deliver lighting effects for strands of christmas lights. My idea is to have 6 of the 8 processors in the propeller drive 6 triacs through an optocoupler chip. One processor will act as a zero cross detector. The first processor will coordinate serial programming from a USB to serial module to an eeprom that will store the commands.
This is an ambitious project for my level of microcontroller electronics. I do have some experience with the SX units, but none with the propeller chips.
Some questions:
Does the propeller chip have commands in its spin language to store the contents of variables/arrays in its eeprom (or another eeprom)?
Will switching six triacs introduce noise into the power line?
The USB to serial chip I have in mind is the FTDI FT232RL. I have the ability to solder SMT components. Other than that·is this chip difficult·for a fairly experienced·electronic hobbiest (myself) to work·with?··
This is an ambitious project for my level of microcontroller electronics. I do have some experience with the SX units, but none with the propeller chips.
Some questions:
Does the propeller chip have commands in its spin language to store the contents of variables/arrays in its eeprom (or another eeprom)?
Will switching six triacs introduce noise into the power line?
The USB to serial chip I have in mind is the FTDI FT232RL. I have the ability to solder SMT components. Other than that·is this chip difficult·for a fairly experienced·electronic hobbiest (myself) to work·with?··
Comments
There aren't commands per say but there are a number of objects in the exchange that accomplish this task.
Forward phase dimming does introduce harmonics to the neutral but its not anything you would need to be concerned about. You may want to check out the Prop128 project, a big portion of it is forward phase angle dimming.
I guess this depends on your level of experience, I'm using to for a project and its not bad.
Post Edit --·X10 stuff (switchers and dimmers, etc.) is all zero-cross-based, UL-listed, reliable.· I don't know if·anyone has done·a Propeller-X10 object, yet.
** LED-based light-strings, which·draw much less current than incandescents, may remain faintly on when "off", owing to thyristor "leakage" (they go to a very-high-resistance but not open circuit.)· So, depending, LED-strings may require an additional·loading (parallel) resistor.
Post Edited (PJ Allen) : 9/20/2009 3:26:28 PM GMT
While an entire cog wouldn't be required for ZC, you would need to dedicate a cog for sensing ZC and then handling dimming. In a dimming system you don't trigger the triacs with the ZC circuit, you trigger them via the microprocessor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My website www.quigleyelectronics.com/
About X-10, it is SLOW, it takes about a second to update a module, so if your display is to music, X-10 won't work very well.
Also, if you use leds, then you can use one of these chips. The are SMALL and don't need any extra components, I used something like them and they have worked well. Also, they can handle .9 amps, plenty enough for even a mini bulb strand.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My website www.quigleyelectronics.com/
www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol8/col/nv146.pdf
Jon,
But I am sure that·X-10 - as Adam says, it's too slow... you won't be able to pump more than TWO X-10 unit codes + function (e.g. 'dim') through that protocol. (I have installed/used many of these devices.)
Looking forward to seeing what you come up with!
cheers
- Howard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (CounterRotatingProps) : 9/21/2009 3:16:27 PM GMT
If the goal is AC lamp dimming then I see two routes: 1) traditional triac switching based on the zero-cross or, 2) convert the AC to DC and do straight PWM -- no ZC information is needed. I've actually done the latter as well (a project for the Mouse House that they abandoned) but it comes with its own set of problems.
There is a very simple reason that almost every dimmer in existence is based on phase angle from zero cross.
To paraphrase an old quote "Those who don't understand dimming are condemned to reinvent it, poorly"
As Jon suggested, you can also convert to DC and PWM. You can also chop the mains directly using IGBT's (this makes for _NICE_ dimmers!) but switching 240VAC (where I live anyway) fast is not as easy as it might seem. Phase angle is the accepted way of doing this and is the best dimming you are going to get from a TRIAC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lt's not particularly silly, is it?
Brad is right - my suggestion was nuts.·It won't switch *except* at the crossing point.
Thanks for correcting this, Brad.
> To paraphrase an old quote "Those who don't understand dimming are condemned to reinvent it, poorly"
Kind of embarrassing actually, as I used to design and test stage lighting equipment · ... well, 20 yrs ago ... so I'll claim a senior moment [noparse]:)[/noparse]
[noparse][[/noparse]going to delete my previous post --- sorry about the confusion!]
- Howard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔