This project proposes the use of new lighting technologies being developed on high- brightness LEDs (HBLEDs) due to their high energy performance. The problem posed by these LEDs is the power supply, because these semiconductor devices are very low power. Given its high performance, we will implement an adaptation stage of voltage and current in order to introduce the least amount of harmonics in the network. For that, we will use an active power factor corrector based on the switching converter SEPIC. Using an sliding mode control technique we will impose a Loss- Free Resistor (LFR) behavior in this converter. Thus, the LFR will act as an ideal rectifier with a power factor near the unity