The fuzzy control method of ozone generating-device
Technical field
The present invention relates to a kind of fuzzy control method of ozone generating-device.
Background technology
At present, the type of ozone generating-device is more, and most of ozone generating-devices are not paid attention to the problem of ozone concn, and cause the ozone concn instability, and it is undesirable that concentration is crossed low sterilization effect, and excessive concentration can produce harm to human body.
Application number is that 96213551.8 Chinese patent " high-efficiency high-concentration ozone generating-device " discloses a kind of ozone generating-device, the utility model adopts two arrays of electrodes, second group of electrode and first group of electrode are in vertical distribution, power line has strong component perpendicular to gas and solid interface between two arrays of electrodes, produces creeping discharge and generates ozone.The utility model advantage is that energy consumption is little, and it is big to generate ozone amount, the concentration height.But shortcoming is can not control ozoniferous concentration.
By the long term studies analysis, find that hydraulic pressure, water temperature and atmospheric moisture are three principal elements that influence ozone concn.Data from experiment, ozone generating-device is non-linear, complicated, random, is difficult to obtain from experimental data the funtcional relationship between the ozone concn in amplitude, frequency, dutycycle and the ozone water of accurate water temperature, hydraulic pressure, atmospheric moisture, high-voltage electric field.And the detection of ozone concn is cumbersome, does not up to the present also have real-time detection method effectively and rapidly, says nothing of the control ozone concn.
Summary of the invention
Can not control the shortcoming of ozone concn in order to overcome prior art, the invention provides a kind of fuzzy control method of ozone generating-device, the employing fuzzy control realizes the control to the frequency and the dutycycle of high-voltage electric field, and the influence that can effectively overcome owing to environment causes the unsettled defective of ozone concn.
The technical solution adopted for the present invention to solve the technical problems is: 1) sampled data of the water temperature that the off line experiment is obtained, hydraulic pressure, atmospheric moisture is carried out non-homogeneous segmentation, realize the discretize of input and output amount, obfuscation, find out the mapping relations between input and the output, by non-online data analysis, set up the model and the fuzzy control rule table of fuzzy control again;
2) variation of real-time detection water temperature, hydraulic pressure and the atmospheric moisture of system, according to aforesaid mathematical model, the inquiry fuzzy control rule table utilizes the timer of micro-chip, and amplitude, frequency and the dutycycle of control high-voltage electric field realize the pulse control of high-voltage electric field.
The overvoltage protection and the photoelectricity that also comprise its Controlling System are isolated.
The present invention's advantage compared to existing technology is: the model of having set up different hydraulic pressure, water temperature, atmospheric moisture, high-voltage electric field and ozone generation amount by up to ten thousand experiments, adopt amplitude, frequency and the dutycycle of fuzzy technology control high-voltage electric field, make ozone concn keep a comparatively stable level.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is a functional block diagram of the present invention
Fig. 2 is the embodiment circuit connection diagram
Fig. 3 is the embodiment main program flow chart
Fig. 4 is an embodiment high-voltage electric field control signal oscillogram
Embodiment
In order to obtain stable ozone concn, non-online fuzzy control has obtained application in ozone generating-device.At first by the experiment of a large amount of off line, obtain the relation between the ozone concn in amplitude, frequency, dutycycle and the ozone water of water temperature, hydraulic pressure, atmospheric moisture, high-voltage electric field; By non-online data analysis, set up the model of fuzzy control again; At last, the variation of detection water temperature, hydraulic pressure and atmospheric moisture that system is real-time according to aforesaid mathematical model, obtains the control corresponding rule, realizes the control to high-voltage electric field.
The whole control can be divided into three parts: design of Fuzzy Controller realizes, hardware design realizes and software design realizes
1. the realization of design of Fuzzy Controller
Design of Fuzzy Controller is an input with water temperature, hydraulic pressure and atmospheric moisture, is work output with frequency, dutycycle and the amplitude of high-voltage electric field.The basic step of design of Fuzzy Controller is as follows: the requirement of experimental data and control accuracy, sampled data is carried out non-homogeneous segmentation, and realize the discretize of input and output amount, obfuscation; Then find out the mapping relations between input and the output, extract corresponding fuzzy control rule.Use these fuzzy control rules, each is carried out the fuzzy relation computing to input, adopt the maximum membership degree method to carry out fuzzy judgment.Obtain the fuzzy Control rule list by court verdict at last.
2. the realization of hardware design
Adopting the micro-chip 89C52 of cost performance height, Ateml company low in energy consumption is core processor.Micro-chip inside has the E2PROM of 8k, can be used for depositing program and control rule tables, and 32 GPIO can realize the data gathering and the control of system flexibly; For anti-locking system enters deadlock state or program fleet, we have designed the power supply supervisory circuit of system, and fast automatic restarting when making system enter deadlock and program fleet returns to normal operating conditions.
Pressure transmitter and air humidity sensor are selected the voltage-type transmitter for use, sensor output signal directly through A after the D sampling, be input in the micro-chip; Temperature sensor is selected thermistor type sensors for use, and to be its resistance value descend with temperature its resistance that raises its principle of work, output to after regulating by electric bridge A among the D, be input in the micro-chip again.A D select low-cost general modulus switching device ADC0809 for use, it can provide the input of the simulating signal of eight passages, the progress of conversion is 1/256.
Adopt photoelectricity to isolate and reduce the influence that low-voltage control circuit is subjected to high-voltage pulse, high-voltage pulse and pilot circuit are public domains not, prevent that effectively high-voltage pulse from disturbing low-voltage control circuit by ground wire; Isolated drive circuit mainly is made of devices such as 74LS06, optocoupler 6N136 triodes 9013.Its function is after one group of symmetric PWM ripple of micro-chip output is isolated, and delivers to the gate pole of two switching tubes of the push-pull type structure of power circuit again through driving, drives two switching tubes.
The major function of high-voltage electric field is for producing ozone, and agent structure is: AC-DC-AC-AC.Earlier the 220V electric main of input is transformed to into the volts DS of 310V behind rectifying and wave-filtering, the volts DS of 310V is the former limit that voltage of alternating current is delivered to high voltage package through push-pull type structural transformation then, this voltage of alternating current is after boosting of high voltage package delivered on the electrode of ozonizer, and the ozonizer electrode produces ozone under the alternating-electric field effect with certain amplitude and frequency.
Holding circuit detects the working order of high-tension circuit and other slave part in real time, carries out different protection operations according to the result who detects, and has guaranteed the trouble-free service of system.
3. the realization of software design
After system powered on, micro-chip 89C52 at first carried out the self check of oneself state, and whether detection system can works better, if fault is arranged, will enter into guard mode; Otherwise system will enter normal mode of operation, micro-chip by A the D device detect hydraulic pressure, water temperature and atmospheric moisture, the inquiry fuzzy control rule is determined functions such as the frequency of switching tube gate electrode drive signals and duty cycle parameters.In the master routine operation, open overvoltage, overcurrent protection that external interrupt is finished high-voltage electric field.Two timer interruption subroutines are by software operation, the circulation that makes micro-chip timer T0, T1 is regularly interrupted and the driving ripple that has respective frequencies and dutycycle at micro-chip P1.0 and P1.4 interruption-forming, and the driving ripple of P1.0 and P1.4 mouth produces gate electrode drive signals through isolated drive circuit again.