An apparatus, having a modular structure, for regulating the harmonics of current drawn from power lines by an electric load, comprising:
- an output capacitor connected in parallel with said load for filtering the output voltage ripple at said load;
- a first rectifier circuit module consisting of an array of rectifying diodes, the inlet of which is connected to the power lines;
- a second Switch and Controller Assembly (SCA) module for controlling said current to follow the voltage across said power lines by only sampling the current drawn from said power lines and the output voltage of said second SCA, said second SCA module consisting of a power switch and controller and their interconnections, the inlet of which is connected to the outlet of said first rectifier circuit module through at least one serially connected input inductor, for filtering the current drawn from the rectifier module and the output of which is connected to said output capacitor.