Driver circuit for operating at least one load, such as a LED unit, comprising - an input for receiving an input voltage (V IN) from a power supply, - an output for providing an output voltage (V OUT) to said load, - a switching converter with at least a storage inductor connected with a switching device, said switching converter being disposed to generate an average output current by sequential switching operation of said switching device between at least a charging mode and a discharging mode and - a switching controller, connected with said switching device to control the switching operation of said switching device, comprising - a feedback inductor, inductively coupled to said storage inductor to provide a feedback voltage, corresponding to the variation of an inductor current (I S) through said storage inductor and characterised by further comprising - a voltage compensation circuit, connected with said feedback inductor to determine at least one compensation signal from said feedback voltage, said compensation signal corresponding to said input voltage (V IN) or said output voltage (V OUT), wherein - said switching controller being configured to at least control said switching device between said discharging and said charging mode in dependence on said inductor current (I s) and to control a duty cycle of the switching operation in dependence on said at least one compensation signal, so that in case of a variation of said input (V IN) or output voltage (V OUT), said average output current, provided to the load, is maintained substantially constant. - an input for receiving an input voltage (V IN) from a power supply, - an output for providing an output voltage (V OUT) to said load, - a switching converter with at least a storage inductor connected with a switching device, said switching converter being disposed to generate an average output current by sequential switching operation of said switching device between at least a charging mode and a discharging mode and - a switching controller, connected with said switching device to control the switching operation of said switching device, comprising - a feedback inductor, inductively coupled to said storage inductor to provide a feedback voltage, corresponding to the variation of an inductor current (I S) through said storage inductor and characterised by further comprising - a voltage compensation circuit, connected with said feedback inductor to determine at least one compensation signal from said feedback voltage, said compensation signal corresponding to said input voltage (V IN) or said output voltage (V OUT), wherein - a feedback inductor, inductively coupled to said storage inductor to provide a feedback voltage, corresponding to the variation of an inductor current (I S) through said storage inductor and characterised by further comprising - a voltage compensation circuit, connected with said feedback inductor to determine at least one compensation signal from said feedback voltage, said compensation signal corresponding to said input voltage (V IN) or said output voltage (V OUT), wherein - said switching controller being configured to at least control said switching device between said discharging and said charging mode in dependence on said inductor current (I s) and to control a duty cycle of the switching operation in dependence on said at least one compensation signal, so that in case of a variation of said input (V IN) or output voltage (V OUT), said average output current, provided to the load, is maintained substantially constant.