A
system and method for controlling a matrix of light emitting diodes (LED) connected to an input line comprises a power converter for connecting to the matrix of LEDs and to the input line therebetween and for receiving from the input line an input current and an input
voltage characterized by a shape and a frequency and for providing a
direct current (D.C.) output for powering up the LEDs, yielding an operating current through the LEDs. The power converter includes a first
current sensor for sensing the input current and a second
current sensor for sensing the operating current. The
system further comprises a controller for connecting to both the input line and to the power converter. The controller includes a
voltage sensor for sensing the input
voltage and a pre-
regulator i) for receiving the operating current, the input current and the input voltage, ii) for biasing the operating current towards a target current value, and iii) for regulating the power converter to cause the input current to follow the shape and frequency of the input voltage, yielding a unity
power factor and minimizing the input current
harmonic distortion. The
present method and
system allows maximizing the energy savings, controlling current flowing in the diodes so as to obtain the
maximum flux of light with the minimum energy and also allows meeting all safety, EMI, reliability and robustness requirements.