0 Introduction
At present, domestic passenger car drying rooms include fuel oil, gas (natural gas), electric heating, and steam drying rooms. The temperature of the drying room is an important indicator of the production process. The type of drying room studied in this project is a hot air convection drying room. The heat source is 200℃ superheated steam. The temperature control adopts a more traditional PID type regulator. The steam flow is adjusted by the temperature control valve to control the drying room temperature. Due to the advantages of simple principle and easy implementation, PID type regulators are widely used in process control. It always occupies a dominant position in process control, but its robust performance is not ideal, and it shows obvious deficiencies in processes with large lags and strong interference. Fuzzy control is a nonlinear control technology that does not require modeling, is easy to understand, simple to execute, and has low development cost. Due to these advantages, this paper intends to apply fuzzy control technology to the temperature control of passenger car drying rooms, and makes some attempts.
1 Temperature controller block diagram
The prototype is based on the AT89C55WD single-chip microcomputer, and consists of a keyboard and LED display circuit, a single-chip microcomputer system, a control signal isolation output circuit, a thermal resistor, an A/D conversion circuit, and other parts. The principle block diagram is shown in Figure 1. When the system is working, the temperature setting value is input through the keyboard and displayed on the LED. Then the single-chip microcomputer outputs a pulse width modulation (PWM) signal through an optical coupler control, which forms a 0-10 mA current after rectification and filtering to control the opening and closing of the temperature control valve and heat the drying room. The machine also has high and low limit outputs, and the output relay contacts can withstand 5 A current, which enhances the control function of the machine.
2 Hardware Circuit Design
2.1 Temperature measurement
Since the current domestic passenger car painting adopts low temperature technology and the temperature control range is within 100℃, the thermal resistor PT100 with high temperature measurement accuracy and temperature measurement range can be used as the temperature measurement element. It has good linear relationship with temperature, good stability, and can be used for a long time at 200℃, which is enough to meet the control requirements.
The prototype uses the more common ICL7135 for A/D conversion. The thermal resistance signal is connected to the DC unbalanced bridge through a three-wire connection method and converted into a voltage signal. After the signal is amplified and filtered by the differential amplifier, it becomes a level signal that matches the ICL7135 converter. See Figure 2 for details.
ICL7135 is a common dual-integral digital converter chip. In order to save the I/O port of the single-chip microcomputer, this machine uses the BUSY and POLAR pins of ICL7135 to connect to the two I/O ports of the single-chip microcomputer respectively. The high-level width of the BUSY output terminal is equal to the sum of the integral and anti-integral time. The internal fixed integral time of ICL7135 is 10,001 clock pulses, and the anti-integral time is proportional to the measured voltage. Therefore, the pulse width of the BUSY pin can be measured by a timer of the single-chip microcomputer. After subtracting 10,001 clock pulses, a value proportional to the measured parameter is obtained.
This program design adopts the method of numerical filtering. After multiple conversions by ICL7135, the maximum and minimum values are discarded, and the remaining values are arithmetic averaged to ensure the accuracy of the measurement.
2.2 Temperature control
The heating temperature is controlled by a fuzzy integral algorithm. After the inverse fuzzy operation of the single-chip computer, the output value is obtained. The PWM signal output by the optocoupler is rectified and filtered to form a 0-10 mA constant current signal to control the opening and closing of the temperature control valve and adjust the steam to achieve heating of the heater and achieve the ideal temperature control effect.
2.3 Human-machine interface
This machine has 4 touch buttons and 8-bit common anode display digital tubes. You can adjust various control parameters through buttons, and realize disturbance-free switching between automatic and manual operation. It uses AT93C66 SPI bus E2PROM, which can be erased and written 1 million times, to save the set temperature value, alarm temperature, temperature error and quantization factor of temperature difference change rate, as well as output function table, KI integral coefficient, etc., which can be adjusted through the keyboard, which is convenient for manual adjustment on the production site.
3 Algorithm Design and Implementation
In the temperature control of this system, the heat is dissipated naturally, so the establishment of the fuzzy table in fuzzy control should be determined according to the actual speed of the heater's heat dissipation.
3.1 Fuzzification
Let e be the temperature error, that is, the deviation between the actual temperature and the given temperature. The initial setting range of this machine is -40~+40℃, divided into 5 variable levels (PB, PS, O, NS, NB), ec is the temperature error change rate, the initial setting range is -5~+5℃/min, divided into 4 variable levels (PB, PS, NS, NB), the input signals e and ec of this system use trapezoidal membership function, in order to obtain the speed improvement, this prototype stores 256 data points within the input range in ROM for the fuzzy operation program to look up the table, so as to avoid numerical calculation. This machine can adjust the quantitative factors of temperature error and temperature error change rate through buttons, which is convenient for on-site adjustment.
3.2 Fuzzy Reasoning
According to the operator's manual control experience, this machine adopts the following form to formulate rules, such as: "if A and B then C". A control rule consisting of 20 fuzzy statements can be obtained. This system adopts the maximum and minimum reasoning method, and the operation process is: corresponding to a certain control rule, when analyzing the conditions, compare the size of the two membership values e and ec in the current rule, and take the smaller value. The smaller value is stored in a variable named "val". After the condition detection is completed, the result is estimated. The fuzzy control function compares "val" with the reference output value of the current output to obtain the result, and takes the larger value as the output value. Once the result analysis is completed, a new rule query is started. Estimation is performed by traversing the rule base array. After traversing all the rules, the corresponding output is saved in the corresponding array for defuzzification.
3.3 Defuzzification
For the single-chip microcomputer system, considering simplifying the mathematical process of inverse fuzzy processing, the centroid method is used for defuzzification. The temperature output control is U, which is divided into 5 variable levels (PB, PS, O, NS, NB). The output U membership function is expressed by the single-point method. Each output membership function uses a single-point value of one byte, which is stored in AT93C66 and used as a parameter to adjust the output of the system.
3.4 Fuzzy and integral hybrid control
Since the above basic fuzzy controller only considers the output error and error change rate of the object, which is equivalent to a nonlinear PD regulator, coupled with its own multi-stage relay characteristics, it is essentially unable to eliminate the steady-state residual and is prone to limit cycle oscillation. This system adds an integral link.
Considering that the control parameters of this system have a small range of variation, a dual-mode segmented control algorithm can be used for control, that is, when the deviation is greater than a certain threshold, fuzzy control is used to improve the system damping performance and reduce response overshoot. When the deviation is less than a certain threshold, an integral link is introduced. Generally, the integrator should be added after the system enters the "steady state".
The introduction of the integral link should not only consider the structural method of introduction, but also the timing of introduction, because the conventional integral control has a big disadvantage, which is the hysteresis effect of the integral action. When the deviation changes in the direction of reduction, the introduction of integral is not good for the dynamic quality of the system, and it is easy to produce small-scale continuous oscillation and integral saturation phenomena, which are essentially caused by inappropriate timing of addition. In view of the above defects and the root causes of the conventional integral control, an integrator should be added after the system enters the "steady state". The role of the integrator can be changed according to the deviation and the deviation change trend. Only when the deviation changes in the direction of increase, the integral takes effect, suppressing the continued increase of the deviation and improving the stability performance. The introduction method of fuzzy integral is shown in Figure 3, which is composed of a conventional integrator associated with a two-dimensional fuzzy controller.
The conventional integral controller output Ui=KI∑ei and the two-dimensional fuzzy controller output Uf are superimposed as their total output, that is: Un=Ui+Uf. Due to the introduction of the integral link, this controller can eliminate steady-state errors and limit cycle oscillations.
4 Conclusion
The temperature control system has a simple structure, and the main chips used are AT89C55WD, ICL7135, AT93C66, and CD4512. The software is easy to implement, the programming amount is small, the control accuracy is high, and the performance is stable. Due to the use of a single-chip microcomputer with in-system programmable technology, the system can be debugged under normal working conditions, and can be applied to different working environments by simply setting different parameters. The temperature controller prototype was tested in the drying room of Yangzhou Asiastar Bus, and the results showed that it can improve the coating surface quality and production efficiency of the product to a certain extent.
Previous article:Temperature Control System Based on PID Algorithm and 89C52 Single Chip Microcomputer
Next article:Realization of LED display screen based on single chip microcomputer and programmable logic device
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Gaoyun FPGA reports the error "suitable range is from 400MHz to 1200MHz"
- Simple summary of Android Bluetooth pairing communication, app layer implementation of Bluetooth silent pairing, ClsUtils class
- The problem of self-reduction
- Power supply decoupling capacitors
- How to use DFT App for hardware accelerated simulation design
- GD32E23X Standard Library and GD32E230 Standard Library Manual
- CC3200 Kit OURS-SDK-WFB_Explore - by tinnu
- Chip Manufacturing 3-Semiconductor Slicing
- RISC-V IDE MRS Usage Notes (IV): Link-time Optimization
- Xunwei 3399 development board-PCIE 4G module test-compiler