The invention discloses a
direct current side
voltage control method of a three-phase four-leg
active power filter. The method comprises the following steps: establishing a
state space model of the three-phase four-leg
active power filter under dq0 coordinates, using a d-axis control quantity to control
direct current side
voltage, using q-axis and 0-axis control quantities to control alternatingcurrent output current and selecting q-axis and 0-axis output current and the
direct current side
voltage as
system output; defining an error vector, selecting the sliding mode surface and deriving ad-axis current command value; adding the d-axis current command value to output of a
harmonic wave detection circuit and taking the sum as total d-axis
reference current; and introducing an integral term into the sliding mode surface so as to improve the control precision. When voltage or load of a
power grid is unbalanced, two filters are increased, one is a wave trap for filtering out second
harmonic waves in voltage at a common connection point, the other one is a low-pass filter for filtering out the
harmonic waves contained in a voltage measured value on the direct current side and then accurate compensation of the
active power filter can be realized. By adopting the method, the problem of poor effects of conventional PI (proportional and integral) control is solved, and the method further has the advantages of fast response, strong robustness, capability of removing adverse effects of an outer ring on an inner ring and the like.