Well, you could just use a current limiting resistor. For 20 mA with 230 V, you get R = 230/0.02 = 11.5 k.
The power loss in the resistor is I^2 R, which is 0.02 * 0.02 * 11.5 k, which is only 4.6 Watts. Shouldn't be hard to find a 10 Watt (just to be safe) 11.5 k resistor. ;-)
You didn't say you wanted an efficient circuit, did you?
It is something we overlook. When only small current levels are needed, a small transformer is fairly easy to come by. I once used a non-PC switching supply for something, and after thinking about a DC to DC converter to supply some low current negative voltage, I realized I'd just use that small transformer I pulled out of a clock radio.
Of course, a simpler solution may be to do away with the LEDs. Use some neon bulbs, right off the AC supply. Get an electroluminiscent panel, and again run it off the AC supply. It all depends on whether the poster is asking about LEDs because that's all they know, or if there is something that specifically requires LEDs.
I hope I didn't give you the impression that I thought wasting 4.6 Watts to light an LED was a good idea? I will try to make it more obvious the next time I am being sarcastic. Sorry.
As far as the voltage goes, the OP said 230 VDC. I decided not to challenge it. Anyway, where I live (USA), the nominal mains voltage is about half that.
Consider using a series capacitor to limit the current and connect the LEDs two in sereis and another two in series back to back with the first two. Each pair will limit the reverse voltage for the other pair. The cap will limit the forward current. Use a cap conservativley rated, if the cap should fail short, the LEDs will disappear in a flash of smoke. I'd add a small resistor 100 Ohms and fuse in series with the cap just to limit the fault and high frequency surge current.
Maybe for more saftey use two caps, one on each power lead.
The total reactance of the caps should be on the order of (you figure out the exact value) 5kohms which is about 0.47 uF.
--- 120V For 120VRMS and 20mA LEDs, R = ------- = 6000 ohms, and since 0.02A
1 1 C = ---------- = -------- = 0.44µF 2pi f Xc 2.26E6
you're pretty close, but the fatal flaw with that scheme is that the reactance of the capacitor will be so small to the turn-on transient that it will allow the LEDs to be fried. maybe not the first time the circuit is turned on, and maybe not the second, but it _will_ happen. That 100 ohm resistor won't help much either, since if the thing gets turned on at the peak of a half-cycle, it'll let the LEDs see about
1.7 amps and they'll be gone long before the fuse even starts to get warm.
As there is a bridge rectifier involved on 230VAC (nom.) mains, there will be significantly more than 230VDC. A *far* better thing to do here (ie. it's also safer) would be to get a miniature 1 or 2 VA transformer and step down to say 6V.
You answered his question, which was a fair thing, so I wasn't criticising you, just pointing out things OP may not have considered or realised needed to be considered. OP is from UK, blessed as it is with a mains voltage suitable for domestic purposes, unlike your quaint, paler imitation. :-)
------------------------------------------------------- Paul Taylor BSC (Hons) Electronics Technician School of Environmental Science University of East Anglia Norwich NR4 7TJ
The capacitor direct circuits work fine, but since they have no filtering you will see a strobe effect with moving objects in the illuminated area. This is not very noticeable while standing still or with stationary objects, but will cause moving objects to flicker or jitter about. The half-wave circuits will strobe at 60 PPS and the full wave will strobe at 120 PPS.
Early LED traffic signals with hundreds of LEDs were driven with similar circuits, some had half the panel running from each half-wave, and TV cameras would always catch only a band or stripes across the face due to the scan rate of the camera.
Just an alert to be aware of what you are trying to illuminate.
Actually, it's 12K for 20 mA since the line is 230. That would be about 0.27uF at 400 volts, non-polarized. You also need a series resistor to limit the surge current to a couple hundred mils. Something around 2K should work and will waste about 1 watt. But if you just use a single resistor and no cap, the power wasted is only about 5 watts, so all you save with the cap is 3 or 4 watts.
I suppose you're right. Here in the states, many houses are forced to run in a special 220 VAC circuit for things like air conditioners, electric heaters or clothes dryers, and electric ovens or ranges.
It probably would be a bit easier if we just used 220 for everything.
But you have to admit that 60 Hz is vastly better than 50 Hz. ;-)
OK thats a good point about the turn on surge, lets make it just a bit more complicated then......
How about a series cap feeding a beey zener at about 10 volts that can take the surge current. Then you can rectify and filter the output from the zener so that you also solve the strobe problem.
I read in sci.electronics.design that Mark wrote (in ) about 'Mains LED', on Fri, 18 Feb 2005:
Surely it's easier to include a series resistor to limit the inrush current?
--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
The trouble with sites like this is that they are only any use for those with limited knowledge of what they are doing. Then it leads them down dangerous paths - exactly as in the above link. Has anyone been killed by it yet? Hopefully no-one has tried it with a few uF (for, say, a Luxeon emitter) without any discharge mechanism on the cap.
Very few are born with full knowledge of a field, most people have to use some time learning it. When learning it is usual nice to have some tools to help, some people only use pen, paper and books. Other are accepting that we now have something called computers and internet and using these tools also.
Following the advice in newgroups or electronic magazines are can be even more dangerous.
A few uF is not exactly deadly, and your get only shocked by it, if your touch it at the wrong places.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.