DSP-based electronic load: fuzzy adaptive PID control strategy

Publisher:huijiazi5210Latest update time:2015-03-22 Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
  In the actual debugging process, the parameters of the controlled test object on site are unknown. The introduction of large-scale analog devices on the electronic load power board and signal board has the inertia lag of the control signal, which makes the conventional PID controller often unable to achieve the ideal control effect. In order to further improve the performance of PID control and adapt to the control requirements of complex working conditions and high-performance indicators, fuzzy PID control is proposed for the control signal delay. It combines the traditional PID adjustment technology with the fuzzy control technology, and uses fuzzy logic to adjust the parameters of the PID regulator to compensate for the influence of the analog device delay on the system. Therefore, this system introduces fuzzy control theory to design a fuzzy PID controller, and uses fuzzy control rules to automatically adjust the parameters of the PID controller according to the changes in the voltage or current values ​​monitored in real time. The core component of the electronic load system signal board control is MOSFET. Under a constant drain-source voltage, its drain current and gate-source voltage change nonlinearly, and as the drain-source current changes, the temperature of the MOSFET rises, and its transfer characteristic curve is in the process of changing. Introducing intelligent control algorithms into the PID controller further improves the control accuracy of the electronic load. The experience of electronic load debugging is stored as knowledge in the DSP , so that the DSP can automatically adjust the PID parameters according to the actual situation on site, thus becoming an intelligent regulator with PID parameter self-tuning function.

  Since experience is not easy to describe accurately, various signals and evaluation indicators in the control process are not easy to express quantitatively, fuzzy theory is the best way to solve this problem. Using fuzzy control rules, DSP uses fuzzy reasoning according to the actual response of the electronic load system to achieve automatic adjustment of PID parameters, which is fuzzy adaptive PID control. With error e and ec as input, according to the change of deviation e and deviation change rate ec, fuzzy control rules are used to modify PID parameters online.

  

 

  The three parameters in the PID controller are continuously adjusted to meet the requirements of PID parameter self-tuning at different times. Its mechanism is shown in Figure 4.7.

  

 

  Since the designed electronic load only uses two parameters, P and I, in this study, e and ec are continuously detected during operation, fuzzy rules are used for fuzzy reasoning, and the two parameters P and I are modified online, so that the controlled object has good dynamic and static performance.

  The core of fuzzy control design is to summarize the technical knowledge and practical experience of the commissioning personnel, select the input and output variables of the fuzzy controller according to the requirements of the site and the actual situation of the controlled object, select the domain and membership function of the variables, establish a suitable fuzzy rule table, and adjust the parameters after defuzzification by querying the fuzzy matrix table. The fuzzy rule tables of Kp and KI are shown in Table 4.3 and Table 4.4.

  (1) Domain of input/output variables In the electronic load control system, the load current value deviation e and the deviation change rate ec (taking the constant current high position as an example) have actual domains (basic domains) of

  

 

  The setting value is 6A, the basic domain of the deviation value e is (-0.04, 0.04), and the basic domain of the deviation change rate ec is (-1, 1). The basic domain of the control quantity is (-1, 1). The basic domain of the control quantity is

  

 

  The choices of its basic domain (obtained based on empirical values) are: K*P∈(-0.035, 0.035) and K*I∈(-1.35, 1.35).

  When selecting the domain of fuzzy variables, we must consider that each fuzzy subset can cover the domain well, prevent the loss of control, and at the same time, we cannot arbitrarily increase the number of elements in the domain. If there are too many elements in the domain, although the control accuracy of the system is improved, the workload of DSP is greatly increased, which may cause the system to run too slowly. Therefore, when selecting a specific fuzzy variable domain, we must take into account the coverage of the domain and the computing power of DSP. Its actual value in this system is (-6, -5...0, 1,...6) thirteen levels.

  (2) Quantization factor and scaling factor

  Each sampling value obtained by the control system needs to be multiplied by a corresponding factor so that the input variable can be converted from its actual domain to the fuzzy domain. This is the concept of the quantization factor K. Generally, Ke and Kec are used to represent the quantization factors of the system deviation e and the rate of change of the deviation ec, respectively. According to the above, the actual domains of the current deviation e and the rate of change of the deviation ec are (-|emax|, |emax|) and (-|ecmax|, |ecmax|), respectively. The fuzzy domains of all variables are the same (-n, -n+1, ​​...0, 1, ...n). Then, Ke and Kec can be determined by the following formula, namely:

  

 

  The output obtained by fuzzy reasoning cannot directly act on the controlled object and must be converted into the basic domain recognized by the controlled object through the defuzzification interface. From the above, we can know that the basic domain of the system control quantity is

 

  Then its proportional factors Kup and Kui are:

  

 

  After obtaining the proportional factor, any actual control value that is ultimately output to the controlled object can be obtained by the following formula:

  

 

  Among them, K*P and K*I represent the adjustment factors of the fuzzy controller's final output to the PID controller parameters.

  According to the formulas and data given above, the quantization factor and proportional factor of this system can be calculated respectively, Ke = 150, Kec = 6, Kcp = 0.006, Kui = 0.225. The input e and ec quantization tables are shown in Table 4.1 below.

  

 

  (3) The fuzzy subsets of the knowledge base input and output variables are selected as: negative large, negative medium, negative small, zero, positive small, positive medium, positive large (NB, NM, NS, ZO, PS, PM, PB). After the fuzzy language variables are determined, the membership function of each variable is selected. Generally, the membership function includes triangle, Gaussian, trapezoidal, etc. For the selection of membership function, there is no complete conclusion to explain which membership function is the best for which control object. Therefore, the selection of membership function is generally based on experience or from the perspective of calculation simplicity. The membership functions of the error and error change rate input and PID parameter output variables are all selected as triangular membership functions, and the following membership function diagram 4.8 is used uniformly. The membership
  function table of each variable can be easily calculated by calculating the linear equation of the triangle from the membership function table as shown in Figure 4.8.

 

  As shown in Table 4.2, "B" represents any input or output variable. The fuzzy language value of the input variable that has been converted into the fuzzy domain can be directly obtained by using this membership function table.

  

 

  The role of the rule base is to store all fuzzy control rules and provide control rules for the "inference engine" when making inferences. The rule base of the fuzzy controller is a language representation based on expert knowledge and the long-term experience accumulated by manual operators, and is formed according to human intuitive reasoning. Fuzzy rules are generally connected by a series of conjunctions, such as if-then, else, also, end, or, etc. The conjunctions must be "translated" to digitize the fuzzy rules. The following principles should be followed when establishing fuzzy control rules.

  a. When the system is just put into operation, the deviation e is large. In order to improve the system response speed, a larger proportional value must be taken, that is, the fuzzy controller outputs a larger K*P. At the same time, the differential action of the system should be reduced to prevent the differential saturation of the system, that is, the fuzzy controller outputs a smaller K*i.

  b. When e*ec>0. At this time, the deviation changes in the direction of increasing absolute value. When the system is in the following state (e and ec are of moderate size), the fuzzy controller should output a smaller K*P and a medium-sized K*i. If the absolute deviation is large at this time, the proportional value should be increased and the integral effect should be reduced, that is, stronger control measures should be taken on the system to change the direction of error change. If the absolute deviation is small, it means that the deviation of the system is not large. The main purpose of control at this time is to eliminate static error and prevent oscillation. Therefore, the proportional value takes a moderate value to enhance the integral effect.

  c. e*ecAt this time, the deviation e and its change rate ec are in the opposite direction, indicating that the system deviation changes in the direction of decreasing absolute value. When the absolute deviation is small, reduce the proportional value, eliminate static error, prevent overshoot, and make the system obtain good dynamic performance. If the absolute deviation is large, the proportional value should be appropriately increased to improve the response speed of the system. Take a smaller integral value to ensure the steady-state performance of the system.

  Combining the above analysis results with the actual operation experience of the electronic load control system and describing it in fuzzy language, we can form the following fuzzy rule table of K*P and K*i, see Table 4.3 and Table 4.4.

  

 

  

 

  After obtaining the fuzzy control rule table, the fuzzy control output query table can be directly obtained in the fuzzy control box in MATLAB through the Ma Danni fuzzy reasoning method and the weighted average method (defuzzification method), as shown in Table 4.5. The fuzzy matrix table of PID parameters is designed according to fuzzy synthesis reasoning, and the DSP table lookup operation is used to adjust the PID online. The initial PI parameter values ​​are set to K'P = 0.6, K'I = 2.7. This article only gives Table 4.5, which is the fuzzy output response table of K*P, and K*i is generated by the MATLAB dynamic simulation toolbox.

  final

  

 

  The step response and sinusoidal tracking test simulation of the electronic load model is performed using M language in MATLAB as shown in 4.9.

  

 

  

