Atomization sheet driving framework and driving method
Technical Field
The invention relates to the technical field of atomization plate driving frameworks, in particular to an atomization plate driving framework and a driving method.
Background
Humidifier has become necessary little household electrical appliances in the product market, mainly in the dry weather of solving when winter, and market products are very various, and the environmental change of use is also many, therefore has many problems on the original technical framework of humidifier, and 2 kinds of old frameworks that have now are:
1. the technical framework of a general large humidifier is mostly a traditional separated component scheme of three-point self-excitation, the three-point self-excitation has the advantages that the waveform output is close to the sine wave output, so that the vibration of an atomizing sheet is smooth, but the three-point self-excitation has the defects that parts are multiple and large, a power triode generates heat seriously, a radiating fin is required to be additionally arranged, the positions of a fan and the radiating fin are considered, the voltage drive of the general large humidifier uses high voltage of 30-36V, the power conversion efficiency is poor, the power triode generates heat seriously and is easy to burn due to overhigh temperature, and high-power dual-power output is required to be provided, so that a switching power supply transformer is required to be arranged in the humidifier, the switching power supply safety regulation certification made by each country is required, and the certification time and the certification expense of AC power supply safety regulation are consumed;
2. the other humidifier framework is a single-point independent excitation detection voltage frequency tracking scheme, and is mainly used for small atomizers and fragrance machines, the driving is driven by an MOS tube MCU output PWM circuit, and the defects are that waveform output is abnormal, positive phase voltage is overhigh, negative phase voltage is low, the motion of an atomizing sheet is biased to be bent in the positive direction, and the positive phase voltage is higher than 100V and is easy to burn, so that the humidifier framework can only be used for small atomizers with small power;
therefore, a driving structure and a driving method for the atomizing plate are needed to solve the problem.
Disclosure of Invention
The present invention is directed to a driving structure and a driving method for an atomizing plate, so as to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: an atomizing plate driving architecture, characterized in that: the drive device comprises various voltage protection architectures, phase detection protection architectures and overcurrent protection architectures, wherein the voltage protection architectures carry out voltage detection, when the boosting potential exceeds a set value, the starting time of a switch NMOS tube can be immediately reduced progressively, or all actions are closed, the phase detection protection architectures carry out phase detection, when phase abnormality occurs, various protection operations can be immediately carried out or all actions can be immediately closed, the overcurrent protection architectures carry out potential monitoring and overcurrent protection, and all actions are closed when overcurrent abnormality occurs;
the invention relates to an atomization plate driving framework and a driving method, which can be driven by a single 12V power supply, can directly use an adapter which passes safety certification of switch power supplies formulated in various countries without a built-in switch power supply transformer, can reduce the certification time and the certification cost of a humidifier in AC power supply safety regulations, and adopts the atomization plate driving framework and the method of the invention to drive the atomization plate, so that the conversion efficiency is far superior to a three-point LC self-excitation type, only 1 Daul N-mos (60V) tube is needed to output 100-120V of the atomization plate full-wave, the N-mos tube is driven in a full-bridge mode, the conversion efficiency is high, only SOP8 needs to be packaged for a short time, the continuous working temperature is 60 degrees, and the power consumption is lower than that of the three-point self-excitation LC type, and about 40 percent of energy consumption is saved;
the atomization sheet is driven to design various voltage protection structures, a plurality of groups of comparators CMP are adopted to detect the voltage, when the boosting potential exceeds a set value, the opening time of the N-mos tube can be reduced progressively, or when the boosting potential exceeds the set value, all actions can be selected to be closed immediately, so that the safety of the humidifier is ensured. The internal potential of the comparator CMP is set, the VCC potential of 0V-63 steps can be selected, and the continuous occurrence times can be selected to determine whether to start the protection action, and the selectable times are 1,2,4 and 8 … 128; the atomizing sheet drive design Phase detection protection structure can also adopt 2 groups of comparators to carry out Phase detection (Phase Detector) according to requirements, whether the PWM signal and the Phase of the atomizer are abnormal or not is compared, and when the Phase abnormality occurs, various protection operations can be immediately carried out or all actions can be immediately closed to ensure that the humidifier is safe and safe; an atomization sheet drive design overcurrent protection framework adopts an amplifier OPA, 1 group of ADC and 1 group of comparator CMP to detect and protect current, and the amplifier OPA amplifies the potential value detected by the current by 20 times and X through an internal setting; the internal arrangement of the amplifier OPA can select amplification factors such as 20X, 25X, 30X, 35X, 100X, 105X, 110X, 115X … and the like according to various development requirements, the internal potential arrangement of the comparator CMP can select 0-63-order potentials according to various development requirements, 63-order potentials are VCC potentials, and the continuous occurrence times can be selected to determine whether to start protection actions, and the selectable times have the flexible application according to various development requirements of 1,2,4 and 8 … 128;
the driving structure of the atomizing plate is integrated in a single IC chip or in the internal and external power circuits of the single IC chip, and the frequency modulation technology is used to achieve higher detection resolution.
Preferably, the voltage protection architecture comprises a comparator CMP, the phase detection protection architecture comprises a comparator CMP, the overcurrent protection architecture comprises an amplifier, an analog-digital converter and a comparator, the driving device further comprises a switch NMOS transistor, a capacitor, an inductor, a microcontroller and a variable pulse width modulation output, and the atomizing sheet driving architecture and method can control the driving waveform of the output by controlling the duty ratio of the variable pulse width modulation output or the dead zone size of the variable pulse width modulation output;
the adjustable range of the capacitor and the inductor is the voltage output requirement, the microcontroller comprises a micro control unit, the micro control unit drives the variable pulse width modulation output, and the variable pulse width modulation output controls the oscillation frequency; the amplifier provides the detection driving current and provides the built-in amplification factor setting; the comparator provides the necessary for detecting the driving voltage and provides the setting of the number of built-in overvoltage times.
Preferably, the circuit connection of the atomization plate driving framework is as follows: the positive electrode of the diode D11 is electrically connected to ground and the second end of the resistor R20, the first end of the resistor R20 is electrically connected to the negative electrode of the diode D11, the negative electrode of the built-in logic comparator CMP5 and the second end of the resistor R19, the first end of the resistor R19 is electrically connected to the second end of the inductor L12, the D electrode of the switch N-MOS Q11, the first end of the capacitor C10 and the first end of the atomizing plate Y11, the first end of the inductor L12 is electrically connected to the +12V input voltage, the first end of the inductor L11 and the first end of the resistor R1, the second end of the resistor R42 is electrically connected to the first end of the resistor R2 and the negative electrode of the built-in logic comparator 2, the second end of the inductor L11 is electrically connected to the second end of the atomizing plate Y11, the first end of the capacitor C11, the D electrode of the switch NMOS Q12 and the first end of the resistor R15, the first end of the resistor R15 is electrically connected to the negative electrode of the diode CMP 10 and the second end of the resistor R15, The negative electrode of the built-in logic comparator CMP3 is electrically connected, the second end of the resistor R16 is electrically connected with the ground, the positive electrode of the diode D10 and the first end of the resistor R14, the second end of the resistor R14 is electrically connected with the first end of the capacitor C17 and the first end of the amplifier, the second end of the amplifier is electrically connected with the first end of the built-in analog-digital converter, the second end of the built-in analog-digital converter is electrically connected with the negative electrode of the built-in logic comparator CMP4, the S electrode of the switch N-MOS tube Q11 and the S electrode of the switch N-MOS tube Q11 are electrically connected with the ground, and the built-in logic comparator CMP2, the built-in logic comparator CMP3, the built-in logic comparator CMP4 and the built-in logic comparator CMP5 are processed to form a driving structure of the variable pulse width modulation output.
Preferably, the circuit of the aerosol tablet driving architecture further includes an inductor L10, a first end of the inductor L10 is electrically connected to a first end of the aerosol tablet Y11, and a second end of the inductor L10 is electrically connected to a second end of the aerosol tablet Y11.
An atomization sheet driving method, characterized in that: the method can control output driving waveforms by controlling the duty ratio of PWM or the size of a dead zone of the PWM, wherein the dead zone is determined by the working states of PWMP and PWMN, and is the dead zone when the PWMP and the PWMN are closed and disconnected simultaneously; as shown in fig. 2, the output waveforms of the atomizing plate drives PWMP and PWMN, and the duty ratio or the size of the dead zone is calculated by detecting the current value.
Preferably, the method comprises the steps of:
s100: initializing and setting function settings of each chip: the initialization includes: starting a comparator function and a comparator interrupt function, starting an amplifier function, starting an analog-digital converter function, starting a variable pulse width modulation output function and starting an LED lamp signal display function, and performing a comparator and amplifier correction procedure;
s200: the analog-digital converter operates, converts the voltage amplified by the amplifier into a current consumption value program, and then performs a phase detection program of the atomizing sheet signal to enter into a frequency tracking condition conversion program of S300;
s300: inputting the result obtained in S200 into the S300 for condition judgment, dividing the conversion program steps into cases 0-4 according to different conditions, judging which Case program to execute subsequently according to the concrete conditions of each Case;
s400: the concrete conditions of Case0 are as follows: if the frequency tracking conversion program is operated for the first time and the system is not abnormal, the step is operated, if the specific conditions of Case0 are met, the frequency tracking program is preset to be the lowest power output, the frequency output of the pulse width modulation module is converted into the fastest frequency, the duty ratio is the smallest (the dead zone is the largest), the stable time value (for the timing of Case 1) of the conversion program is set, the conversion program is skipped, and the step is returned to the step S200;
s401: and if the Case0 is not met, entering the Case1, wherein the specific conditions of the Case1 are as follows: the step is operated when the stable time value of the conversion program is counted down and the system is abnormal at present; if Case1 is satisfied, the step counts down the stable time value of the program to be converted to 0, so that the Case does not need to change for the frequency output of the pulse width modulation module, and returns to the step S200;
s500: and if the Case1 is not met, entering the Case2, wherein the specific conditions of the Case2 are as follows: the current duty ratio is set to be the maximum or the second maximum (the dead zone interval is the minimum or the second minimum) and the system runs the step without abnormality; if the current consumption current value accords with Case2, adjusting the frequency according to the current consumption current value, increasing the current consumption when the duty ratio is increased, decreasing the current consumption when the duty ratio is decreased, slightly increasing the current consumption when the frequency is decreased, slightly decreasing the current consumption when the frequency is increased, approaching the current consumption target value when the current consumption current resonates towards the atomizing plate by adjusting the duty ratio and the frequency, judging whether the modulation of the duty ratio and the frequency and the current change are abnormal, if the current is abnormal too large or the current is abnormal too small, performing frequency tracing or stopping again according to an abnormal processing program, then setting a conversion program to wait for a stable time (for Case1 timing), jumping out the conversion program, and returning to the step S200;
s600: if not, entering into Case3, and the specific conditions of Case3 are as follows: the current duty ratio is set to be below the third maximum and the system runs the step without abnormality; if Case3 is met, it means that the current duty ratio is set too small (the power consumption is much smaller than the target value, so the modulation action is mainly to increase the duty ratio), the frequency is kept fastest, the duty ratio is increased by 1 step (the dead zone is reduced), then the conversion program is set to wait for the stable time (for Case1 timing), the conversion program is skipped, and the step S200 is returned to;
s700, if not conforming to Case3, entering Case4, wherein the specific conditions of Case4 are as follows: the current step is operated when the current and the voltage are abnormal; if the Case4 is satisfied, the frequency tracking or shutdown handling is performed again according to the design requirement, the conversion program is jumped out, and the step S200 is returned, and if the Case4 is not satisfied, the conversion program is directly jumped out, and the step S200 is returned.
In step S300, the frequency tracking Case switching process determines which Case the frequency tracking Case switching process is to be executed according to the duty ratio setting in the current operation, whether the process is waiting for the countdown of the stable time or whether the process is abnormal.
The frequency tracking operation method comprises the steps of firstly modulating the duty ratio gradually from small to large (the dead zone is from large to small) (the current is obviously increased and the oscillation voltage is increased when the duty ratio is increased), and then modulating the frequency gradually from fast to slow (the current is slightly increased and the oscillation voltage is also slightly increased when the frequency is decreased).
The pulse width modulation module has the fastest frequency output and the smallest duty ratio (the largest dead zone), and is matched with the atomization sheet driving circuit, the faster the output of the variable pulse width modulation output frequency is, the smaller the power consumption is, the smaller the duty ratio is (the larger the dead zone is), and therefore the lowest output power is the fastest set frequency and the smallest duty ratio;
the exception handling program is … for example, when the duty ratio is judged to be maximum (the dead zone is minimum) and the frequency is slowest but the power consumption is not expected, the duty ratio is minimum (the dead zone is maximum) and the frequency is fastest but the power consumption still exceeds the threshold value too much (the current is too great and exceeds the system load, the current protection interrupt program is directly jumped to stop), and the like, the reset frequency tracking condition conversion program can be set when the exception occurs, or the exception is displayed when the exception is directly stopped after a plurality of times.
Preferably, the exception resolution program includes a comparator interrupt program, which means that when the comparator detects that the voltage exceeds the system load or the current exceeds the system load, the system will be interrupted, and jump to the interrupt program to execute the corresponding exception resolution program, which is a mechanism related to system protection; the comparator interrupt routine is:
s610, each comparator shares interrupt, so that each comparator interrupt flag needs to be checked to see which comparator is interrupted;
s620: if the interruption is consistent with the interruption of the CMP4, implementing the system overcurrent protection and jumping out of the interruption mode; if the interruption of CMP4 is not satisfied, go to S630;
s630: if the interruption is consistent with the interruption of the CMP2, implementing the VCC overvoltage protection of the system, and jumping out of the interruption mode; if there is no interruption corresponding to CMP2, go to S640;
s640: if the interruption is consistent with CMP3 or CMP5, the atomization sheet driving circuit is subjected to oscillation overvoltage protection, and an interruption mode is jumped out; if the interrupt does not conform to CMP3 or CMP5, the interrupt mode is directly skipped.
In S610, since the comparators share the interrupt, the interrupt flag needs to be checked next to see which comparator is interrupted, CMP3 and CMP5 are the interruption of the oscillating overvoltage protection of the chip driver, CMP4 is the interruption of the system overcurrent protection, and CMP2 is the interruption of the system VCC overvoltage protection.
The invention can be applied to products such as large-scale humidifiers, small-scale humidifiers, fumigating machines, atomizers, medical atomizing respirators and the like.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention relates to an atomization sheet driving structure and a driving method, which can adopt a single power supply to drive an atomization sheet, does not need to be internally provided with a switching power supply transformer, and can directly use an adapter which passes the safety certification of switching power supplies formulated in various countries, thereby reducing the certification time and the certification cost of a humidifier in AC power supply safety regulations;
2. various voltage protection architectures and phase detection protection architectures are arranged in the atomization sheet driving architecture to protect the humidifier;
3. the atomization plate driving framework and method integrated in a single IC chip adopts a self-defined output mode to manufacture an atomization plate driving mode, and uses the self-defined output mode to drive the atomization plate to reach the vibration frequency, so as to avoid the problem of inconsistent physical quantities generated by external LC part errors and atomization plate production errors;
4. the pulse width modulation frequency-adjustable technology is used to achieve higher frequency resolution, so as to control the atomization sheet to achieve the optimal oscillation frequency, so that the error of each produced atomization sheet can be covered, and the atomization amount output by the humidifier is consistent;
5. the driving design of the atomizing plate is characterized in that the pulse width modulation module is controlled to respectively control 1 small package SOP8, half waves are boosted to 50-60V potential through an inductance boosting mode, two ends of the atomizing plate are respectively controlled by 2 groups of N-mos tubes to form a full-bridge driving atomizing plate mode, the conversion efficiency is far superior to that of a three-point LC self-excitation mode, the continuous working temperature is about 60 ℃, and the power consumption is lower than that of the three-point LC self-excitation mode, so that the energy consumption is saved by about 40%;
6. the atomization plate drive design over-current protection structure adopts an amplifier, 1 group of analog/digital converters and 1 group of logic comparators to detect and protect current, the photoelectric pulse of the amplifier amplifies the potential value detected by the current by 20 times through the internal arrangement, the potential can be monitored through the analog/digital converters, the over-current protection can be carried out through the logic comparators, and all actions can be immediately closed when over-current abnormity occurs.
Drawings
Fig. 1 is a first schematic diagram of a circuit connection structure of an atomizing sheet driving structure according to the present invention;
FIG. 2 is a schematic diagram of a circuit connection structure of an atomizing plate driving structure according to the present invention;
FIG. 3 is a schematic diagram of a variable PWM output driving structure of an atomizing plate driving structure according to the present invention;
FIG. 4 is a schematic diagram of a structure of the driving circuit for outputting PWMN/PWMP according to the driving method of the present invention;
fig. 5 is a schematic structural diagram of a structure in which PWMP is turned on and PWMN is turned off, and L12 is turned on and falls to the ground according to an atomizing sheet driving method of the present invention;
fig. 6 is a schematic structural diagram of a structure in which PWMN turns on and PWMP turns off, and L11 turns on and falls to the ground according to an atomizing sheet driving method of the present invention;
fig. 7 is a schematic structural diagram of a structure in which PWMP is turned on and PWMN is turned off, and L12 is turned on and falls to the ground according to an atomizing sheet driving method of the present invention;
FIG. 8 is a schematic diagram of a second structure of a variable PWM output driving structure of an atomizing plate driving structure according to the present invention;
fig. 9 is a schematic structural diagram of the structure that PWMP is turned on and PWMN is turned off, and L10 and L12 are turned on and grounded according to the method for driving an atomizing plate of the present invention;
fig. 10 is a schematic structural diagram of the driving method of the atomizing plate according to the present invention, in which PWMN is turned on and PWMP is turned off, and L10 and L11 are turned on and grounded;
fig. 11 is a schematic structural diagram of the method for driving the atomizing plate according to the present invention, wherein the PWMP is turned on and the PWMN is turned off, and L10 and L12 are turned on and grounded;
FIG. 12 is a schematic flow chart illustrating a method for driving an atomizing plate according to the present invention;
FIG. 13 is a schematic diagram of a comparator interrupt structure according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example (b): as shown in fig. 1, an atomizing plate driving structure is characterized in that: the driving device drives the atomizing sheet to achieve vibration frequency in an exciting oscillation mode, the driving device adopts a single power supply to drive the atomizing sheet, the driving device comprises various voltage protection frameworks, phase detection protection frameworks and overcurrent protection frameworks, the voltage protection frameworks carry out voltage detection, all actions are closed when the boosting potential exceeds a set value, the phase detection protection frameworks carry out phase detection, various protection operations can be immediately carried out or all actions can be immediately closed when phase abnormality occurs, the overcurrent protection frameworks carry out potential monitoring and overcurrent protection, and all actions are closed when overcurrent abnormality occurs.
The atomization plate driving framework can be driven by a single 12V power supply, a built-in switching power supply transformer is not needed, an adapter which passes safety certification of switching power supplies formulated in various countries can be directly used, the certification time and the certification cost of a humidifier on the safety regulations of the AC power supplies can be reduced, the atomization plate driving design adopts the atomization plate driving framework and the method, the conversion efficiency is far superior to a three-point LC self-excited mode, only 1 Daul N-mos (60V) tube is needed, the atomization plate full-wave output can be 100-120V, the N-mos tube is driven in a full-bridge mode, the conversion efficiency is high, only small package SOP8 is needed, the continuous working temperature is about 60 ℃, and the power consumption is lower than that of the three-point LC self-excited mode, and the energy consumption is saved by about 40%.
The voltage protection architecture comprises a comparator CMP, the phase detection protection architecture comprises the comparator CMP, the overcurrent protection architecture comprises an amplifier, an analog-digital converter and a comparator, the driving device further comprises a switch NMOS tube, a capacitor, an inductor, a microcontroller and a variable pulse width modulation output, and the atomization sheet driving architecture and the method can control the output driving waveform by controlling the duty ratio of the variable pulse width modulation output or the size of a dead zone of the variable pulse width modulation output;
the adjustable range of the capacitor and the inductor is the voltage output requirement, the microcontroller comprises a micro control unit, the micro control unit drives the variable pulse width modulation output, and the variable pulse width modulation output controls the oscillation frequency; the amplifier provides the detection driving current and provides the built-in amplification factor setting; the comparator provides the required detection driving voltage and provides the setting of the built-in overvoltage times.
The circuit connection of the atomization plate driving framework is as follows: the anode of the diode D11 is electrically connected to ground and the second end of the resistor R20, the first end of the resistor R20 is electrically connected to the cathode of the diode D11, the cathode of the built-in logic comparator CMP5 and the second end of the resistor R19, the first end of the resistor R19 is electrically connected to the second end of the inductor L12, the D of the switch N-MOS Q11, the first end of the capacitor C10 and the first end of the atomization slice Y11, the first end of the inductor L12 is electrically connected to the +12V input voltage, the first end of the inductor L11 and the first end of the resistor R1, the second end of the resistor R1 is electrically connected to the first end of the resistor R2 and the cathode of the built-in logic comparator CMP2, the second end of the inductor L11 is electrically connected to the second end of the atomization slice Y11, the first end of the capacitor C11, the D of the switch NMOS Q12 and the first end of the resistor R15, the cathode of the built-in logic comparator CMP 3687472, the second end of the resistor R16 is electrically connected to ground, the positive electrode of the diode D10, and the first end of the resistor R14, the second end of the resistor R14 is electrically connected to the first end of the capacitor C17 and the first end of the amplifier, the second end of the amplifier is electrically connected to the first end of the built-in analog-to-digital converter, the second end of the built-in analog-to-digital converter is electrically connected to the negative electrode of the built-in logic comparator CMP4, the S-pole of the switch N-MOS Q11 and the S-pole of the switch N-MOS Q11 are electrically connected to ground, and the built-in logic comparator CMP2, the built-in logic comparator CMP3, the built-in logic comparator CMP4, and the built-in logic comparator CMP5 are processed to form a driving structure of the variable pulse width modulation output.
Fig. 2 is a schematic diagram of a circuit connection when the inductor L10 and the atomizing plate Y11 are connected in parallel, the circuit of the atomizing plate driving structure further includes an inductor L10, a first end of the inductor L10 is electrically connected to a first end of the atomizing plate Y11, and a second end of the inductor L10 is electrically connected to a second end of the atomizing plate Y11.
An atomization sheet driving method, characterized in that: the method can control the output driving waveform by controlling the duty ratio of the variable pulse width modulation output or the size of the dead zone of the variable pulse width modulation output, wherein the dead zone is determined by the working states of the PWMP and the PWMN, and the dead zone is determined when the PWMP and the PWMN are closed and disconnected simultaneously.
As shown in fig. 3-7, PWMN/PWMP generates oscillation frequency from the inside of the chip, defaults to 1.7MHz, obtains PWM driving architecture, then PWMN/PWMP outputs to the driving circuit, when PWMP is turned on and PWMN is turned off, L12 will be turned on and grounded, at this time, L12 stores energy, when PWMP and PWMN are turned off and disconnected simultaneously, this time is dead time, when PWMN is turned on and PWMP is turned off and disconnected simultaneously, L11 will be turned on and grounded, at this time, L11 stores energy, L12 discharges 12V to the atomization sheet Y11, at this time, the potential is boosted, then PWMP and PWMN are turned off and disconnected simultaneously, this time is dead time, then, PWMP is turned on and PWMN is turned off and disconnected simultaneously, L12 will be turned on and grounded, at this time, L12 stores energy, at this time, L11 discharges 12V to the atomization sheet Y11, at this time, the potential is gradually boosted, then, when PWMP and PWMN is continuously turned on and PWMN continuously, at this time, the two ends alternately output voltage doubler is connected to form positive and atomized black wave, because the frequency of the mutual conduction of the PWMP and the PWMN is 1.7MHz, the harmonic wave is greatly reduced due to the fast frequency.
As shown in fig. 8-11, when the inductor L10 is provided in parallel with the atomizing sheet Y11, the PWMN/PWMP generates an oscillation frequency from the inside of the chip, the oscillation frequency is default to 1.7MHz, so as to obtain a PWM driving architecture, then the PWMN/PWMP outputs to the driving circuit, when the PWMP turns on the conducting switch N-MOS transistor Q11 and the PWMN turns off the disconnecting switch N-MOS transistor Q12, the inductor L10 and the inductor L12 will conduct to the ground, the inductor L12 stores energy, when the PWMP and the PWMN turn off the disconnecting switch N-MOS transistor Q11 and the switch N-MOS transistor Q12 at the same time, this time is a dead time, when the conducting switch N-MOS transistor Q12 turns on the PWMN and the disconnecting switch N-MOS transistor Q11 turns off the inductor L11 and the inductor L10 will conduct to the ground, the inductor L11 stores energy, the potential of the inductor L10 and the inductor L12 is reversed, and the inductor L10, the inductor L12 discharges the atomizing sheet Y11 to the ground, the potential of the atomizing sheet Y11 is boosted, then PWMP and PWMN close the disconnection switch N-MOS tube Q11 and the switch N-MOS tube Q12 at the same time, the time is dead time, then PWMP opens the conduction switch N-MOS tube Q11 and PWMN closes the disconnection switch N-MOS tube Q12, the inductor L12 is conducted to the ground, the inductor L12 stores energy, the inductor L10 and the inductor L11 reverse the potential, the inductor L11 and the inductor L10 discharge the atomizing sheet Y11 with the power VCC, the potential of the atomizing sheet Y11 is gradually boosted, then when PWMP and PWMN are continuously conducted alternately, the inductor L10 also reverses the potential to the potential of the other end continuously, the voltage doubling output at both ends forms an alternating positive and negative wave to the atomizing sheet, the frequency of PWMP and PWMN are conducted alternately is 1.7MHz, the frequency is greatly reduced, and the energy of the inductor L10 reverses the potential of the other end alternately, so that the power conversion efficiency is greatly improved.
In the embodiment, a single power supply 12V is used, when the PWMP and the PWMN are continuously conducted alternately, the voltage-doubled output voltages at the two ends of the wave _ a and the wave _ B are gradually increased to be close to 60V by using the dead zone size and the fine tuning frequency of the modulation PWMP and the PWMN, and the current approaches 1.2A, which is required by the driving of the atomizing plate, the driving current of the atomizing plate is set to be 1.2A, the overcurrent protection threshold is set to be 1.5A, when the current is gradually increased by using the dead zone size and the fine tuning frequency of the modulation PWMP and the PWMN, the small signal of the current detection circuit is amplified by 20 times by using the on-chip amplifier OPA (the on-chip amplification factor is selectable according to requirements), and the amplified small signal is converted by the on-chip ADC and is used for the CMP4 to determine; converting and calculating an instant current value by using a built-in ADC (analog to digital converter) of the chip, and adjusting the current value to 1.2A by a system; when the abnormal current is higher than 1.5A, because there is a significant difference with 1.2A set by the frequency tracking program, the on-chip comparator CMP4 is used to perform over-current protection, so that the direct shutdown stops the PWM output and displays the abnormality. In this embodiment, a 60V overvoltage protection is set, a built-in chip comparator CMP3 and CMP5 are used to detect whether the voltage values of Wave _ A, Wave _ B at two ends of the atomizing plate are abnormal overvoltage or not, the frequency and the dead zone size of PWMP and PWMN are adjusted during overvoltage protection, so that the voltage output by voltage doubling at two ends is reduced to be within 60V, the frequency following program operation method of this embodiment is to gradually adjust the dead zone from large to small (dead zone reduction current is obviously increased, oscillation voltage is increased) and then adjust the frequency from fast to slow (frequency is changed to slow current and the frequency is slightly increased, oscillation voltage is also increased), adjust the frequency until the power consumption current 1.2A is stable, if the frequency is adjusted to exceed 1.2A immediately to make the power consumption of the system operate at 1.2A, thereby realizing the function of automatically frequency-tuning the atomizing plate, when PWMP and PWMN are conducted alternately, the frequency as high as 1.7MHz causes the abnormal phase of Wave _ a and Wave _ B if NMOS switch occurs, through the built-in phase detection function of the chip, when the phase abnormality is detected, the output of the PWM can be immediately corrected or stopped to process and display the abnormality according to various requirements;
the method comprises the following steps:
s100: initializing and setting function settings of each chip: the initialization includes: starting a comparator function and a comparator interrupt function, starting an amplifier function, starting an analog-digital converter function, starting a variable pulse width modulation output function and starting an LED lamp signal display function, and performing a comparator and amplifier correction procedure;
s200: the analog-digital converter operates, converts the voltage amplified by the amplifier into a current consumption value program, and then performs a phase detection program of the atomizing sheet signal to enter into a frequency tracking condition conversion program of S300;
s300: inputting the result obtained in S200 into the S300 for condition judgment, dividing the conversion program steps into 5 different conversion programs of cases 0-4 according to different conditions, and judging which Case program to execute subsequently according to the concrete conditions of each Case;
s400: the concrete conditions of Case0 are as follows: if the frequency tracking conversion program is operated for the first time and the system is not abnormal, the step is operated, if the specific conditions of Case0 are met, the frequency tracking program is preset to be the lowest power output, the frequency output of the pulse width modulation module is converted into the fastest frequency, the duty ratio is the smallest (the dead zone is the largest), the stable time value (for the timing of Case 1) of the conversion program is set, the conversion program is skipped, and the step is returned to the step S200;
s401: and if the Case0 is not met, entering the Case1, wherein the specific conditions of the Case1 are as follows: the step is operated when the stable time value of the conversion program is counted down and the system is abnormal at present; if Case1 is satisfied, the step counts down the stable time value of the program to be converted to 0, so that the Case does not need to change for the frequency output of the pulse width modulation module, and returns to the step S200;
s500: and if the Case1 is not met, entering the Case2, wherein the specific conditions of the Case2 are as follows: the current duty ratio is set to be the maximum or the second maximum (the dead zone interval is the minimum or the second minimum) and the system runs the step without abnormality; if the current consumption current value accords with Case2, adjusting the frequency according to the current consumption current value, increasing the current consumption when the duty ratio is increased, decreasing the current consumption when the duty ratio is decreased, slightly increasing the current consumption when the frequency is decreased, slightly decreasing the current consumption when the frequency is increased, approaching the current consumption target value when the current consumption current resonates towards the atomizing plate by adjusting the duty ratio and the frequency, judging whether the modulation of the duty ratio and the frequency and the current change are abnormal, if the current is abnormal too large or the current is abnormal too small, performing frequency tracing or stopping again according to an abnormal processing program, then setting a conversion program to wait for a stable time (for Case1 timing), jumping out the conversion program, and returning to the step S200;
s600: if not, entering into Case3, and the specific conditions of Case3 are as follows: the current duty ratio is set to be below the third maximum and the system runs the step without abnormality; if Case3 is met, it means that the current duty ratio is set too small (the power consumption is much smaller than the target value, so the modulation action is mainly to increase the duty ratio), the frequency is kept fastest, the duty ratio is increased by 1 step (the dead zone is reduced), then the conversion program is set to wait for the stable time (for Case1 timing), the conversion program is skipped, and the step S200 is returned to;
s700, if not conforming to Case3, entering Case4 Case4 with the specific conditions as follows: the current step is operated when the current and the voltage are abnormal; if the Case4 is satisfied, the frequency tracking or shutdown handling is performed again according to the design requirement, the conversion program is jumped out, and the step S200 is returned, and if the Case4 is not satisfied, the conversion program is directly jumped out, and the step S200 is returned.
The abnormity solving program comprises a comparator interrupt program, which means that when the comparator detects the moment that the voltage exceeds the system load or the current exceeds the system load, the system is interrupted, and the interrupt program is jumped to execute a corresponding abnormity solving program, which is a mechanism related to system protection; the comparator interrupt routine is:
s610, each comparator shares interrupt, so that each comparator interrupt flag needs to be checked to see which comparator is interrupted;
s620: if the interruption is consistent with the interruption of the CMP4, implementing the system overcurrent protection and jumping out of the interruption mode; if the interruption of CMP4 is not satisfied, go to S630;
s630: if the interruption is consistent with the interruption of the CMP2, implementing the VCC overvoltage protection of the system, and jumping out of the interruption mode; if there is no interruption corresponding to CMP2, go to S640;
s640: if the interruption is consistent with CMP3 or CMP5, the atomization sheet driving circuit is subjected to oscillation overvoltage protection, and an interruption mode is jumped out; if the interrupt does not conform to CMP3 or CMP5, the interrupt mode is directly skipped.
Because the comparators share the interrupt, the interrupt flag needs to be checked next to see which comparator is interrupted; CMP3 and CMP5 are the interruption of the over-voltage protection of the oscillation of the atomizing sheet driving circuit (60V in this example); CMP4 is system overcurrent protection interrupt (1.5A for this example); CMP2 is a system overvoltage protection interrupt (12.5V in this example); if the interruption is consistent with the interruption of the CMP4, implementing the system overcurrent protection and jumping out of the interruption mode; if the CMP4 interrupt is not met, the result is input to the CMP2 interrupt; in this embodiment, the over-current protection mechanism is directly stopped to stop PWM output and display abnormal condition because 1.5 has a significant difference from 1.2A set by the frequency tracking condition conversion procedure; if the CMP2 interruption is met, performing system overvoltage 12.5V protection, wherein the 12V voltage supplied by the system is abnormally overvoltage to protect all circuits of the system, the protection mechanism of the embodiment is directly shutdown and display abnormality, and an interruption mode is jumped out; if the interruption of CMP2 is not met, the result is input into CMP3 or CMP5 to be interrupted, and if the interruption of CMP3 or CMP5 is met, the atomization plate driving circuit oscillates overvoltage 60V for protection: when the voltage difference between the potential oscillation at two ends (Wave _ A, Wave _ B) of the atomizing sheet and GND reaches above 60V, the atomizing sheet and the NMOS are protected, the power output is adjusted to be low (the PWM frequency is adjusted to be faster by 1 order, and the dead zone is adjusted to be larger by 1 order), and the oscillation is continued to be adjusted by a frequency following switch program after being stabilized. The embodiment can also be provided with a conversion program for directly resetting the frequency tracking condition, or the device can be directly stopped to display the abnormity after a plurality of times of occurrence, and then the device can jump out of the interrupt mode; if the interrupt does not conform to CMP3 or CMP5, the interrupt mode is directly skipped.
The working principle is as follows: the atomization plate driving framework comprises a driving device and an atomization plate, the driving device pushes the atomization plate to reach the vibration frequency in an exciting oscillation mode, a single power supply is adopted in the driving device to drive the atomization plate, the single power supply is used, and a switching power supply transformer is not required to be arranged in the driving device; the driving device comprises various voltage protection architectures, phase detection protection architectures and overcurrent protection architectures, wherein the voltage protection architectures carry out voltage detection, when the boosted potential exceeds a set value, the starting time of the switch NMOS tube can be immediately reduced or all actions are closed, the phase detection protection architectures carry out phase detection, when phase abnormality occurs, various protection operations can be immediately carried out or all actions can be immediately closed, the overcurrent protection architectures carry out potential monitoring and overcurrent protection, when overcurrent abnormality occurs, all actions are closed, and the various voltage protection architectures, the phase detection protection architectures and the overcurrent protection architectures can protect the humidifier.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.