Method for automatically calibrating original point of knob valve, knob valve and gas stove
By automatically calibrating the origin on the MCU module of the gas stove, the working state of the rotary magnetic encoder and the ignitor are used to automatically locate the origin of the knob valve, which solves the problem of manual positioning in the prior art, and realizes efficient and low-cost knob valve origin positioning.
Patent Information
- Application Number
- CN202411673015.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In the prior art, the origin positioning of the knob valve needs to be performed manually, which wastes manpower and material resources, and is costly.
By automatically calibrating the origin on the MCU module of the gas stove, the AD stable value is obtained by using a rotary magnetic encoder, and the origin of the knob valve is automatically positioned in conjunction with the working state of the ignitor.
The automatic positioning of the origin of the knob valve is realized, which simplifies the installation and use of the knob valve, reduces costs, and improves work efficiency.
Smart Images

Figure CN119572800A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electrical appliances, and in particular to a method for automatically calibrating an origin of a knob valve, a knob valve and a gas stove. Background Art
[0002] With the rapid and steady growth of China's national economy, the housing demand of urban residents has undergone major changes, which has greatly driven the development of related industries including the stove industry. At the same time, the vast rural stove market has yet to be developed, and coupled with the demand of urban residents for stove replacement, the demand for stoves will maintain a steady growth momentum. In order to complete cooking in a short time and meet the requirements of some fierce fire dishes for firepower, Chinese fierce fire stir-frying has become an ideal choice for family kitchens. However, the normal start of the stir-frying function requires the stove knob valve to be opened to a certain angle before the stir-frying valve is started to play the greatest role. In this way, detecting the opening angle of the knob valve becomes a technical difficulty. At present, rotary magnetic encoders are mostly used in the market to detect the angle of the knob valve.
[0003] The rotary magnetic encoder is an encoder based on the magnetoelectric principle, which uses Hall sensors to detect changes in the magnetic field to determine the rotation position. It consists of a disk, a sensor, and a regulation circuit, and is divided into incremental and absolute types. The working principle of the magnetic encoder is as follows:
[0004] When current passes through a conductor in a magnetic field, the magnetic field will exert a force on the electrons in the conductor perpendicular to the direction of electron movement, thereby generating a potential difference in the direction perpendicular to the conductor and the magnetic flux lines. The change trend of this potential difference is proportional to the angle of rotation of the magnetic field. The angle of the magnetic field can be calculated by measuring this potential difference, thereby realizing the calculation of the rotation angle of the knob valve.
[0005] However, due to the limitation of production process and cost considerations, the magnet on the knob valve cannot be fixed at a uniform angle. The corresponding positions of the rotary encoder and the knob valve often need to be calibrated by humans, wasting manpower and material resources.
[0006] Therefore, there is an urgent need for a method for automatically calibrating the origin of a knob valve to solve the above problems. Summary of the invention
[0007] The present invention aims to solve one of the problems existing in the prior art to at least a certain extent. To this end, the present invention provides a method for automatically calibrating the origin of a knob valve, a knob valve and a gas stove.
[0008] The above purpose is achieved through the following technical solutions:
[0009] A method for automatically calibrating the origin of a knob valve, wherein the knob valve is angle-encoded by a rotary magnetic encoder, and the method for automatically calibrating the origin of the knob valve comprises the following steps:
[0010] S1: When the MCU module of the gas stove is powered on for the first time, the MCU module obtains the AD stable value ADs output by the rotary magnetic encoder;
[0011] S2: Automatically calibrate the origin of the knob valve according to ADs;
[0012] Wherein, S2 includes the following steps:
[0013] S21: Start;
[0014] S22: Determine whether the knob valve origin calibration value is saved, if not, enter S23;
[0015] S23: The MCU module samples the real-time AD value ADk output by the rotary magnetic encoder;
[0016] S24: Determine whether ADk=ADs, if so, proceed to S25, if not, return to S23;
[0017] S25: Determine whether the igniter of the gas stove is in the off state, if so, enter S26, if not, repeat S25;
[0018] S26: Convert ADk into an angle value β, save the angle value β as the knob valve origin calibration value and save it to the flash chip of the MCU module.
[0019] Optionally, after S26, the following steps are also included:
[0020] S27: Read the origin calibration value in the flash chip;
[0021] S28: Determine whether the read value = the saved value. If so, use the saved value as the origin calibration value and the program ends. If not, enter S29:
[0022] S29: Determine whether Y < Y0. If so, return to S26. If not, prompt that the save fails and the program ends.
[0023] Among them, Y is the real-time saving number, and Y0 is the preset saving number.
[0024] Optionally, 3≤Y0≤7.
[0025] Optionally, in S22, if the knob origin calibration value is saved, enter S27.
[0026] Optionally, S1 includes the following steps:
[0027] S11: The MCU module is powered on for the first time;
[0028] S12: Within a preset time t, the MCU module samples multiple groups of AD values outputted by the rotary magnetic encoder in sequence: (AD11, AD12...AD1n), (AD21, AD22...AD2n)...(ADn1, ADn2...ADnn);
[0029] S13: In each AD value group, after removing the maximum value and the minimum value, the average value ADa of the AD value group is calculated;
[0030] S14: Determine whether the difference between the average value ADa of the first AD value group and the average value ADa of any other AD value group is within the preset range M. If so, take the average value ADa of the first AD value group as the stable value ADs; if not, return to S12.
[0031] Optionally, 5s≥t≥2s.
[0032] Optionally, -6≤M≤6.
[0033] Optionally, before S12, the following steps are also included:
[0034] S101: Calculate time t1;
[0035] S102: Determine whether t1 ≥ t0, if yes, proceed to S12, if no, repeat S102;
[0036] Wherein, t0 is the second preset time, 90ms≤t0≤120ms.
[0037] Another aspect of the present invention provides a knob valve, comprising a knob and a magnet, wherein the magnet is mounted on the knob, and the knob valve automatically calibrates the origin using the above-mentioned method for automatically calibrating the origin of the knob valve.
[0038] Another aspect of the present invention provides a gas stove, comprising an MCU module, an igniter and the above-mentioned knob valve.
[0039] Compared with the prior art, the present invention has at least the following beneficial effects:
[0040] The method for automatically calibrating the origin of a knob valve provided by the present invention obtains the AD stable value ADs and realizes automatic positioning of the origin of the knob valve in coordination with the working state of the igniter. Compared with the method in the prior art that requires manual positioning of the knob valve every time the knob valve leaves the factory, the method has the advantages of being simple and efficient. It only requires changing part of the program of the gas stove to realize automatic positioning of the origin of the knob valve, which is low-cost and easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is one of the step diagrams of the method for automatically calibrating the knob valve provided by the present invention;
[0042] Figure 2 This is the second step diagram of the method for automatically calibrating the knob valve provided by the present invention;
[0043] Figure 3 It is a schematic diagram of the knob valve provided by the present invention rotating counterclockwise to the stir-frying angle range A. DETAILED DESCRIPTION
[0044] The following examples illustrate the present invention, but the present invention is not limited to these examples. Modifications to the specific embodiments of the present invention or equivalent replacement of some technical features without departing from the spirit of the present invention should be included in the scope of the technical solution claimed by the present invention.
[0045] The present invention provides a method for automatically calibrating the origin of a knob valve. The knob valve is angle-encoded by a rotary magnetic encoder. The method for automatically calibrating the origin of the knob valve comprises the following steps:
[0046] S1: When the MCU module of the gas stove is powered on for the first time, the MCU module obtains the AD stable value ADs output by the rotary magnetic encoder;
[0047] S2: Automatically calibrate the origin of the knob valve according to ADs.
[0048] Please refer to Figure 1 , S2 includes the following steps:
[0049] S21: Start;
[0050] S22: Determine whether the knob valve origin calibration value is saved, if not, enter S23;
[0051] S23: The MCU module samples the real-time AD value ADk output by the rotary magnetic encoder;
[0052] S24: Determine whether ADk=ADs, if so, proceed to S25, if not, return to S23;
[0053] S25: Determine whether the igniter of the gas stove is in the closed state. If so, it means that the knob valve is in the closed state at this time, that is, the knob valve is at the origin at this time, and then enter S26. If not, repeat S25;
[0054] S26: Convert ADk into an angle value β, save the angle value β as the knob valve origin calibration value and save it to the flash chip of the MCU module.
[0055] The method for automatically calibrating the origin of a knob valve provided by the present invention obtains the AD stable value ADs and realizes automatic positioning of the origin of the knob valve in coordination with the working state of the igniter. Compared with the method in the prior art that requires manual positioning of the knob valve every time the knob valve leaves the factory, the method has the advantages of being simple and efficient. It only requires changing part of the program of the gas stove to realize automatic positioning of the origin of the knob valve, which is low-cost and easy to implement.
[0056] It should be noted that the rotary magnetic encoder module outputs a corresponding voltage value by detecting the position of the magnetic strip installed in the knob valve. The voltage value ranges from 0V to 5V. The corresponding angle is 0°-360°. In the prior art, the angle of rotation of the knob valve is determined according to the voltage value of the rotary magnetic encoder, and then the gear position of the gas stove is determined. However, since the position of the magnetic strip is random, the AD value of the corresponding knob valve at the origin position is also random. That is, the range of the AD value of the knob valve at the origin position is also any value between 0V and 5V, and the corresponding angle is any value between 0° and 360°. In the prior art, it is necessary to manually locate the origin of the knob valve. This is a prior art and will not be repeated here.
[0057] Optionally, after S26, the following steps are also included:
[0058] S27: Read the origin calibration value in the flash chip;
[0059] S28: Determine whether the read value = the saved value. If so, use the saved value as the origin calibration value and the program ends. If not, enter S29:
[0060] S29: Determine whether Y < Y0. If so, return to S26. If not, prompt that the save fails and the program ends.
[0061] Among them, Y is the real-time saving number, and Y0 is the preset saving number.
[0062] By judging whether the read value is equal to the saved value, it is judged whether the origin calibration value is saved successfully, so as to avoid using the wrong origin calibration value in actual use.
[0063] Optionally, 3≤Y0≤7.
[0064] Optionally, in this embodiment, Y0 is 5.
[0065] Optionally, in S22, if the knob origin calibration value is saved, enter S27.
[0066] Please refer to Figure 2 Optionally, S1 includes the following steps:
[0067] S11: MCU module is powered on for the first time;
[0068] S12: Within the preset time t, the MCU module samples multiple groups of AD values output by the rotary magnetic encoder in sequence: (AD11, AD12...AD1n), (AD21, AD22...AD2n)...(ADn1, ADn2...ADnn);
[0069] S13: In each AD value group, after removing the maximum value and the minimum value, the average value ADa of the AD value group is calculated;
[0070] S14: Determine whether the difference between the average value ADa of the first AD value group and the average value ADa of any other AD value group is within the preset range M. If so, take the average value ADa of the first AD value group as the stable value ADs; if not, return to S12.
[0071] Optionally, 5s≥t≥2s.
[0072] Optionally, in this embodiment, t is 2s.
[0073] Optionally, -6≤M≤6.
[0074] Optionally, before S12, the following steps are also included:
[0075] S101: Calculate time t1;
[0076] S102: Determine whether t1 ≥ t0, if yes, proceed to S12, if no, repeat S102;
[0077] Wherein, t0 is the second preset time, 90ms≤t0≤120ms.
[0078] Optionally, in this embodiment, t0 is 100 ms.
[0079] Another aspect of the present invention provides a knob valve, comprising a knob and a magnet. The knob valve automatically calibrates the origin using the above-mentioned method for automatically calibrating the origin of the knob valve, and the magnet is installed on the knob.
[0080] Another aspect of the present invention provides a gas stove, comprising an MCU module, an igniter and the above-mentioned knob valve.
[0081] Optionally, a stir-fry valve is also included, and when the knob valve is opened to a stir-fry angle range, the stir-fry valve opens.
[0082] Please refer to Figure 3 Specifically, according to the method for automatically calibrating the origin of a knob valve provided by the present invention, the origin value of the knob valve is obtained, that is, the angle value β of the knob valve in the closed state, and the knob valve is rotated in the counterclockwise direction (i.e. Figure 3When β>270°, the center value of the stir-fry angle ɑ=90°-(360°-β°); when β=270°, the center value of the stir-fry angle ɑ=0°; when β<270°, the center value of the stir-fry angle ɑ=β+90°.
[0083] The stir-fry angle range A is set to a-10° to a+10°. When 350°>ɑ>10°, then (ɑ+10°)>A>(ɑ-10°); when ɑ>350°, then (10°-(360°-a)>A>(a-10°); when ɑ<10°, (ɑ+10°)>A>(360°-10°-ɑ).
[0084] When the angle at which the knob valve stays is within the stir-fry angle range A, the stir-fry valve automatically opens to achieve the automatic stir-fry function.
[0085] In this way, the origin value of the knob valve, that is, the angle value β of the knob valve in the closed state, can be obtained according to the method for automatically calibrating the origin of the knob valve provided by the present invention, and then the specific angle values of other gears of the gas stove can be calculated.
[0086] The above are only some embodiments of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the creative concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for automatically calibrating the origin of a knob valve, wherein the knob valve is angle-encoded by a rotary magnetic encoder, characterized in that: The method for automatically calibrating the origin of the knob valve comprises the following steps: S1: When the MCU module of the gas stove is powered on for the first time, the MCU module obtains the AD stable value ADs output by the rotary magnetic encoder; S2: Automatically calibrate the origin of the knob valve according to ADs; Wherein, S2 includes the following steps: S21: Start; S22: Determine whether the knob valve origin calibration value is saved, if not, enter S23; S23: The MCU module samples the real-time AD value ADk output by the rotary magnetic encoder; S24: Determine whether ADk=ADs, if so, proceed to S25, if not, return to S23; S25: Determine whether the igniter of the gas stove is in the off state, if so, enter S26, if not, repeat S25; S26: Convert ADk into an angle value β, save the angle value β as the knob valve origin calibration value and save it to the flash chip of the MCU module.
2. The method for automatically calibrating the origin of a knob valve according to claim 1, characterized in that: S26 also includes the following steps: S27: Read the origin calibration value in the flash chip; S28: Determine whether the read value = the saved value. If so, use the saved value as the origin calibration value and the program ends. If not, enter S29: S29: Determine whether Y < Y0. If so, return to S26. If not, prompt that the save fails and the program ends. Among them, Y is the real-time saving number, and Y0 is the preset saving number.
3. The method for automatically calibrating the origin of a knob valve according to claim 2, characterized in that: 3≤Y0≤7。 4. The method for automatically calibrating the origin of a knob valve according to claim 2, characterized in that: In S22, if the knob origin calibration value is saved, enter S27.
5. The method for automatically calibrating the origin of a knob valve according to any one of claims 1 to 4, characterized in that: S1 includes the following steps: S11: The MCU module is powered on for the first time; S12: Within a first preset time t, the MCU module samples multiple groups of AD values outputted sequentially by the rotary magnetic encoder: (AD11, AD12...AD1n), (AD21, AD22...AD2n)...(ADn1, ADn2...ADnn); S13: In each AD value group, after removing the maximum value and the minimum value, the average value ADa of the AD value group is calculated; S14: Determine whether the difference between the average value ADa of the first AD value group and the average value ADa of any other AD value group is within the preset range M. If so, take the average value ADa of the first AD value group as the stable value ADs; if not, return to S12.
6. The method for automatically calibrating the origin of a knob valve according to claim 5, characterized in that: 5s≥t≥2s.
7. The method for automatically calibrating the origin of a knob valve according to claim 5, characterized in that: -6≤M≤6。 8. The method for automatically calibrating the origin of a knob valve according to claim 5, characterized in that: S12 also includes the following steps: S101: Calculate time t1; S102: Determine whether t1 ≥ t0, if yes, proceed to S12, if no, repeat S102; Wherein, t0 is the second preset time, 90ms≤t0≤120ms.
9. A knob valve, comprising a knob and a magnet, wherein the magnet is mounted on the knob, characterized in that: The knob valve automatically calibrates the origin using the method for automatically calibrating the origin of a knob valve described in any one of claims 1-8.
10. A gas stove, characterized in that: It comprises an MCU module, an igniter and the knob valve as claimed in claim 9.
Citation Information
Patent Citations
Method for preventing range hood gear from mistakenly jumping in range hood and kitchen range linkage system
CN112283772A
Bender angel position control's controller
CN204856167U
Superelevation measurement accuracy capacitance method soil moisture measuring apparatu based on phase -locked loop technique
CN207268720U
Control system
JP2015194401A