I. Introduction
The extensive use of nonlinear load (computers, TVs, refrigerators, printers, fax machines, etc) causes harmonic distortion. Harmonics increase the conduction losses, eddy current losses and also have bad impacts on other loads connected to the same voltage source. Passive filters can be used to improve the power quality, but these are expensive and bulky solutions. These problems can be overcome by use of active power filter (APF). Two types of APFs exist; shunt APFs and series APFs. Shunt APFs are used to compensate current harmonics, while series APFs are used to compensate the voltage harmonics caused by nonlinear loads. In this article a single phase shunt APF is presented. Different control strategies have been applied to control single phase shunt APFs in the literatures [1]– [8]. However sliding mode (SM) control is well known due to its ease of implementation and robustness. SM controllers have a property of operating at infinite and varying switching frequency such that the state variables of the system follow the required trajectory. However high and varying switching frequency causes losses and even damage of the system.