A Light Emitting Diode, LED, driver arranged for driving at least one LED, said LED driver comprising: - a rectifier arranged for receiving an Alternating Current, AC, supply voltage and for providing an output Direct Current, DC, voltage to said at least one LED; - a voltage regulating branch arranged for controlling an LED voltage provided to said at least one LED, via a supply line, wherein said voltage regulating branch is arranged for receiving said DC voltage from said rectifier, wherein said voltage regulating branch comprises: - a capacitor arranged for providing said LED voltage to said at least one LED; - a current limiter, connected in series with said capacitor, and arranged for charging said capacitor thereby providing said LED voltage; - an LED current limiter, connectable in series with said at least one LED, such that a residual headroom voltage is present over said LED current limiter (B 1); and characterised in that said voltage regulating branch further comprises - a feedback circuit comprising a comparator block arranged for providing an output based on a potential difference between two input terminals of said comparator block, wherein a first of said two input terminals is set to a predefined minimum residual headroom voltage, and wherein a second of said two input terminals is arranged for receiving a minimum value of said residual headroom voltage present on the LED current limiter, and wherein an output of said comparator block is used for controlling said current limiter, wherein the feedback circuit is arranged for controlling the charging of said capacitor by said current limiter, and thereby controlling the LED voltage provided to said at least one LED, by regulating the minimum residual headroom voltage present on the LED current limiter (B 1). - a rectifier arranged for receiving an Alternating Current, AC, supply voltage and for providing an output Direct Current, DC, voltage to said at least one LED; - a voltage regulating branch arranged for controlling an LED voltage provided to said at least one LED, via a supply line, wherein said voltage regulating branch is arranged for receiving said DC voltage from said rectifier, wherein said voltage regulating branch comprises: - a capacitor arranged for providing said LED voltage to said at least one LED; - a current limiter, connected in series with said capacitor, and arranged for charging said capacitor thereby providing said LED voltage; - an LED current limiter, connectable in series with said at least one LED, such that a residual headroom voltage is present over said LED current limiter (B 1); and characterised in that said voltage regulating branch further comprises - a feedback circuit comprising a comparator block arranged for providing an output based on a potential difference between two input terminals of said comparator block, wherein a first of said two input terminals is set to a predefined minimum residual headroom voltage, and wherein a second of said two input terminals is arranged for receiving a minimum value of said residual headroom voltage present on the LED current limiter, and wherein an output of said comparator block is used for controlling said current limiter, - a capacitor arranged for providing said LED voltage to said at least one LED; - a current limiter, connected in series with said capacitor, and arranged for charging said capacitor thereby providing said LED voltage; - an LED current limiter, connectable in series with said at least one LED, such that a residual headroom voltage is present over said LED current limiter (B 1); and characterised in that said voltage regulating branch further comprises - a feedback circuit comprising a comparator block arranged for providing an output based on a potential difference between two input terminals of said comparator block, wherein a first of said two input terminals is set to a predefined minimum residual headroom voltage, and wherein a second of said two input terminals is arranged for receiving a minimum value of said residual headroom voltage present on the LED current limiter, and wherein an output of said comparator block is used for controlling said current limiter,