LEDs Power Supply

A power supply (20) for a light source LED (10), said power supply (20): a power converter (23) to provide a regulated power including a LED current and voltage LED, the LED light source (10); a LED current sensor (25, R1) arranged to provide a current indicative perceived magnitude of the LED current flowing through the LED light source (10); a feedback controller (27, 125), wherein the current sensor LED (25, R1) is arranged to feed the perceived current to the feedback controller (27, 125), and the feedback controller (27, 125 ) is arranged to provide a feedback signal to the power converter (23) to control LED current included in the regulated power that is provided by the power converter (23) to the LED source (10, 110); a control switch LED (24) for controlling a flow of the LED current through the light source LED (10), wherein said control switch LED (24) includes a first switch (SW1) and a second switch (SW2), by setting the first switch (SW1) a current path from the LED light source (10) to said power converter (23) when the LED current is below a threshold peak; and a PWM LED (29) regulator to provide a modulation signal pulse width to said first switch (SW1) in response to a command external control to thereby regulate the light source (10); characterized in that: the current sensor LED (25, R1) is arranged to provide the perceived current to the feedback controller (27, 125) and the second switch (SW2), and in addition to the perceived current is used to provide said feedback signal to control the LED current included in said regulated power, the second switch (SW2) is arranged to operate the first switch (SW1) to be deactivated when the second switch (SW2) is activated and thereby limit the peak of the LED current to a safe level when the LED current perceived exceeds the peak threshold when the light source LED (10) is connected to the power supply (20) after energizing the power supply.