Summary of the invention
The objective of the invention is to consider the problems referred to above, a kind of power control precision is high, can effectively improve the electromagnetic oven heating power error a kind of electromagnetic oven heating control device and control method are provided.
The technical scheme that realizes the object of the invention is: a kind of electromagnetic oven heating control device; Comprise microcontroller, drive circuit, resonant circuit; The input of said microcontroller is connected with the output of resonant circuit; The output of microcontroller is connected with the input of drive circuit; The output of drive circuit is connected with the input of resonant circuit, also includes memory, timer, counter, comparator, timer in the said microcontroller, and parameter preset comprises in the said memory: the target pulse of firepower gear drives width Ton, target resonance frequency f0, frequency collection initiation threshold Δ T, frequency correction initiation threshold Δ f; Said timer is used to detect the current pulse width T of resonant circuit; Counter is gathered the current resonance frequency f of resonant circuit; Said comparator is used for comparison pulse width T and Ton, resonance frequency f and f0; Said timer is according to the pulse width T of comparative result adjustment resonant circuit.
Said timer, counter set are formed in the timer.
Also store correction parameter in the memory of said microcontroller, said correction parameter comprises positive threshold Δ T1, proofreaies and correct negative sense threshold value Δ T2.
The invention also discloses a kind of control method of electromagnetic oven heating control device, may further comprise the steps:
S1: the target pulse of preset respectively each firepower gear drives width Ton and target resonance frequency f0, frequency collection initiation threshold Δ T, frequency correction initiation threshold Δ f in the memory of microcontroller;
S2: during resonant circuit work, timer begins to detect the current pulsed drive width of resonant circuit T;
S3: the pulse width T that collects is sent to comparator, and comparator compares pulse width T and target pulse width Ton;
S4: when | T-Ton|≤Δ T, counter begins to gather the current resonance frequency f of resonant circuit, and the resonance frequency f that collects is sent to comparator, otherwise returns step S2;
S5: comparator compares pulse frequency f and target frequency f0;
S6: as | f-f0|>during Δ f, timer is adjusted pulse duration according to corrector T'=-a * (f – f0)+Ton; Otherwise return step S2; Wherein a is an arithmetic number.
Further, step S6) also comprise the more adjusted pulse width T of comparator ' and Ton, comprise following two kinds of situation:
1) as T'-Ton>0 the time, comparator is with the difference of T' – Ton and positive threshold Δ T1 relatively; If T'-Ton≤Δ T1, then (f-f0)+Ton adjust pulse duration, adjusts pulse duration otherwise press T''=Ton+ Δ T1 timer by formula T''=-a *;
2) < 0 the time, comparator with the difference of T' – Ton and negative sense threshold value Δ T2 relatively as T'-Ton; If T-Ton>Δ T2, timer is then by formula T''=-a * (f-f0)+Ton adjustment T value; Otherwise press T''=Ton+ Δ T2 adjustment pulse duration.
The invention has the beneficial effects as follows: be the driving pulse width of benchmark adjustment resonant circuit with predefined target pulse width and target resonance frequency; Control method is simple and reliable; With traditional comparing, effectively avoided constantan wire, PCB Copper Foil size, the amplifier portion current sample error effect that factor is brought that grades according to IGBT conducting Current Feedback Control mode; And be set with initial collection threshold value and secondary corrected threshold in the control procedure, and improved the precision of power control greatly, power stability, the power consistency during batch process is good.
Embodiment
Do further detailed explanation below in conjunction with embodiment and accompanying drawing specific embodiments of the invention.
As shown in Figure 1; In the embodiment of the invention one; The control device of electromagnetic oven heating power comprises: microcontroller 1, drive circuit 2, resonant circuit 3; Line voltage is connected with resonant circuit 3 inputs through behind the rectifying and wave-filtering, and drive circuit 2, resonant circuit 3 are connected with the input of microcontroller 1 respectively, and the output of microcontroller 1 is connected with the input of drive circuit 2; The output of drive circuit 2 is connected with the output of resonant circuit 3, in microcontroller 1, also includes memory 11, timer 12, counter 13, comparator 14, timer 15.
Parameter preset comprises in memory 11: the target pulse of firepower gear drives width Ton, target resonance frequency f0, frequency collection initiation threshold Δ T, frequency correction initiation threshold Δ f;
Timer 12 is used to detect the current pulse width T of resonant circuit 3;
Counter 13 is gathered the current resonance frequency f of resonant circuit 3;
Comparator 14 is used for comparison pulse width T and Ton, resonance frequency f and f0;
Timer 15 is according to the pulse width T of comparative result adjustment resonant circuit 3.
As shown in Figure 2; The alternating current of 220V is behind rectifying and wave-filtering; To drive circuit 2, resonant circuit 3 power supplies, resonant circuit 3 wherein comprises resonant capacitance C1, coil panel L1, divider resistance R1, R2, R3, R4 respectively, and 1 pin of resonant capacitance C1 is connected with an end of resistance R 3; The other end of resistance R 3 is connected with an input of resistance R 4, microcontroller 1 respectively, the other end ground connection of resistance R 4; 2 pin of resonant capacitance C1 are connected with resistance R 1, and the other end of resistance R 1 is connected with another input of resistance R 2, microcontroller 1 respectively, the other end ground connection of resistance R 2.Microcontroller 1 divided by the sampling period, draws current resonance frequency f through the output umber of pulse of the inner integrated comparator of collection self.Microcontroller 1 is to 2 drive signals of drive circuit.
In another embodiment of the present invention, timer 12, counter 13 are integrated in the timer 15.
As shown in Figure 3, the control method of electromagnetic oven heating power provided by the invention may further comprise the steps:
S1: the target pulse of preset respectively each firepower gear drives width Ton and target resonance frequency f0, frequency collection initiation threshold Δ T, frequency correction initiation threshold Δ f in the memory 11 of microcontroller 1;
S2: during resonant circuit 3 work, timer 12 begins to detect resonant circuit 3 current pulsed drive width T;
S3: the pulse width T that collects is sent to comparator 14, and comparator 14 compares pulse width T and target pulse width Ton;
S4: when | T-Ton|≤Δ T, counter 13 begins to gather the current resonance frequency f of resonant circuit 3, and the resonance frequency f that collects is sent to comparator 14, otherwise returns step S2;
S5: comparator 14 compares pulse frequency f and target frequency f0;
S6: as | f-f0|>during Δ f, timer 15 is adjusted T according to corrector T'=-a * (f – f0)+Ton; Otherwise return step S2; Wherein a is an arithmetic number.
In another embodiment of the present invention, also store correction parameter in the memory 11 of microcontroller 1, said correction parameter comprises positive threshold Δ T1, proofreaies and correct negative sense threshold value Δ T2.
As shown in Figure 4, the step S6 of the control method of electromagnetic oven heating control device) also comprise comparator 14 more adjusted pulse width T ' and Ton, comprise following two kinds of situation:
1) as T'-Ton>0 the time, comparator 14 is with the difference of T' – Ton and positive threshold Δ T1 relatively; If T'-Ton≤Δ T1, (f-f0)+Ton adjust pulse duration, adjusts pulse duration otherwise press T''=Ton+ Δ T1 by formula T''=-a * for 15 of timers;
2) < 0 the time, comparator 14 with the difference of T' – Ton and negative sense threshold value Δ T2 relatively as T'-Ton; If T-Ton>Δ T2,15 of timers are by formula T''=-a * (f-f0)+Ton adjustment T value; Otherwise press T''=Ton+ Δ T2 adjustment pulse duration.
Wherein, the influence of choosing the target power, frequency sampling cycle and the heating topological structure that receive different firepower gears of a, Δ f, Δ T, Δ T1, Δ T2 numerical value can be with concrete designing requirement debugging; In the present embodiment, firepower gear power is 1600 ~ 1800W, and the sampling period of frequency f is 0.1 ~ 1s, Δ f (10,100), Δ T (0,3), Δ T1 (5,20), Δ T2 (50 ,-5), a (0,0.50).