Author Topic: Powering LED from mains  (Read 3677 times)

0 Members and 1 Guest are viewing this topic.

Offline sansanTopic starter

  • Contributor
  • Posts: 20
  • Country: id
  • What?
Powering LED from mains
« on: January 04, 2021, 12:26:00 pm »
Greetings everyone..

Please help me with this circuit.
So, I try to power my LED from the mains using capacitor.
My mains is 220V 50Hz, the capacitor is 1.5uF, the LED is 1W with hefty heatsink on it.
the circuit looks like this :


I think the capacitor would  only pass about ~100mA, but my LED just get instant death.
Am I still need a limiting resistor for it? or something wrong with that circuit?

Thanks.
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1393
  • Country: lt
Re: Powering LED from mains
« Reply #1 on: January 04, 2021, 12:49:36 pm »
The problem is that at the moment of turn on, the voltage is most likely not zero.  In fact it is random. So for example if you turn on while the mains cycle is at the positive peak, you essentially get a rising edge with a frequency much much higher then 50Hz. So the impedance of that capacitor will be much smaller and the current will be huge at this moment. Obviouslly enough to damage a LED as you saw yourself.

Edit: You could include current limitting resistor, but for high power LED it is not practical, because it will waste many watts of power. For higher current you should really use some sort of switching converter.
« Last Edit: January 04, 2021, 01:23:29 pm by Manul »
 
The following users thanked this post: sansan

Online ledtester

  • Super Contributor
  • ***
  • Posts: 3988
  • Country: us
Re: Powering LED from mains
« Reply #2 on: January 04, 2021, 01:08:17 pm »
In this video starting at 18:46, bigclive explains that a resistor is used to limit inrush current:

https://youtu.be/Q23uh7AjjXw?t=18m46s
« Last Edit: January 04, 2021, 01:10:32 pm by ledtester »
 
The following users thanked this post: sansan

Offline sansanTopic starter

  • Contributor
  • Posts: 20
  • Country: id
  • What?
Re: Powering LED from mains
« Reply #3 on: January 04, 2021, 03:08:38 pm »
Thank you Manul & ledtester  :-+

now I understand what happens.
And putting a limiting resistor is impractical, simply too hot!

I'll use phone charger(5V) output instead to power the LED.

 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22253
  • Country: gb
  • 0999
Re: Powering LED from mains
« Reply #4 on: January 04, 2021, 03:50:04 pm »
Thank you Manul & ledtester  :-+

now I understand what happens.
And putting a limiting resistor is impractical, simply too hot!
The idea is to use the capacitor, as well as the resistor, which won't get to hot because it's a low value, as it won't dissipate much power. It works best for long strings of LEDs, so the voltage drop across the resistor, is much less than the LEDs.

Quote
I'll use phone charger(5V) output instead to power the LED.
Assuming your figures of 100mA and 1W are correct, then a 5V power supply won't work. P = V*I, so for 1W at 100mA, you need at least 10V, which is an unusual forward voltage for an LED. The numbers you've given, just don't add up.

I agree that using a small mains power supply, is the safest option. Find out the forward voltage of your LED and use a power supply with >10% higher voltage and a suitable curent limiting resistor.
 

Offline mstevens

  • Regular Contributor
  • *
  • Posts: 133
Re: Powering LED from mains
« Reply #5 on: January 04, 2021, 04:04:09 pm »

Am I still need a limiting resistor for it? or something wrong with that circuit?

Thanks.

Laconically... Yes.
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1393
  • Country: lt
Re: Powering LED from mains
« Reply #6 on: January 04, 2021, 04:26:40 pm »
Mostly for educational purposes, you can make such capacitor circuit to work, but again practicality is questionable. Rough process:

1. It is best to take full bridge rectifier. Look in datasheet, what maximum pulse current it tolerates.
2. Choose current limiting resistor R1, so the maximum possible current does not exceed diode bridge maximum allowed. Lets say around 10A.
3. Choose capacitor C1 to set LED current.
4. Choose capacitor C2 to be at least 200x bigger then C1, so that C1/C2 divider does not exceed LED forward voltage. Also it needs to be low enough ESR such that at peak pulse current, the drop voltage does no exceed LED forward voltage.

It should work reliably, but if your LED becomes open, the capacitor C2 will go overvoltage. So LED should always be connected.

