How to use propeller micro controller to control ac current load
Wakkonyi
Posts: 5
Hello. I am developing party lights and using the propeller micro controller. I want to use ac current for my lights as they will be a long distance from my control point because dc current can't go very far. How can I go about it using NPN or PNP transistors? I am in Uganda. Patrick Wakkonyi.
Comments
When using a mechanical relay, you need a transistor to power the coil. Many ready made relay boards include the transistor but if you're making your own board you'll need to add one yourself.
A solid state relay (SSR) doesn't require a transistor. If you use a SSR make sure you get the kind made for AC loads. SSR will only work with the current type they are designed for while mechanical relays can be used with both AC and DC.
DC voltage goes pretty far, though some voltage drop but unless you are talking Kilometers should be no problems.
To turn on A/C voltages use Triacs, here is youtube video (very dangerous to mix parts a human can touch with 240v mixed in !!!)
https://www.youtube.com/watch?v=ZXXup79B6Gc
That was interesting.
Is the advantage of the triac cost? Are there some AC loads you wouldn't want to control with a triac?
Wakkonyi
Wakkonyi
Yes they are On until next QUADRATURE (or maybe next zero crossing)
But at 50Hz you can dimm without flicker,
and for your party lights you would not turn on/off faster than 50Hz as that would just look half-on to a human.
With LED there can be a visual flicker compared to incidence light bulb when dimming at 50Hz
read this post on how to sync your mcu up with 50Hz zero crossings. (But these SSR will only turn on a zero crossing by themselves, so it was not useful for dimming)
http://forums.parallax.com/showthread.php/149577-Dual-SSR-inside-a-PowerStrip
Wakkonyi
The resistive losses through short cables is the same for AC as DC.
If you have really long distances to cover the cables can act as antennas and radiate power away when using AC. For this reason modern long distance power cables are starting to use DC.
I guess your lights are not so far away that this is an issue.
So the real question is what kind of lights do you actually want to control?
You would be much better off with MOSfet devices. The AC or DC are not going to make as much a difference.
What you may being seeing is that 12VDC is a true 12Volts, whereas 12VAC is 70.7of actual peak voltage. But that adjustment is provided to assure that Amp x Volts = Power are the same.
Other sources of the 12VDC voltage drop might be that your power source was not up to snuff. If you use a small battery for 12VDC and expect it to provide a constant 40amps -- it just won't happen. You have to at least use something as large as a car battery.
40 amps over 50 feet of wire is NOT trivial. You need something like 10 gauge copper wire to reduce losses.
Wakkonyi,
I recommend you use a higher DC voltage, say 50 Volts at 10 Amps. Of course, this depends on the lighting controller accepting a higher voltage.