36 DSPACE BASED FUZZY OGIC CONTOED BOOST CONVETE İbrahim SEFA, Necmi ATIN, Şaban ÖZDEMİ Department of Electrical Education, Faculty of Technical Education, GEMEC Group, Gazi University, 06500 Besevler, AnkaraTUKEY isefa@gazi.edu.tr, necmialtin@hotmail.com, sabaonozdemi@gmail.com Keywords: Boost converter, fuzzy logic controller, dspace Abstract: In this study, an IGBT equipped boost converter is proposed. A fuzzy logic controller is used to control the output voltage of the boost converter. Simulation and experimental results show that fuzzy logic controlled boost converter has fast transient response, better steadystate response, and the proposed converter is less sensitive to load changes. 1. INTODUCTION DCDC converters are widely used in switchedmode power supplies, adjustable speed drives, uninterruptible power supplies and many other applications to change the level of an input voltage to fulfill required operating conditions. These converters are usually subjected of large load variations when operated in these applications. Therefore, the main objective of a good control strategy to be developed for such converters must be to achieve an output voltage regulation, under large load variations, as fast as possible without having any stability problem [1]. Many control strategies have been proposed in recent publications. inear PID and PI controllers are usually designed for DCDC converters using standard frequency response techniques based on the small signal model of the converter. A Bode plot is used in the design to obtain the desired loop gain, crossover frequency and phase margin. These control strategies that are based on the linearized smallsignal model of the converter have good performance around the operating point. However, a boost converter s small signal model changes when the operating point varies. The poles and a righthalf plane zero, as well as the magnitude of the frequency response, are all dependent on the duty cycle. Therefore, it is difficult for the PID controller to respond well to changes in operating point, and they exhibit poor performance when the system is subjected of a large load variation [23]. Fuzzy logic control theory is a mathematical discipline based on vagueness and uncertainty. The fuzzy control does not need an accurate mathematical model of a plant. It allows one to use nonprecise or illdefined concepts. Fuzzy logic control is also nonlinear and adaptive in nature that gives it robust performance under parameter variation and load disturbances [4]. This control technique relies on the human capability to understand the system s behavior and is based on qualitative control rules. Thus, control design is simple since it is only based on IF...THEN linguistic rules [5]. In this paper, a fuzzy logic controlled boost converter is proposed. A Fuzzy ogic Controller (FC) is used to control the converter output voltage. The boost converter is designed and simulated by using MATAB/Simulink software. Then dspace based fuzzy logic controlled boost converter is implemented and tested under large load changes. Simulation and experimental results shows that fuzzy logic controlled boost converter has fast transient response and better steadystate response.
İ. SEFA, N. ATIN, Ş. ÖZDEMİ Dspace Based Fuzzy ogic Controlled Boost Converter 37 This paper organized as fallows: Section II describes mathematical model of the boost converter. Section III introduces the FC. Section IV presents the simulation and experimental results of fuzzy logic controlled boost converter and Section V is the conclusions. 2. MATHEMATICA MODE OF THE BOOST CONVETE The dcdc boost converter circuit is shown in Fig. 1. By considering this circuit, the equations describing the operation of the converter can be written as: I V S S C V 0 D Fig. 1. The boost converter dv 0 0 C V = (6) The control approach is to determine a control signal d that achieves a good output voltage regulation in the presence of disturbances such as step changes in load or in the source voltage, and converter parameter changes. Also, it should improve the damping and reduce the recovery time by decreasing the overshoots and undershoots [1]. 3. FUZZY OGIC CONTOE FO BOOST CONVETE Fuzzy ogic Controller is one of the most successful applications of fuzzy set theory, introduced by Zadeh in 1965 [6]. Its major features are the use of linguistic variables rather than numerical variables. The general structure of the FC is shown in Fig 2. As seen from Fig. 2, a FC is comprises fuzzifier, knowledge base, inference engine and defuzzifier. di = VS dv 0 (1) dv C V0 = di (2) 0 where d is the control signal equal to 1 when the switch is ON and 0 when the switch is OFF. The above equations can also be written as [1]: Switch ON: di dv C Switch OFF: di = V (3) S V 0 V0 = I (4) 0 = VS (5) Fig. 2. Structure of FC Defining the input and output variables is one of the important steps in the fuzzy controller design. In this study, the output voltage error and its rate of change are defined as input variables and change in duty cycle is the controller output variable. The three variables of the FC, the error, the change in error and the change in duty cycle, have seven triangle membership functions for each. The basic fuzzy sets of membership functions for the variables are as shown in the Figs. 3 and 4.
i 38 UNIVESITY OF PITESTI EECTONICS AND COMPUTES SCIENCE, SCIENTIFIC BUETIN, No. 8, Vol.2, 2008 Fig. 3. Membership functions for error and change in error The fuzzy variables are expressed by linguistic variables positive large (P), positive medium (PM), positive small (PS), zero (Z), negative small (NS), negative medium (NM), negative large (N), for all three variables. Table 1 shows the rule base for the FC. A rule in the rule base can be expressed in the form: If (e is N) and (de is N), then (cd is N). The rules are set based upon the knowledge and working of the system. The rule base adjusts the duty ratio for the PWM of the boost converter based upon the changes in the input of the FC. The number of rules can be set as desired. The rule base includes 49 rules, which are based upon the seven membership functions of the input variables. The rule base of the FC is shown in Table 1. Fig. 4. Membership functions for change in duty cycle The commonly used Min Max inference method is implemented. Defuzzification is done using center of gravity method to generate nonfuzzy control signal for change in duty cycle of the PWM switching of boost converter [7]. Change in error (ce) Table 1. ule base of FC Error (e) N NM NS Z PS PM P N N N N N NM NS Z NM N N N NM NS Z PS NS N N NM NS Z PS PM Z N NM NS Z PS PM P PS NM NS Z PS PM P P PM NS Z PS PM P P P P Z PS PM P P P P [I] Series C Branch i Input I Iinput Diode i Iload Ioad [Iload] Vs v Vsource Vload1 [Vsource] [G_boost] Ic Ic Vload v Step1 g 2 1 Ideal Switch g C oad oad1 IGBT/Diode [IC] Vload E 1 z Unit Delay Step e 1/9 Gain1 0<Id<0.1 e Out1 Fuzzy ogic Controller 1 Gain2 Add 0<Id<0.999 Triangle1 >= oolea [G_boost] Vload Subsystem Fig. 5. Simulink model of the boost converter.
İ. SEFA, N. ATIN, Ş. ÖZDEMİ Dspace Based Fuzzy ogic Controlled Boost Converter 39 4. SIMUATION AND EXPEIMENTA ESUTS A fuzzy logic controlled boost converter is design and implemented. Firstly, boost converter is modeled and simulated with MATAB/Simulink [8]. Output voltage of the boost converter is control with FC. The FC is designed with Fuzzy ogic Toolbox [9]. Simulink model of the simulated system is shown in Fig. 5. IGBT is used in boost convert and switching frequency chosen as 20kHz. So it can be said that only the boost inductor limits the output power of the converter, and a high power converter can be easily implemented. DS1104 dspace controller board is used in boost converter controller system. dspace control cards are quite popular because of integrating the MATAB/Simulink simulations and hardware control in a system and widely used in controlling motors and power electronic converters [10]. DS1104 Controller Board is placed in the PCI slot on the mainboard of PC. The DS1104 contains a main processor and a slave Digital Signal Processor (DSP). The main processor is a 603 PowerPC, running at 250MHz with 32 MB of SDAM, and the slave DSP is a TMS320F240, Texas Instrument floatingpoint DSP, 20MHz CPU clock [11]. Moreover, the dspace software includes a graphical objectoriented package (the Control Desk) to develop userfriendly graphical user interfaces (GUI) for online monitoring and supervision. Operation, all kind of analog and digital signals and variables of the system can be monitored in real time by using GUI. The ControlDesk is also used to load code to board, run or stop the program [11,12]. These GUIs shorten the design period and can visualize the control parameters [10]. In Fig 6, the GUI whish is designed for fuzzy logic controlled boost converter is shown. Fig. 7 shows the transient response of the boost converter when the reference voltage is changed. eference voltage (V EF ), converter output voltage (V 0 ), converter input voltage (V in ) and converter output current (I 0 ) is seen in figure. The reference voltage is switched 40V to 50V at t=25ms. As seen from figure, output voltage is tracks the reference voltage with a small overshot and small settling time. Improved steadystate performance of the controller is also shown in the figure. Fig. 6. GUI of fuzzy logic controlled boost converter
40 UNIVESITY OF PITESTI EECTONICS AND COMPUTES SCIENCE, SCIENTIFIC BUETIN, No. 8, Vol.2, 2008 the C source code is generated and loaded to the processor automatically. Experimental results for Fig. 7. Transient response for reference voltage variation Fig. 9. Boost converter response for reference voltage variation Boost converter output voltage transient response is shown in Fig. 8 when the load is changed from 50% to 100% and from 100% to 50%. It is seen large load variations have very limited effects on the output voltage of the fuzzy logic controlled boost converter. A very small voltage decrease and overshot occurs on output voltage, and this voltage disturbance is removed in 2 milliseconds. The boost converter has fast transient response and very small steadystate error. dspace based FC controlled boost converter is given in Figs. 911. In Fig. 9 converter transient response is shown when the reference voltage is changed. As seen from figure, converter output voltage tracks the reference voltage with very small overshot and small response time The transient response of the boost converter when the load changes from 50% to 100% and from 100% to 50% in Figs. 10 and Fig. 11, respectively. Experimental results are similar with the simulation results. The FC has improved transient response and so, load changes have very limited effect on the boost converter output voltage and FC removes the voltage error quickly. Fig. 8. Transient response for load variation After the simulation task is completed, the dspace blocks that are used to read analog signals and generate switching signals are added to Simulink model. When this model is Build, Fig. 10. Half to full load switching interval
İ. SEFA, N. ATIN, Ş. ÖZDEMİ Dspace Based Fuzzy ogic Controlled Boost Converter 41 EFEENCES Fig. 11. Full to half load switching interval 5. CONCUSIONS In this study a dspace based fuzzy logic controlled boost converter is designed and implemented. The boost converter is IGBT equipped and the switching frequency is selected as 20 khz. So, only the inductor size may limit the power level of the converter, and it can be said that the converter can be easily implemented in high power levels. The FC is designed with Fuzzy ogic Toolbox and the simulations are performed in MATAB/Simulink. Simulation and experimental results show that boost converter has fast transient response and better steadystate response under the variable load conditions. The GUI designed with ControlDesk provides to monitor the analog and digital signals, and control variables. The system design duration is shortened by using of the dspace control system. [1] H. KÖMÜCÜGI, A PItype selftuning fuzzy controller for dcdc boost converters, The 30 th Annual Conference of the IEEE Industrial Electronics Society, 2004, pp. 209214 [2].D. MIDDEBOOK, S. CUK, A general unified approach to modeling switching converter power stages, IEEE Power Electronics Specialist (PESC) Conf. Proc., 1976, pp. 1831. [3]. GUO, J.Y. HUNG,.M. NEMS, Comparative evaluation of linear pid and fuzzy control for a boost converter, 31 st Annual Conference of IEEE Industrial Electronics Society, IECON 2005, 2005, pp. 555560 [4] B.. IN, Analysis of fuzzy control method applied to dcdc converter control, Applied Power Electronics Conference and Exposition, APEC '93, 1993, pp. 2228 [5] P. MATTAVEI,. OSSETTO, G. SPIAZZI, P. TENTI, Generalpurpose fuzzy controller for dc dc converters, IEEE Transactions on Power Electronics, Vol. 12, No. 1, 1997, pp. 7986. [6]. A ZADEH, Outline of a new approach of the analysis of complex system and decision processes, IEEE Trans. Syst., Man, Cybern., Vol. SMC3, No. 1, 1963, pp. 28 44. [7].X. WANG, Stable adaptive fuzzy control of nonlinear systems, IEEE Transactions on Fuzzy Systems, Vol. 1 (2), 1993, pp. 146 151. [8] The Mathworks Inc., MATAB/SIMUINK elease Notes for elease 14 with Service Pack 3. [9] Fuzzy ogic Toolbox 2 User Guide, The Mathworks, Inc., 2005. [10] H.. I, A.P. HU, J. GAO, X. DAI, Development of a direct acac converter based on a dspace platform, International Conference on Power System Technology, 2006, pp. 1 6 [11] DS1104 &D Controller Board Features, elease 5.0 November 2005 [12] dspace User s Guide, Digital Signal Processing and Control Engineering, Germany.