Keywords:DSP Reference address:DSP-based electronic load: fuzzy adaptive PID control strategy

Previous article:Power Line Carrier OFDM Modem Based on DSP
Next article:PID Control of Electronic Throttle Based on DSP

Recommended ReadingLatest update time:2024-11-23 10:34

Design of DSP Video Driver Based on GIO/FVID
Introduction With the development of the times, DSP technology has been widely used in video processing fields such as remote monitoring, videophone, and industrial detection. Different video processing systems use different video devices, so it is necessary to design drivers for video devices and provide a
[Embedded]
3G video helmet based on ARM11 and DSP collaborative video stream processing technology
  1. Introduction In order to improve the controllability of on-site operations in high-risk workplaces, this paper adopts bionic principles and high-integration design to realize a 3G video helmet with the same viewing angle as the human eye. This design consists of a video helmet and a waist-span data processing te
[Embedded]
3G video helmet based on ARM11 and DSP collaborative video stream processing technology
Four major misunderstandings developers have about DSP controllers
Motor control designers have recently been faced with a roadblock in applications ranging from home appliances to servo drives, having to choose between controller performance or high price. Most motor control applications are inherently low cost. One of the requirements for market acceptance is an attractive price, w
[Analog Electronics]
DSP Implementation of A-Law Codec for Speech Signals
0 Introduction Language compression technology not only saves storage space, but also reduces the bandwidth occupied during transmission. The rapid development of digital signal processing (DSP) technology makes it possible to implement various complex speech compression algorithms in real time. The In
[Embedded]
Detailed explanation of the core technology of embedded systems: DSP devices
  The purpose of embedded systems is to provide a complex digital system that is easy to develop with confidence in multi-tasking and networking. From the perspective of digital technology and information technology, embedded systems have become the basic technology for the application of modern information network te
[Embedded]
Interface design between TLC320AC01 and DSP
  In many application systems, a digital signal processor (DSP) must obtain information from multiple analog-to-digital converter (ADC) channels before it can transmit the digital signal processed by the DSP to multiple digital-to-analog converter (DAC) channels for processing. . The key issue is how to implement thes
[Embedded]
Design of Two Booting Methods for TMS320C6727 DSP
TMS320C6727DSP is a floating-point signal processing chip from TI. It has the characteristics of fast processing speed and high calculation accuracy, so it is widely used. The Parallel Flash method is usually used to load applications to this chip. This method requires an external storage chip, and the loading program
[Embedded]
Design of Two Booting Methods for TMS320C6727 DSP
A must-read for beginners of DSP
Can DSP be used at a reduced frequency?  Yes, the main frequency of DSP digital signal processing has a certain operating range, so DSP can be used at a reduced frequency.  How to choose an external clock?  The internal instruction cycle of DSP is high, and the main frequency of the external crystal oscillator is n
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号