# INTRODUCTION he widespread use of power electronics in domestic and industrial applications had induced power line losses and electrical interference problems, which resulted in low power factor, efficiency and bad quality of the power electrical distribution system. Classical solutions use passive filters, made up of capacitors and inductors, to reduce line current harmonics and to compensate reactive power. But these filters have several drawbacks: risk of parallel and series resonance with the AC source, bulky passive components, and low flexibility due to fixed compensation characteristics. Active filters can be connected in series or in parallel to the nonlinear loads. Shunt active filters are the most important and widely used industrial processes for active filtering The main purpose of shunt filters is to cancel the load current harmonics fed to the supply, so that the power supply needs only to feed the fundamental active current component. In this frame, photovoltaic generation systems have the opportunity to be as much as suitable for their important advantage being able to produce electrical energy very close to the electric loads. In this way the transmission losses are avoided and it is also possible to satisfy the daily load diagrams' peaks since they supply the maximum power quite in correspondence to the maximum request. The sliding mode control (SMC) is one of the popular strategies to deal with uncertain control systems [9]. The main feature of SMC is the robustness against parameter variations and external disturbances. Various applications of SMC have been conducted, such as robotic manipulators, aircrafts, DC motors, chaotic systems, and so on [10] The motivation for this work was to design a digitally controlled, combination active filter and photovoltaic (PV) generation system. # Sliding Mode Control of a Grid Connected Photovoltaic Generation System with Active Filtering Function The motivation for this work was to design a digitally controlled, combination active filter and photovoltaic (PV) generation system. This work focuses on a proposed control scheme for the dual function system and on the effects of delay on the control of an active filter. The scheme of the proposed multi-function converter is shown in Fig. 1 T With I and V are respectively the PV current and voltage, I 0 : leakage or reverse saturation current, q: electron charge, n: Ideality factor, K is the Boltzman's constant ( 1.38.10 -23 J/K), R sr :series cell resistance, R sh :shunt cell resistance . # b) Boost converter The Boost converter shown in Figure 2, it has step-up conversion ratio. Therefore the output voltage is always higher than the input voltage. The converter will operate throughout the entire line cycle, so the input current does not have distortions and continuous. It has a smooth input current because an inductor is connected in series in with the power source. In addition the switch is source-grounded; therefore it is easy to drive. (d-q) frame through the Park transformation as follows [1], see appendix: 1 1 fd f sd fd fq fd f f f fq f sq fq fd fq f f f q c d fq fd di R v i wi v dt L L L di R v i wi v dt L L L d dU d i i dt C C ? = + + ? ? = + + ? = + Where d d ,d q d-Axis and q-axis switching state functions, (2) Sliding Mode Observer of a Grid Connected Photovoltaic Generation System with Active Filtering Function XIII Issue VIII Ve sd v ? and sq v ? -d-Axis and q-axis supply voltages. The bi-directional characteristic of the converter is very important in this proposed photovoltaic system, because it allows the processing of active and reactive power from the generator to the load and vice versa, depending on the application. Thus, with an appropriate control of the power switches it is possible to control the active and reactive power flow. i i v P i i q i i v ? ? ? ? ?? ? = ? ? ? ?? ? + ? ? ? ? ? ? ? ? ? ? Where d v ? and q v ? are the estimated main line d) The state equations are shown in (4) and summarized as ( 5) 1 1 f sd fd f f f fd fd fq fq sq fq f f f f R v di w L L L i v dt i v v di R w L L dt L ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? = + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I AI Bu G = + ? ? The sliding surfaces (S) are equal to the error of state variables, which can be express as: SMP f SMI f S K E K E dt = + ? Where * * * * 0 0 ; ; ; ; 0 0 d SMPd SMid fd f SMP SMI q SMPq SMiq fq S k k i S E I I I K K S k k i ? ? ? ? ? ? ? ? = = ? = = = ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Where SMPd k , SMPq k , SMid k and SMiq k 3 are positive constants And consequently, their temporal derivatives are given by: SMP f SMI f S K E K E = + ? ? The equivalent control can be calculated from the formula 0 S = ? , and the stabilizing control is given to guarantee the convergence condition (5). # * ( ) 0 SMP SMI f SMP S K I K E K AI Bu G = + ? + ? = ? ? The equivalent control eq u is deduced by imposing the sliding regime condition S ? obtaining: 1 * ( ) ( ) eqd eq SMP SMI f SMP eqq u u K B K E K AI Bu G I u ? ? ? ? ? = = ? + ? + ? ? ? ? ? ? ? Finally, the control law is given by: ( ) ( ) sd sq eqd eqd disd eq dis eqq disq eqq u k sign S u u u u u u u u k sign S + ? ? + ? ? = + = =? ? ? ? + + ? ? ? ? ? ? For the sliding mode DC-link voltage controller based on integrator can be determined by substituting the reference line current, is chosen to determine switching surface functions: * * ( ) ( ) dc SMPC c c SMIC c c S K U U K U U d t = ? + ? ? And consequently, their temporal derivative is given by: * * ( ) ( ) 0 dc SMPC c c SMIC c c S K U U K U U = ? + ? = ? ? ? Finally, the control law is given by: * * * ( ( ) ) ( ) SMIC ceq c c c SC c c SMPC K i C U U U K sig n U U K = ? + + ? ? The sliding mode observer uses the system model with model with the sign feedback function. The continuous time version of the SMO is described by Equation (15). # ( . ( ) f f f est f f f f f f est f f f i i i i v d sign R i i i i v dt L ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? = ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? The estimated values of the grid voltage are obtained from the law-pass filter: f f est s estSMO f f est s estSMO i i v LPF sign i i v ? ? ? ? ? ? ? ? ? ? ? ? = ? ? ? ? ? ? ? ? ?(16) While the (???) components of the virtual grid flux are calculated as follows: 0 0 ( . ( ) f f est est est f f est est est i i sign dt i i ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? = + ? ? ? ? ? ? ? ? ? ? ? ? ? ? Hence the structure of the virtual grid flux sliding-mode observer presented in Fig. 3. The sliding surface representing the error between the measured and references courrents are given by this relation. f f est f f est i i i i ? ? ? ? ? ? ? ? ? ? ? ? ? = ? ? ? ? ? ? ? ? ? The sliding mode will exist only if th following condition # Simulation Result In simulation part, power system is modeled as 3wired 3-phase system by an RL load with uncontrolled diode rectifier. In the circuit, the ac source with frequency of 50Hz. The grid side line voltage is 220V. The line resistor is 0.25?. The line inductance of each phase is 1mH. The dc capacitor is 5000?F; the dc voltage is set to be 700V. The switching frequency for three-phase is 15 kHz. The Pv model applied in simulation is as Fig . # Conclusion This paper outlined the modeling and development of the control system for the active filter/PV generation system with sliding mode controller based on a Sliding Mode Observer. The results verify the validity of the proposed control scheme. Unity power factor is achieved, active and reactive current are decoupled controlled in the synchronous reference frame and the objective of maintaining balanced voltages in DC-link capacitors is carried out effectively with the proposed SVM, and it offers sinusoidal line currents (low THD) for ideal and distorted line voltage . 1![Figure 1 : Scheme of the multi-function converter](image-2.png "Figure 1 :") 2![Figure 2 : Boost Converter c) Mathematical Model of PWM Converters A three phase voltage inverter is used to interface the PVG with the grid by converting the dc power generated by the PVG into AC power to be injected to the grid. The dynamic model of a PWM DC-AC Converter can be described in the well known(d-q) frame through the Park transformation as follows[1], see appendix:](image-3.png "Figure 2 :") ![Global Journal of Researches in EngineeringVolume 14](image-4.png "F") ![obal Journal of Researches in Engineering](image-5.png "F") ![Sliding Mode Observer of a Grid Connected Photovoltaic Generation System with Active Filtering FunctionThe Regulators Synthesis XIII Issue VIII Version ( . ( )](image-6.png "") 3![Figure 3 : Sliding-mode current observer for virtual grid flux](image-7.png "Figure 3 :") 47![Fig.7. Simulated responses for a step change in the load resistor: A) Harmonic currents injected by the active power filter, Load change at 0.3 s. B) Source voltage, source current. C) DC side capacitor voltage and filter D) Current spectrum harmonic: Grid in Phase 1.](image-8.png "4 .Fig. 7 .") 7![Fig .7.D shows simulation results for the DC bus voltage controller. The voltage vdc on the DC side of the inverter is stable and regulated around its reference. The THD before filtering for the first line is 27.46 % and becomes 1.79% after filtering. III.](image-9.png "Fig . 7 .") © 2013 Global Journals Inc. (US) © 2013 Global Journals Inc. (US) * Sliding Observers for Robot Manipulators CCanudes De Wit JJ ESoltine Automatica 27 1991 * A Fully Digital Vector Current Control of Three Phase Shunt Active Power Filters'I AKheloui KAliouane ECON2002 0-7803-7474-6/02 /$17.00 © 2002 IEEE * Power quality improvement using DPC controlled threephase shunt active filter, Science Direct JPChaoui FGaubert LKrim Rambault 10.1016/j.epsr.2009.10.020 * Globally Stable Control of Three-Phase Three Wire Shunt Active Power Filters KHasan KOsman Elec. Eng 89 5 2007 * Direct current control of an active power filter for harmonic elimination, power factor correction and load unbalancing compensation JHelder JoséMAzevedo AntónioPFerreira AdrianoSMartins Carvalho Proceedings of the 10 European Conference on Power Electronics and Applications, EPE'03 the 10 European Conference on Power Electronics and Applications, EPE'03Toulouse 2003 * Academie d AEBecquerel ComtRend Sciences 9 561 1839 * The use of an active power filter for harmonic elimination and power quality improvement in a nonlinear loaded electrical installation AntonioPMartins Proceedings of the International Conference on Renewable Energies and Power Quality, ICREPQ'03 the International Conference on Renewable Energies and Power Quality, ICREPQ'03Vigo 2003 * A new space vector control of the three phase PWM Rectifier KAliouane ;Powereng SètubalPortugal April 2007 * Variable structure control a survey JYHung WGao JCHung IEEE Trans. Ind. Electr 40 1993 * Global sliding-mode control improved design for a brushless DC motor HSChoi YHPark YSCho MLee IEEE Control Systems Magazine 21 2001 * Unified Power Conditioner in a Grid Connected Photovoltaic System MarceloCCavalcanti GustavoM SAzevedo Electrical Power Quality and Utilisation XII 2 2006 Journal * Active filtering function of three-phase PWM boost rectifier under different line voltage conditions MariuszCichowlas MariuszMalinowski JosepPou IEEE transactions on industrial electronics 52 2 april 2005