This document discusses the use of an active power filter controlled by a PI controller to minimize harmonics and improve power quality. It begins with an introduction to active power filters and the need to compensate for non-linear loads. It then provides details on the proposed PI control scheme, including the control system block diagram and simulation model. Simulation results show that the PI-controlled active power filter is able to make the source current sinusoidal and reduce total harmonic distortion.