A method for automatically calibrating an origin point of a rotary knob valve, a rotary knob valve and a gas stove
By acquiring stable AD values (ADs) using a rotary magnetic encoder and automatically calibrating the origin of the rotary valve in conjunction with the igniter status, the waste of manual positioning in existing technologies is solved, and automatic positioning of the rotary valve origin and efficient production are achieved.
Patent Information
- Application Number
- CN202411673015.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In the existing technology, the origin positioning of the knob valve requires manual calibration, which leads to a waste of manpower and resources, and it is impossible to standardize and fix the angle.
The AD stable value ADs is obtained by a rotary magnetic encoder, and the origin of the knob valve is automatically calibrated by combining the igniter status. Automatic positioning is achieved by using an MCU module and a flash chip.
It enables automatic positioning of the knob valve origin, reducing costs, improving efficiency, and simplifying the production process.
Smart Images

Figure CN119572800B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electrical appliances, in particular to a method for automatically calibrating the origin of a knob valve, a knob valve and a gas stove. BACKGROUND
[0002] With the rapid and steady growth of China's national economy, the housing needs of urban residents have undergone major changes, which has a significant pull effect on the development of related industries including the stove industry. At the same time, the rural stove market needs to be developed, combined with the demand for stove upgrades for urban residents, 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 home kitchens. Normal start of the stir-frying function requires the knob valve to be opened to a certain angle before starting the stir-frying valve to maximize its effect. Therefore, detecting the opening angle of the knob valve becomes a technical difficulty. At present, a rotary magnetic encoder is often used to detect the angle of the knob valve.
[0003] The rotary magnetic encoder is an encoder based on the magneto-electric principle, which detects the change of the magnetic field with a Hall sensor to determine the rotation position. It is composed of a magnetic disk, a sensor and an adjusting circuit, and is divided into incremental and absolute value types. The working principle of the magnetic encoder is as follows:
[0004] When an electric current passes through a conductor located in a magnetic field, the magnetic field will exert a force on the electrons in the conductor perpendicular to the direction of electron motion, thereby generating a potential difference in the direction perpendicular to the conductor and the magnetic induction line. The trend of this potential difference is proportional to the angle of the magnetic field rotation, and 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 limitations of production process and cost-based considerations, the magnet on the knob valve cannot be fixed at a uniform angle. The corresponding position of the rotary encoder and the knob valve often needs to be calibrated by people, which wastes manpower and 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
[0007] The present application aims to at least partially solve one of the problems existing in the prior art, and for this purpose, the present application proposes a method for automatically calibrating the origin of a knob valve, a knob valve and a gas stove.
[0008] The above-mentioned purpose is achieved by the following technical solutions:
[0009] A method for automatically calibrating the origin of a knob valve, the knob valve being angle-encoded by a rotary magnetic encoder, the method for automatically calibrating the origin of the knob valve comprising the following steps:
[0010] S1: when the MCU module of the gas stove is powered on for the first time, the MCU module acquires an AD stable value ADs output by a rotary magnetic encoder;
[0011] S2: automatically calibrating an origin of a knob valve according to the ADs;
[0012] S2 comprises the following steps:
[0013] S21: starting;
[0014] S22: judging whether the origin calibration value of the knob valve has been saved, if not, entering S23;
[0015] S23: the MCU module sampling a real-time AD value ADk output by the rotary magnetic encoder;
[0016] S24: judging whether ADk = ADs, if yes, entering S25, if not, returning to S23;
[0017] S25: judging whether an igniter of the gas stove is in a closed state, if yes, entering S26, if not, repeatedly executing S25;
[0018] S26: converting the ADk into an angle value β, saving the angle value β as the origin calibration value of the knob valve and saving to a flash chip of the MCU module.
[0019] Optionally, S26 further comprises the following steps:
[0020] S27: reading out the origin calibration value in the flash chip;
[0021] S28: judging whether the read value = the saved value, if yes, using the saved value as the origin calibration value, and ending the program, if not, entering S29:
[0022] S29: judging whether Y < Y0, if yes, returning to S26, if not, prompting a saving failure, and ending the program;
[0023] Wherein, Y is a real-time saving times, and Y0 is a preset saving times.
[0024] Optionally, 3 ≤ Y0 ≤ 7.
[0025] Optionally, in S22, if the origin calibration value of the knob valve has been saved, entering S27.
[0026] Optionally, S1 comprises the following steps:
[0027] S11: the MCU module is powered on for the first time;
[0028] S12: In a preset time t, the MCU module samples a plurality of groups of AD values output by the rotary magnetic encoder in turn: (AD11, AD12, AD1n), (AD21, AD22, AD2n), (ADn1, ADn2, ADnn);
[0029] S13: In each group of AD values, the average value ADa of the group of AD values is calculated after removing the maximum value and the minimum value;
[0030] S14: Determine whether the difference between the average value ADa of the first group of AD values and the average value ADa of any other group of AD values is within a preset range M, if yes, take the average value ADa of the first group of AD values as the stable value ADs, if not, return to S12.
[0031] Optionally, 5s >= t >= 2s.
[0032] Optionally, -6 <= M <= 6.
[0033] Optionally, S12 further comprises the following steps before S12:
[0034] S101: Calculate the time t1;
[0035] S102: Determine whether t1 >= t0, if yes, enter S12, if not, repeat S102;
[0036] Wherein, t0 is a second preset time, 90ms <= t0 <= 120ms.
[0037] The application further provides a knob valve, comprising a knob and a magnet, the magnet is installed on the knob, the knob valve adopts the method for automatically calibrating the origin point of the knob valve.
[0038] The application further provides a gas stove, comprising an MCU module, an igniter and the knob valve.
[0039] Compared with the prior art, the application has at least the following beneficial effects:
[0040] The method for automatically calibrating the origin point of the knob valve provided by the application realizes automatic positioning of the origin point of the knob valve by obtaining the AD stable value ADs and cooperating with the working state of the igniter, compared with the method of manual positioning of the knob valve at each time of leaving the factory in the prior art, the method has the advantages of simplicity and efficiency, and only needs to change part of the program of the gas stove to realize automatic positioning of the origin point of the knob valve, which is low in cost and easy to implement. BRIEF DESCRIPTION OF DRAWINGS
[0041] Figure 1 is one of the step diagrams of the method for automatically calibrating the origin point of the knob valve provided by the application;
[0042] Figure 2 is the second step diagram of the method for automatically calibrating the original point of the knob valve provided by the application;
[0043] Figure 3 is a schematic diagram of the knob valve rotating counterclockwise to the wok frying angle range A. DETAILED DESCRIPTION
[0044] The following examples are used to illustrate the application, but the application is not limited by these examples. Modifications to the specific embodiments of the application or equivalent replacements to some technical features without departing from the spirit of the application should be covered in the scope of the technical solutions claimed by the application.
[0045] The application provides a method for automatically calibrating the original point of a knob valve, the knob valve is angle-encoded by a rotary magnetic encoder, and the method for automatically calibrating the original point 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 acquires an AD stable value ADs output by the rotary magnetic encoder;
[0047] S2: Automatically calibrate the original point of the knob valve according to the ADs.
[0048] Please refer to Figure 1 , S2 comprises the following steps:
[0049] S21: Start;
[0050] S22: Determine whether the original point calibration value of the knob valve has been saved, if not, proceed to S23;
[0051] S23: The MCU module samples a real-time AD value ADk output by the rotary magnetic encoder;
[0052] S24: Determine whether ADk = ADs, if yes, proceed to S25, if not, return to S23;
[0053] S25: Determine whether the igniter of the gas stove is in the off state, if yes, it indicates that the knob valve is in the off state at this time, that is, the knob valve is at the original point at this time, then proceed to S26, if not, repeat S25;
[0054] S26: Convert ADk into an angle value β, save the angle value β as the original point calibration value of the knob valve and save it to the flash chip of the MCU module.
[0055] The method for automatically calibrating the origin of the knob valve provided by the application, by acquiring the AD stable value ADs, cooperating with the working state of the igniter, realizes automatic positioning of the origin of the knob valve, compared with the method of manual positioning of the knob valve each time it is shipped in the prior art, has the advantages of simplicity and efficiency, and only needs to change part of the program of the gas stove to realize automatic positioning of the origin of the knob valve, is low in cost and easy to realize.
[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 range of the voltage value is 0V-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 of the gas stove is determined, but 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 AD value of the knob valve at the origin position is also any value in the range of 0V-5V, and the corresponding angle is any value in the range of 0°-360°. In the prior art, the origin of the knob valve needs to be manually positioned, which is the prior art and will not be described here.
[0057] Optionally, the method further comprises the following steps after S26:
[0058] S27: reading the origin calibration value in the flash chip;
[0059] S28: determining whether the read value is equal to the saved value, if yes, using the saved value as the origin calibration value, and ending the program, if not, entering S29:
[0060] S29: determining whether YY0, if yes, returning to S26, if not, prompting that the saving fails, and ending the program;
[0061] Wherein, Y is the real-time saving times, and Y0 is the preset saving times.
[0062] By determining whether the read value is equal to the saved value, it is determined whether the origin calibration value is saved successfully, so as to avoid using the wrong origin calibration value in actual use.
[0063] Optionally, 3Y0<7.
[0064] Optionally, in the embodiment, Y0 is 5.
[0065] Optionally, in S22, if the origin calibration value of the knob valve has been saved, S27 is entered.
[0066] Please refer to Figure 2 Optionally, S1 comprises the following steps:
[0067] S11: the MCU module is powered on for the first time;
[0068] S12: In a preset time t, the MCU module samples a plurality of groups of AD values outputted by the rotary magnetic encoder in turn: (AD11, AD12, …, AD1n), (AD21, AD22, …, AD2n), …, (ADn1, ADn2, …, ADnn);
[0069] S13: In each group of AD values, the average value ADa of the group of AD values is calculated after removing the maximum value and the minimum value;
[0070] S14: It is judged whether the difference between the average value ADa of the first group of AD values and the average value ADa of any other group of AD values is within a preset range M, if yes, the average value ADa of the first group of AD values is taken as the stable value ADs, if not, returning to S12.
[0071] Optionally, 5s≥t≥2s.
[0072] Optionally, in the embodiment, t is 2s.
[0073] Optionally, -6≤M≤6.
[0074] Optionally, S12 further includes the following steps before S12:
[0075] S101: calculating a time t1;
[0076] S102: judging whether t1≥t0, if yes, entering S12, if not, repeating S102;
[0077] Wherein, t0 is a second preset time, 90ms≤t0≤120ms.
[0078] Optionally, in the embodiment, t0 is 100ms.
[0079] Another aspect of the present application provides a knob valve, comprising a knob and a magnet, the knob valve automatically calibrates the origin point by using the method for automatically calibrating the origin point of the knob valve, and the magnet is installed on the knob.
[0080] Still another aspect of the present application provides a gas stove, comprising an MCU module, an igniter and the knob valve.
[0081] Optionally, it further comprises a wok frying valve, which is opened when the knob valve is opened to the wok frying angle range.
[0082] Please refer to Figure 3 , specifically, the method for automatically calibrating the origin point of the knob valve provided by the present application acquires the origin point value of the knob valve, i.e. 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 explosion angle center value a=90°-(360°-β°); when β=270°, the explosion angle center value a=0°; and when β<270°, the explosion angle center value a=β+90°.
[0083] The explosion angle range A is set as a-10° to a+10°. When 350°>a>10°, then (a+10°)>A>(a-10°); when a>350°, then (10°-(360°-a)>A>(a-10°); and when a<10°, (a+10°)>A>(360°-10°-a).
[0084] When the angle of the knob valve stays in the explosion angle range A, the explosion valve is automatically opened to realize the automatic explosion function.
[0085] In this way, the origin value of the knob valve, i.e. the angle value β of the knob valve in the closed state, can also be obtained according to the method for automatically calibrating the origin of the knob valve provided by the present application, and then the specific angle values of other gears of the gas stove are calculated.
[0086] The above only describes some embodiments of the present application. For those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are all within the protection scope of the present application.
Claims
1. A method for automatic zeroing of a rotary knob valve, the rotary knob valve being angularly 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 acquires the AD stable value ADs output by the rotary magnetic encoder; S2: automatically calibrating the origin of the knob valve according to ADs; S2 comprises the following steps: S21: start; S22: judging whether the knob valve origin calibration value has been saved, if not, entering S23; S23: the MCU module samples the real-time AD value ADk output by the rotary magnetic encoder; S24: judging whether ADk = ADs, if yes, entering S25, if not, returning to S23; S25: judging whether the igniter of the gas stove is in the off state, if yes, entering S26, if not, repeatedly executing S25; S26: converting ADk into an angle value β, saving the angle value β as the knob valve origin calibration value and saving it to the flash chip of the MCU module.
2. The method of automatically indexing a home position of a knob valve of claim 1, wherein, After S26, the following steps are further included: S27: reading out the origin calibration value in the flash chip; S28: judging whether the read value = the saved value, if yes, using the saved value as the origin calibration value, and ending the program, if not, entering S29: S29: judging whether Y < Y0, if yes, returning to S26, if not, prompting that the saving fails, and ending the program; wherein Y is the real-time saving times, and Y0 is the preset saving times.
3. The method of automatically indexing a home position of a knob valve of claim 2, wherein, 3≤Y0≤7。 4. The method of automatically indexing a home position of a knob valve of claim 2, wherein, In S22, if the knob valve origin calibration value has been saved, entering S27.
5. The method of automatically indexing a home position of a knob valve of any of claims 1-4, wherein, S1 comprises the following steps: S11: the MCU module is powered on for the first time; S12: within the first preset time t, the MCU module samples the multiple groups of AD values output by the rotary magnetic encoder in turn: (AD11, AD12……AD1n), (AD21, AD22……AD2n)……(ADn1, ADn2……ADnn); S13: in each group of AD values, the average value ADa of the group is calculated after removing the maximum value and the minimum value; S14: judging whether the difference between the average value ADa of the first group of AD values and the average value ADa of any other group of AD values is within the preset range M, if yes, taking the average value ADa of the first group of AD values as the stable value ADs, if not, returning to S12.
6. The method of automatically indexing a home position of a knob valve of claim 5, wherein, 5s ≥ t ≥ 2s.
7. The method of automatically indexing a home position of a knob valve of claim 5, wherein, -6≤M≤6。 8. The method of automatically indexing a home position of a knob valve of claim 5, wherein, Before S12, the following steps are further included: S101: calculating the time t1; S102: judging whether t1 ≥ t0, if yes, entering S12, if not, repeatedly executing S102; wherein t0 is the second preset time, 90ms ≤ t0 ≤ 120ms.
9. A knob valve comprising a knob and a magnet mounted on the knob, characterized in that The knob valve automatically calibrates the origin by the method for automatically calibrating the origin of the knob valve according to any one of claims 1-8.
10. A gas hob, characterized in that The knob valve comprises an MCU module, an igniter and the knob valve according to claim 9.
Citation Information
Patent Citations
Method for preventing range hood gear from mistakenly jumping in range hood and kitchen range linkage system
CN112283772A
Superelevation measurement accuracy capacitance method soil moisture measuring apparatu based on phase -locked loop technique
CN207268720U