This paper introduces a control structure based on the classical PID controller in order to monitor the IGBT switching frequency while still guaranteeing the qualities of SAPF. There are two controlled loops needed for the system. | Design of shunt active power filter based on the classical pid controller for eleminating harmonics