Edit: Added R2 for high voltage capacitor discharge, as suggested by SiliconWizard ;)
« Last Edit: January 04, 2021, 08:41:46 pm by Manul »
 
The following users thanked this post: sansan

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22253
  • Country: gb
  • 0999
Re: Powering LED from mains
« Reply #7 on: January 04, 2021, 04:37:13 pm »
Mostly for educational purposes, you can make such capacitor circuit to work, but again practicality is questionable. Rough process:

1. It is best to take full bridge rectifier. Look in datasheet, what maximum pulse current it tolerates.
That's good advice, but you'll probably find it's the LED, which is the weakest link, rather than the bridge rectifier.

Quote
It should work reliably, but if your LED becomes open, the capacitor C2 will go overvoltage. So LED should always be connected.
A capacitor rated to the full mains voltage could be use to solve that problem, but fortunately LEDs normally fail shorted, rather than open.
 
The following users thanked this post: sansan

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1393
  • Country: lt
Re: Powering LED from mains
« Reply #8 on: January 04, 2021, 04:43:22 pm »
That's good advice, but you'll probably find it's the LED, which is the weakest link, rather than the bridge rectifier.

LED is not forgotten. The C1/C2 ratio keeps it safe. I wrote about it.

A capacitor rated to the full mains voltage could be use to solve that problem, but fortunately LEDs normally fail shorted, rather than open.

High voltage capacitor will be bulky and expensive at this capacitance, so practicality drops. You are right - LED usually fails short.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22253
  • Country: gb
  • 0999
Re: Powering LED from mains
« Reply #9 on: January 04, 2021, 07:51:47 pm »
That's good advice, but you'll probably find it's the LED, which is the weakest link, rather than the bridge rectifier.

LED is not forgotten. The C1/C2 ratio keeps it safe. I wrote about it.
You're right. When there's a transient, it will form a capacitive divider, which will reduce the voltage to below the LED's forward voltage, during the initial on transient. Eventually it'll charge up, causing the LED to glow. It also has the added benefit of reducing flicker.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17529
  • Country: fr
Re: Powering LED from mains
« Reply #10 on: January 04, 2021, 08:18:45 pm »
Quick additional note: I'd use a Class-X cap for C1, and a resistor parallel to it - high value such as 1Meg - so that the cap gets discharged when the circuit is unplugged, otherwise it may hold a dangerous voltage across it.

Now the proposed bridge above has indeed the added benefit of reducing flicker to a negligible level, whereas your original circuit will awfully flicker. You probably won't be able to notice it unless by a stroboscopic effect, but even so, I wouldn't recommend it: a 1W LED is quite bright already, and flickering at a few 10's of Hz, I don't think it would be ultra safe: see https://epilepsysociety.org.uk/photosensitive-epilepsy

 
The following users thanked this post: Manul

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22253
  • Country: gb
  • 0999
Re: Powering LED from mains
« Reply #11 on: January 04, 2021, 09:19:23 pm »
Good point and talking of safety, the heatsink should be earthed.
 

Offline sansanTopic starter

  • Contributor
  • Posts: 20
  • Country: id
  • What?
Re: Powering LED from mains
« Reply #12 on: January 04, 2021, 09:49:40 pm »
Thank you Manul & ledtester  :-+

now I understand what happens.
And putting a limiting resistor is impractical, simply too hot!
The idea is to use the capacitor, as well as the resistor, which won't get to hot because it's a low value, as it won't dissipate much power. It works best for long strings of LEDs, so the voltage drop across the resistor, is much less than the LEDs.

Quote
I'll use phone charger(5V) output instead to power the LED.
Assuming your figures of 100mA and 1W are correct, then a 5V power supply won't work. P = V*I, so for 1W at 100mA, you need at least 10V, which is an unusual forward voltage for an LED. The numbers you've given, just don't add up.

I agree that using a small mains power supply, is the safest option. Find out the forward voltage of your LED and use a power supply with >10% higher voltage and a suitable curent limiting resistor.
Maybe there is a misinterpretation about what I draw. I mean, the 1W LED is the LED power dissipation (specification) figure, not the intended power to use.

The led Vf is only 3V. So I still have 2V. I only need about 18Ω or 22Ω resistor, that only dissipating roughly 200mW.
It's a cheap LED, I don't think I can find any datasheet anyway..  ;D

I'm too sleepy right now..  :=\
Thanks everyone.  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf