

Christmas lights controlled with Netduino
#1
Posted 03 December 2011 - 01:48 PM

#2
Posted 03 December 2011 - 02:49 PM
Your circuit won't work, it is really dangerous, and probably could damage your Netduino.
Here's why...
The diode-bridge is good, but you should add a capacitor to stabilize the voltage. That capacitor should be large enough, and ranged for a high voltage (min 400V). Bear in mind that once the 220VAC is rectified, become about 310VDC = 220*sqrt(2) (well over 320V because in the EU the mains is actually 230VAC).
Working with a so high voltage is *really* dangerous, and can be hurtful.
Using a so high voltage, probably the lights can't light for a long time, being targeted for 220VAC (not 310VDC).
The thryristor is another good idea, but is a bit complex to shut off, once has been switched on. So, I wouldn't suggest it.
Another problem is that you're connecting the mains line directly to the Netduino ground. Physically is correct, and it works...but it's the worst way to connect a low voltage circuit. What if you plug your Netduino using the USB or the Ethernet?
Of sure your home safety-switch will blow. If you haven't, a big "flash" will light the Christmas!
Please don't do it!
I *strongly* suggest to find out a light strip working at low voltage (max 24V). Another option is what you pointed, about creating by yourself, maybe with leds.
In this last case, I don't think the cost would be so high. You may look for some very thin wire (dark green colored), and connect the leds in a particular way. That will allows you to drive easily (with NO danger) with Netduino, and creating lighting patterns that a commercial strip can't do.
An example?
The Mark/Nevyn led cube: search in this forum for the details...
Hope it helps.
Cheers
#3
Posted 03 December 2011 - 03:25 PM
#4
Posted 03 December 2011 - 04:04 PM
...so a led has a voltage drop of 1.5-2V (depends on the kind of led).
It has a *reverse* breakdown voltage of about 5-7V (also depends).
If you want to connect the led in series, you would consider a max of 6-8 for a supply of 12V. The main advantage of the series is that the current is the same as a single led, and the wiring is simple.
BUT...if you consider to connect the led in ANTI-parallel (along with a resistor each), you may connect as many led as you want. This time the current is N-times the one required for a single led (where N is the number of leds involved).
Why *anti*-parallel?
Well, "anti-parallel" means that you connect two leds in parallel, but with their polarity opposite. Thus, when the current is flowing in a direction only one led will light. When the current is flowing reversed, the other led is lighting. When NO current is flowing, of course no led are actually lighted.
If you wire the led in such a way, you may (relatively) have the following advantages:
- your 12V supply is enough for a large number of leds;
- the 12V is totally safe;
- the required energy for a strip of leds is much lesser than the equivalent number of bulbs;
- you may consider two (or more) colors (*);
- the anti-parallel trick allow to manage two independent pattern of leds with just two wires;
Cheers
#5
Posted 03 December 2011 - 06:33 PM
Attached Files
#6
Posted 04 December 2011 - 06:27 AM
Attached there's two solutions: for few leds, and for a longer strip.
Unless you plan to create a short strip (up to 20 leds), I suggest to choose the second circuit. That's because the heating power on the transistor will be enough to overheat it.
The BC337 is the typical small plastic transistor. It allows a max of 800mA, but it cannot be heatsink-ed, and its max power is very small. I guess even with a dozen of leds, it can be warm enough.
More likely I'd use the TIP122, which is a darlington. It allows a max of 5A, should be heatsinked, thus you may wire a very large number of leds.
To heatsink it any metallic plane could be feasible, *BUT* bear in mind that either you insulate electrically the heatsink from the transistor case, or keep the plate off from touching any other electrical point. That may blow the transistor immediately.
Cheers
Attached Files
#7
Posted 04 December 2011 - 11:13 AM
#8
Posted 04 December 2011 - 01:14 PM
Absolutely genial!Maybe put some IR detection into it, to try and make it into a game for the kids.
Unfortunately I have no time, but I'd love to do it!
Congrats, Magpie for the idea!
Cheers
#9
Posted 19 December 2011 - 09:00 AM
#10
Posted 19 December 2011 - 12:54 PM
#11
Posted 19 December 2011 - 01:34 PM
Attached Files
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users