Electromagnetic oven is used the touch key-press anti-jamming circuit
Technical field
The utility model relates to electromagnetic oven, relate in particular to a kind of make on the electromagnetic oven the transmission of touch key-press signal more accurately electromagnetic oven use the touch key-press anti-jamming circuit.
Background technology
Electromagnetic oven is to adopt the heating principle of magnetic field induction electric current that food is heated.During heating, the coil through panel below produces magnetic field, and when the magnetic line of force passed the bottom of a pan that magnetic conductor does, the pan cutting alternation magnetic line of force and produce eddy current in the bottom of a pan the bottom of a pan is generated heat rapidly reached heating purposes.Advantages such as cost low (need not special sensor), power consumption are lower because the capacitive induction touch key-press has, induction type (only need touch), implementation are various, easy for installation, can accurately locate; Therefore electromagnetic oven generally all adopts the capacitive induction touch key-press at present, and the capacitive induction touch key-press realizes that the common circuit of control mainly contains: relaxation oscillating circuit, charge transfer circuit and CDC electric capacity convert digital signal circuit into.When electromagnetic oven begins heating; Battery stove mainboard will strengthen the interference effect of capacitive induction touch key-press, and particularly when the water in the pot on the electromagnetic oven overflowed in a large number, water connected together with pot; And when flowing on the capacitive induction touch key-press, interference effect can be bigger.Relaxation oscillating circuit and charge transfer circuit are responsive to interference ratio, under the big situation of electromagnetic interference, carry out the scanning of capacitive induction touch key-press, and it is blunt or jump the key phenomenon and take place to have key response.So generally all use CDC electric capacity to convert digital signal circuit into to the collection of touch key-press signal in the present electromagnetic oven; But CDC electric capacity converts digital signal circuit into than relaxation oscillating circuit and charge transfer circuit; The principle more complicated, cost is higher.
Summary of the invention
The utility model mainly solves when the capacitive induction touch key-press adopts relaxation oscillating circuit or charge transfer circuit in original electromagnetic oven can receive big electromagnetic interference; It is inaccurate to cause capacitive induction touch key-press signal to transmit, and influences the technical problem that electromagnetic oven uses; Provide a kind of electromagnetic oven to use the touch key-press anti-jamming circuit; Which it can detect, and electromagnetic interference is big constantly; Electromagnetic interference is little constantly for which; Thereby make relaxation oscillating circuit or charge transfer circuit can avoid the big time period of electromagnetic interference, just remove to detect capacitive induction touch key-press signal, guarantee to obtain capacitive induction touch key-press signal accurately in the little time period of electromagnetic interference; Guarantee that electromagnetic oven normally uses, touch key-press relaxation oscillating circuit and charge transfer circuit also can be used in the electromagnetic oven.
The above-mentioned technical problem of the utility model mainly is able to solve through following technical proposals: the utility model comprises the touch key-press signal acquisition circuit that is provided with single-chip microcomputer U; Also comprise resistance R and capacitor C; One end ground connection of capacitor C; One end of the other end of capacitor C and described resistance R links to each other; The reference voltage input terminal REF of single-chip microcomputer U in the other end of resistance R and the described touch key-press signal acquisition circuit links to each other, and the acquired signal input ADC of the tie point of described resistance R and described capacitor C and described single-chip microcomputer U links to each other.
The electromagnetic interference of electromagnetic oven is the 50Hz power frequency of standard to be disturbed, and the Interference Peaks peak value is about 2V, and in front and back a period of time of alternating current zero passage, it is 0 that electromagnetic interference can be ignored basically, is about 2ms during this period of time.If remove to detect capacitive induction touch key-press signal in this time period, that just can avoid key response blunt or jump the generation of key phenomenon.Can know that by capacitance characteristic when the electromagnetic interference on the reference voltage input terminal REF of single-chip microcomputer (reference voltage end on the built-in analog to digital converter of single-chip microcomputer) strengthened, capacitor C can not be regarded as breaking off again but certain capacitive reactance is arranged; Electromagnetic interference hour, capacitor C can be considered disconnection.We utilize foregoing circuit that the electromagnetic oven alternating current zero passage period is detected like this; Through the built-in analog to digital converter sampling resistor of single-chip microcomputer and the voltage at electric capacity tie point place; This sampled value is generally the magnitude of voltage of reference voltage input terminal REF when electromagnetic interference is smaller, and this sampled value can be less than the magnitude of voltage of reference voltage input terminal REF when electromagnetic interference is big, when the difference of the magnitude of voltage of reference voltage input terminal REF and sampled value delimits greater than one; Be the non-zero passage period of alternating current; Just can be judged as the moment of big electromagnetic interference, otherwise then be the alternating current zero passage period, electromagnetic interference is less maybe can ignore.When single-chip microcomputer detects electromagnetic interference when big, then touch key-press is not detected, otherwise then touch key-press is detected.Therefore; The detection of touch key-press signal has been avoided having in the electromagnetic oven moment of big electromagnetic interference generation; Guarantee to obtain capacitive induction touch key-press signal accurately; Thereby make electromagnetic interference can not influence the use of touch key-press, do not have the blunt or jumping key phenomenon generation of key response, guarantee that electromagnetic oven normally uses.
Certainly; If the single-chip microcomputer that adopts does not have built-in analog to digital converter; Also can the tie point of resistance R and capacitor C and the input of external analog to digital converter be linked to each other; The output of external analog to digital converter links to each other with single-chip microcomputer again, and the other end of the reference voltage input terminal REF of external analog to digital converter and resistance R links to each other, and connects through such circuit and also can realize above-mentioned functions.
As preferably, described touch key-press signal acquisition circuit is a touch key-press relaxation oscillations circuit.Make touch key-press relaxation oscillations circuit can not receive the influence of electromagnetic interference, also can use in the electromagnetic oven, reduce cost.
As preferably, described touch key-press signal acquisition circuit is the touch key-press charge transfer circuit.Make the touch key-press charge transfer circuit can not receive the influence of electromagnetic interference, also can use in the electromagnetic oven, reduce cost.
The beneficial effect of the utility model is: front and back a period of time of utilizing the alternating current zero passage; It is zero characteristic that electromagnetic interference can be ignored basically; Detect this time period, make relaxation oscillating circuit or charge transfer circuit can avoid the big time period of electromagnetic interference, little or be time period of zero just to remove to detect capacitive induction touch key-press signal basically in electromagnetic interference; Guarantee to obtain capacitive induction touch key-press signal accurately; Guarantee that electromagnetic oven normally uses, touch key-press relaxation oscillating circuit and charge transfer circuit also can be used in the electromagnetic oven, reduce cost.
Description of drawings
Fig. 1 is a kind of circuit connection structure sketch map of the utility model.
Fig. 2 is a kind of circuit theory diagrams of touch key-press relaxation oscillations circuit in the utility model.
Embodiment
Pass through embodiment below, and combine accompanying drawing, do further bright specifically the technical scheme of the utility model.
Embodiment 1: the electromagnetic oven of present embodiment is used the touch key-press anti-jamming circuit; As shown in Figure 1; Comprise the touch key-press signal acquisition circuit and resistance R and the capacitor C that have single-chip microcomputer U; Single-chip microcomputer U is built-in with comparator, timer and analog to digital converter, an end ground connection of capacitor C, and an end of the other end of capacitor C and resistance R links to each other; The reference voltage input terminal REF of the other end of resistance R and single-chip microcomputer U links to each other, and the acquired signal input ADC of the tie point of resistance R and capacitor C and single-chip microcomputer U (being the input of the built-in analog to digital converter of single-chip microcomputer) links to each other.In the present embodiment; The touch key-press signal acquisition circuit is a touch key-press relaxation oscillations circuit; As shown in Figure 2; Comprise three touch key-press S1~S3, six resistance R 1~R6 and a single-chip microcomputer U (being the single-chip microcomputer that the above-mentioned tie point with resistance R and capacitor C links to each other), three touch key-presss are the capacitive induction touch key-press, and each links to each other touch key-press S1, touch key-press S2 and touch key-press S3 with three inputs of single-chip microcomputer U; These three inputs link to each other with the inverting input of the comparator of single-chip microcomputer inside behind an inner treatment circuit of single-chip microcomputer; One end of resistance R 1, resistance R 2 and resistance R 3 links to each other with touch key-press S1, touch key-press S2, touch key-press S3 respectively, and the other end of resistance R 1, resistance R 2 and resistance R 3 also connects, and links to each other with an end of resistance R 4; Should and contact link to each other with the output of the inner comparator of single-chip microcomputer U again; One end of the other end of resistance R 4 and resistance R 5, resistance R 6 also connects, and also the normal phase input end of the comparator of contact and single-chip microcomputer inside links to each other magnitude of voltage of another termination of resistance R 5; The other end ground connection of resistance R 6; The output of the comparator that single-chip microcomputer U is inner links to each other with the inner timer of single-chip microcomputer, and the input of the analog to digital converter that single-chip microcomputer U is inner links to each other with the tie point of resistance R and capacitor C, and the reference voltage input terminal REF of the analog to digital converter that single-chip microcomputer U is inner and the other end of resistance R link to each other.
After finger was pressed touch key-press, the electric capacity on the touch key-press can increase, according to following formula:
Learn when the electric capacity on the touch key-press increases; Frequency of oscillation will reduce, and this frequency of oscillation is become the PWM ripple through waveform after the built-in comparator comparison of single-chip microcomputer, and the signal of this PWM ripple is as the clock source of single-chip microcomputer built-in timer; Then in a regular time window; Detect the variation of counter in the timer, thereby reach the purpose that detects frequency, just can judge whether that key presses.
Because electromagnetic oven is an ac-powered; Exist the 50Hz power frequency to disturb; And electromagnetic interference is less when the alternating current zero passage, utilizes alternating current zero passage detection principle to detect electromagnetic interference than minor time slice, and the single-chip microcomputer U of touch key-press signal acquisition circuit just removes to gather the touch key-press signal in the electromagnetic oven in this time period; U does not gather the touch key-press signal at other times section single-chip microcomputer, thereby reaches jamproof purpose.Alternating current zero passage detection process is following:
1, the single-chip microcomputer U in the touch key-press relaxation oscillations circuit gathers the voltage V of the tie point of resistance R and capacitor C through the acquired signal input ADC of built-in analog to digital converter;
2, the voltage VREF of the reference voltage input terminal REF of single-chip microcomputer U analog to digital converter that voltage V and single-chip microcomputer U is built-in compares, and obtains VREF-V=△ V;
3, single-chip microcomputer U compares a △ V and a set point A, if △ is V>A, is non-alternating current zero-crossing timing section, then is judged to be to have big electromagnetic interference, and this moment, single-chip microcomputer U did not gather the touch key-press signal; If △ is V≤A, be alternating current zero-crossing timing section, then be judged to be and do not have big electromagnetic interference, this moment, single-chip microcomputer U gathered the touch key-press signal.
After single-chip microcomputer U collects the touch key-press signal, handle through internal processes again, send signal and remove to control the relevant device in the electromagnetic oven.
Certainly the touch key-press signal acquisition circuit also can adopt the touch key-press charge transfer circuit; Also can adopt the touch key-press relaxation oscillations circuit of other circuit connecting mode; No matter use any touch key-press signal acquisition circuit, all should be within the scope of the utility model protection.
The utility model is through the alternating current zero passage detection; Which is confirmed, and electromagnetic interference is big constantly, and electromagnetic interference is little constantly for which, thereby can avoid the big time period of electromagnetic interference; Only just remove to detect capacitive induction touch key-press signal in the little time period of electromagnetic interference; Guarantee to obtain capacitive induction touch key-press signal accurately, do not have the blunt or jumping key phenomenon generation of key response, guarantee that electromagnetic oven normally uses; Touch key-press relaxation oscillating circuit and charge transfer circuit also can be used in the electromagnetic oven, effectively reduce cost.