Magnetic knob gear adjusting method and device and electrical equipment

By dynamically resetting the initial angle value of the magnetic knob, the problem of gear shifting when adjusting near a fixed angle threshold is solved, achieving stable and accurate gear display and improved operating experience.

CN121812401APending Publication Date: 2026-04-07GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-02
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

When adjusting a traditional magnetic knob near a fixed angle threshold, the gear display tends to jump back and forth, affecting the user experience.

Method used

By responding to the rotation of the magnetic knob, the rotation direction and angle are determined, the initial angle value of the gear is dynamically reset, and the target gear is determined and the display is updated based on the rotation direction and angle range.

Benefits of technology

It achieves stability and precision in gear adjustment, improves the user experience, avoids back-and-forth switching near the gear threshold, and is suitable for a variety of electrical appliances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121812401A_ABST
    Figure CN121812401A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent control, and discloses a magnetic knob gear adjusting method and device and electrical equipment, the rotation direction, the rotation angle and the current gear are determined by responding to the current rotation adjusting operation of a magnetic knob, and the initial gear angle value is reset by combining the rotation direction and the angle range corresponding to the current gear, so that the current gear is adjusted. And determining a target gear and updating display. The initial angle value is dynamically reset based on the rotation direction, so that the problem of back-and-forth jumping near the gear critical value caused by fixed angle deviation adjustment in the prior art is thoroughly solved, and gear adjustment is more stable and accurate. Meanwhile, real-time gear updating display can enable a user to visually master the equipment state, operation experience is improved, hardware structures do not need to be changed, the method can be achieved only through logic optimization, the method is suitable for various electrical equipment with magnetic knobs, and the application range is wide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent control technology, specifically to a method, device, and electrical equipment for adjusting the gear position of a magnetic knob. Background Technology

[0002] Traditional mechanical knobs typically contact the controller's main circuit board, using either continuous or intermittent contact. Both methods rely on potentiometer-type, encoder-type, or toggle switch-type core components. The main drawback of this type of knob is that the carbon film of the potentiometer, the contact points of the encoder, and the toggle switch are prone to wear due to friction, leading to poor contact or unstable signals, thus reducing their lifespan and causing malfunctions. Therefore, more and more electrical appliances, such as gas stoves, are adopting magnetic knobs. These use a ring magnet to attach the rotating body to the working surface, making them aesthetically pleasing and easy to clean. Their working principle is to determine the operating level by recognizing the rotation angle of the magnetic knob.

[0003] In related technologies, the working positions of the magnetic knob are set according to a fixed angle threshold. Assuming that the angle deviation between each position is 20 degrees, when the angle is greater than 0 degrees and less than or equal to 20 degrees, the position is displayed as position 1, and when it is greater than 20 degrees and less than or equal to 40 degrees, it is displayed as position 2. When the magnetic knob is rotated to around 20 degrees, rotating it counterclockwise will display position 2, and rotating it clockwise will enter position 1. The displayed position will jump back and forth, which will affect the user experience. Summary of the Invention

[0004] This invention provides a method, device, and electrical equipment for adjusting the gear position of a magnetic knob, in order to solve the problem in related technologies where the displayed gear position jumps back and forth near a fixed angle threshold when adjusting the working gear position of a magnetic knob, which affects the user experience.

[0005] In a first aspect, the present invention provides a method for adjusting the gear position of a magnetic knob, applicable to electrical devices equipped with a magnetic knob, the method comprising:

[0006] In response to receiving a current rotation adjustment operation from the magnetic knob, the rotation direction and rotation angle of the current rotation adjustment operation are determined, and the current gear position of the magnetic knob is obtained from the display of the electrical device; Based on the rotation direction and the rotation angle range corresponding to the current gear, the initial angle value of the current gear is reset, and the initial angle value is any angle value within the rotation angle range corresponding to the current gear. The target gear rotation angle is determined based on the reset initial gear angle value, the rotation direction, and the rotation angle; Based on the correspondence between gear positions and gear rotation angle ranges, the target gear position corresponding to the target gear rotation angle is determined, and the current gear position is updated to the target gear position for display.

[0007] This invention determines the rotation direction, rotation angle, and current gear level by responding to the current rotation adjustment operation of the magnetic knob. It then resets the initial angle value of the gear level based on the rotation direction and the corresponding angle range, thereby determining the target gear level and updating the display. By dynamically resetting the initial angle value based on the rotation direction, it completely solves the problem of gear level jumping back and forth near the critical value caused by fixed angle deviation adjustment in existing technologies, making gear level adjustment more stable and precise. Simultaneously, real-time updating of the gear level display allows users to intuitively understand the device status, improving the user experience. Furthermore, it requires no hardware modifications, only logic optimization, and is compatible with various electrical devices with magnetic knobs, making it widely applicable.

[0008] In one optional implementation, resetting the initial angle value of the current gear based on the rotation direction and the gear rotation angle range corresponding to the current gear includes: When the rotation direction is the first direction, the minimum gear rotation angle of the gear rotation angle range corresponding to the current gear is determined as the initial angle value of the gear, and the first direction is the rotation direction that represents the increase of the gear. When the rotation direction is the second direction, the maximum gear rotation angle within the gear rotation angle range corresponding to the current gear is determined as the initial gear angle value, and the second direction is the rotation direction that represents the gear decreasing.

[0009] This invention utilizes an initial angle reset method that uses the minimum angle range corresponding to the current gear position in the first direction (gear increase) and the maximum angle range corresponding to the second direction (gear decrease) to make the determination logic of the initial gear position angle clearer and more accurate. This avoids gear position recognition deviations caused by ambiguity in the initial angle, further enhancing the stability and certainty of gear adjustment. When users increase or decrease gears, the target gear shift can be triggered precisely without jitter or false jumps, significantly improving the smoothness and reliability of operation.

[0010] In one optional implementation, before determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current setting of the magnetic knob displayed by the electrical device, the method further includes: A timer begins after the current rotation adjustment operation is detected to have stopped. If the timing duration reaches a preset time threshold and no further rotation adjustment operation is received from the magnetic knob during the timing process, the timing is cleared, and the steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear position of the magnetic knob displayed by the electrical device are executed.

[0011] This invention effectively filters out unintentional, short-duration rotational movements by timing the process after rotation stops and only executing subsequent judgment steps if no further operation occurs within a preset time. This avoids incorrect gear adjustments caused by accidental touches or disjointed operations. Simultaneously, the preset waiting time ensures that the user completes a full adjustment operation before determining the gear position, preventing frequent gear changes during operation. This allows gear adjustments to better match the user's actual intentions, reduces ineffective adjustments, and improves the consistency and accuracy of the user experience.

[0012] In an optional implementation, the method further includes: If a next rotation adjustment operation of the magnetic knob is received during the timing process, the timing is cleared, and the next rotation adjustment operation is incorporated into the current rotation adjustment operation. The steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear position of the magnetic knob displayed by the electrical device are executed.

[0013] This invention integrates the next rotation operation into the current operation and clears the timer when the next operation is received during the timing process, achieving integrated judgment of continuous small rotations. This avoids breaking the user's continuous adjustment action into multiple independent operations, preventing frequent gear shifts and ensuring that gear adjustment is highly consistent with the user's continuous adjustment intention. At the same time, it reduces repetitive judgment steps, improving adjustment response efficiency, and is particularly suitable for scenarios requiring fine-tuning of gears, further optimizing the stability and smoothness of gear adjustment.

[0014] In an optional implementation, the method further includes: The electrical equipment is controlled to operate based on the target gear level.

[0015] This invention controls the operation of electrical equipment based on target gear levels, achieving precise synchronization between the gear level display and the actual operating status of the equipment. This ensures the equipment operates strictly according to the user-set target gear level, avoiding inconsistencies between the gear level display and actual operation, and reducing the risks associated with equipment operation not meeting user expectations. It also guarantees the stability and reliability of equipment operation, enhancing user confidence in operating the equipment.

[0016] In one optional embodiment, the electrical appliance is a gas stove, which includes an igniter, a solenoid valve, and a flame detector; the method further includes: When the gas stove is in standby mode, in response to receiving the pressing operation of the magnetic knob, the gas stove is controlled to enter the ignition state, and the igniter begins to discharge. When the gas stove enters the ignition state, in response to the magnetic knob rotating more than a preset angle in any direction, the solenoid valve is opened. If the flame detection needle detects a flame, the igniter shuts off the discharge and controls the gas stove to enter the working state, setting the current gear to the maximum gear and displaying it.

[0017] This invention addresses the needs of gas stoves. In standby mode, pressing the magnetic knob activates the igniter, which discharges. Rotating it beyond a preset angle opens the solenoid valve. Once the flame detector pin detects a flame, the discharge stops, and the system enters its working state, displaying the maximum setting. This simplifies the user experience, enabling rapid ignition. Simultaneously, the valve opening timing is controlled by a rotation angle threshold, and flame detection by the pin ensures ignition safety, preventing gas leaks. The initial display of the maximum setting provides a clear reference for subsequent adjustments, balancing ease of operation and safety to meet the specific requirements of gas stoves.

[0018] In an optional implementation, the method further includes: If the flame detection needle does not detect a flame when the igniter completes its discharge, the gas stove is controlled to enter standby mode.

[0019] This invention automatically returns the gas stove to standby mode when the igniter completes discharge but the flame detection needle fails to detect a flame. This avoids the potential gas leak hazard caused by the solenoid valve remaining open after ignition failure, reducing safety risks at the source and protecting the personal and property safety of users. Furthermore, the automatic return to standby mode requires no additional user intervention, simplifying the troubleshooting process, reducing user workload, and ensuring the device can quickly return to a safe state in ignition failure scenarios, thus improving product safety and reliability.

[0020] In an optional implementation, the method further includes: When the gas stove is in working condition, in response to receiving a pressing operation of the magnetic knob, the solenoid valve is controlled to close. Alternatively, when the current gear is at the lowest gear, if the rotation direction of the current rotation adjustment operation is a rotation direction that represents a decrease in gear, and the rotation angle is greater than a preset angle threshold, the solenoid valve is controlled to close.

[0021] This invention allows users to close the solenoid valve by pressing it when the gas stove is in operation and has a flame. Alternatively, when the gas setting is at its lowest setting, the solenoid valve can be closed by rotating the magnetic knob further in the direction of decreasing the setting. This provides users with multiple ways to turn off the gas stove, increasing the flexibility of gas stove control and enhancing the user experience.

[0022] Secondly, the present invention provides a magnetic knob gear adjustment device, applicable to electrical appliances equipped with a magnetic knob, the device comprising: The first processing module is configured to respond to receiving the current rotation adjustment operation of the magnetic knob, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current gear position of the magnetic knob displayed by the electrical device; The second processing module is used to reset the initial angle value of the current gear based on the rotation direction and the gear rotation angle range corresponding to the current gear. The initial angle value is any angle value within the gear rotation angle range corresponding to the current gear. The third processing module is used to determine the target gear rotation angle based on the reset initial gear angle value, the rotation direction, and the rotation angle; The fourth processing module is used to determine the target gear corresponding to the rotation angle of the target gear based on the correspondence between the gear and the rotation angle range of the gear, and to update the current gear to the target gear for display.

[0023] Thirdly, the present invention provides an electrical device, the electrical device comprising: a magnetic knob, and the electrical device further comprising: A controller includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the method provided in the first aspect or any corresponding embodiment described above.

[0024] In one alternative implementation, the electrical appliance is a gas stove.

[0025] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention; Figure 2This is a schematic flowchart of the first method for adjusting the gear position of a magnetic knob according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the second process of the magnetic knob gear adjustment method according to an embodiment of the present invention; Figure 4 This is a structural block diagram of a magnetic knob gear adjustment device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the hardware structure of the controller of the electrical device according to an embodiment of the present invention. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0030] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0031] Figure 1 This is a schematic diagram illustrating a specific application scenario of a magnetic knob, taking a gas stove with a magnetic knob as an example. Figure 1As shown, the gas stove includes: a magnetic knob 101, a panel 102, a fixing magnet 103, a 3D Hall sensor 104, and a controller mainboard 105. The magnetic knob 101 is positioned above the panel 102 and is attracted to the fixing magnet 103 below the panel 102, thus fixing it to the panel 102. The fixing magnet 103, the 3D Hall sensor 104, and the controller mainboard 105 are all fixedly installed inside the controller box. The fixing magnet 103 is at the top of the controller box, and below it is the 3D Hall sensor 104, used to detect changes in the rotation angle of the magnetic knob 101 and pressing actions. Below the 3D Hall sensor 104 is the controller mainboard 105. Thus, by using the 3D Hall sensor 104 to detect changes in the rotation angle of the magnetic knob 101, the controller mainboard 105 (hereinafter referred to as the controller) adjusts and displays different speed settings according to the magnitude of the angle change.

[0032] In related technologies, the various working positions of a magnetic knob are set according to a fixed angle threshold. The displayed position jumps back and forth, causing the knob to vibrate during adjustment, which affects the user experience. This invention, by resetting the angle value according to the rotation direction during adjustment, prevents the position from vibrating back and forth, achieving a stable position display.

[0033] According to an embodiment of the present invention, a method for adjusting the gear position of a magnetic knob is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0034] This embodiment provides a method for adjusting the gear position of a magnetic knob, which can be used in the controller of electrical appliances such as gas stoves equipped with magnetic knobs, such as microcontrollers and MCUs. Figure 2 This is a flowchart of a magnetic knob gear adjustment method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: In response to receiving the current rotation adjustment operation of the magnetic knob, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current gear position of the magnetic knob displayed by the electrical device.

[0035] Specifically, taking a gas stove as an example, when a user rotates the magnetic knob on the gas stove, the built-in 3D Hall sensor detects the rotation in real time, identifying the direction (clockwise or counterclockwise) and angle (i.e., the change in angle of the knob relative to its initial position). Simultaneously, the controller interacts with the display module to obtain the current magnetic knob setting displayed on the gas stove. This current setting is the operating setting previously determined and displayed based on historical operations, providing a reference for subsequent setting adjustments.

[0036] For example, suppose a user is using a gas stove equipped with the magnetic knob, and the current gas stove display shows the setting as 3 (corresponding to medium heat cooking). When the user rotates the magnetic knob counterclockwise, the 3D Hall sensor detects that the rotation direction is counterclockwise and the rotation angle is 15 degrees. The controller motherboard then synchronously obtains the information that the current setting is 3.

[0037] Step S202: Based on the rotation direction and the rotation angle range corresponding to the current gear, reset the initial angle value of the current gear.

[0038] The initial angle value of the gear position is any angle value within the range of rotation angles corresponding to the current gear position. For example, if the current gear position is 1 and the rotation angle range of the gear position corresponding to 2 is 20 degrees to 40 degrees, then the initial angle value of the gear position can be 30 degrees, 28 degrees, etc., and the present invention is not limited thereto.

[0039] Specifically, the controller pre-stores the rotation angle range corresponding to each gear position. This range is set according to the number of gears in the electrical equipment (e.g., 8 gears in this embodiment) and the preset angle deviation for each gear position (20-50 degrees, 20 degrees in this embodiment). After obtaining the rotation direction and the current gear position, the controller resets the initial angle value of the gear position according to the preset rules based on the angle range corresponding to the current gear position.

[0040] Step S203: Determine the target gear rotation angle based on the reset initial gear angle value, rotation direction, and rotation angle.

[0041] Specifically, based on the reset initial angle value of the gear position, combined with the rotation angle detected in step S201, the target gear rotation angle is determined according to the calculation logic corresponding to the rotation direction. For example, if it is a clockwise rotation, the target gear rotation angle = the reset initial angle value + the rotation angle; if it is a counterclockwise rotation, the target gear rotation angle = the reset initial angle value - the rotation angle. In practical applications, since the magnetic knob has a fixed rotation range, such as 0-180°, the rotation angle will not exceed the reset initial angle value. When the target gear rotation angle is 0, it indicates that the magnetic knob is in the starting position and cannot continue to rotate counterclockwise. Similarly, when the target gear rotation angle has reached the end position corresponding to the maximum rotation range, it cannot continue to rotate clockwise. This is just an example; the actual rotation direction can also be set in the opposite direction, with a similar principle, which will not be elaborated here.

[0042] Step S204: Based on the correspondence between gear positions and gear rotation angle ranges, determine the target gear position corresponding to the target gear rotation angle, and update the current gear position to the target gear position for display.

[0043] Specifically, the controller retrieves the target gear rotation angle calculated in step S203 by calling a pre-stored correspondence table between gear positions and their rotation angle ranges. The gear corresponding to this range is the target gear. Subsequently, the controller sends a gear update command to the display module, replacing the current gear with the target gear and displaying it, thus completing one gear adjustment process.

[0044] This embodiment determines the rotation direction, rotation angle, and current gear level by responding to the current rotation adjustment operation of the magnetic knob. It then resets the initial angle value of the gear level based on the angle range corresponding to the rotation direction and the current gear level, thereby determining the target gear level and updating the display. By dynamically resetting the initial angle value based on the rotation direction, the problem of gear level jumping back and forth near the critical value caused by fixed angle deviation adjustment in existing technologies is completely solved, making gear level adjustment more stable and precise. At the same time, real-time updating of the gear level display allows users to intuitively understand the device status, improving the operating experience. This can be achieved without modifying the hardware structure, only through logic optimization, making it compatible with various electrical devices with magnetic knobs and widely applicable.

[0045] This embodiment provides a method for adjusting the gear position of a magnetic knob, which can be used in the controller of electrical appliances such as gas stoves equipped with magnetic knobs, such as microcontrollers and MCUs. Figure 3 This is a flowchart of a magnetic knob gear adjustment method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: In response to receiving the current rotation adjustment operation of the magnetic knob, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current setting of the magnetic knob displayed on the electrical device. See details below. Figure 2 The relevant descriptions of step S201 shown will not be repeated here.

[0046] Specifically, before determining the rotation direction and angle of the current rotation adjustment operation and obtaining the current setting of the magnetic knob on the electrical device display, the above method also includes: Step a1: After detecting that the current rotation adjustment operation has stopped, start timing.

[0047] Specifically, the 3D Hall sensor monitors the movement of the magnetic knob in real time. When it detects that the user has completely stopped the current rotation adjustment operation of the magnetic knob (i.e., the knob no longer changes angle), the sensor sends an operation stop signal to the controller. After receiving the signal, the controller immediately starts the built-in timing module to start timing. The initial timing value is 0, and the timing unit is accurate to the millisecond level to ensure a rapid response to subsequent operations.

[0048] Step a2: When the timing reaches the preset timing threshold and no further rotation adjustment operation of the magnetic knob is received during the timing process, clear the timing, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current gear position of the magnetic knob displayed on the electrical device.

[0049] Specifically, the controller pre-stores a preset duration threshold, which is set based on the user's daily operating habits and the device's adjustment response requirements, preferably 0.5 seconds (which can be flexibly adjusted to 0.3-1 seconds depending on the usage scenario of different electrical products). During the timing process, the 3D Hall sensor continuously monitors for new rotation adjustment operations. If the timing duration reaches the preset 0.5 seconds and no further rotation adjustment operation of the magnetic knob is detected during this period, the controller will first clear the current timing data, restoring the timing module to its initial state. Then, it will execute the rotation direction (clockwise or counterclockwise) and specific rotation angle of the current rotation adjustment operation determined by the 3D Hall sensor, and obtain the current magnetic knob position displayed by the electrical device through interaction with the display module, providing basic data for subsequent position reset and update.

[0050] This embodiment uses a timer after the rotation operation stops, and only executes subsequent judgment steps if there is no subsequent operation within a preset time. This effectively filters out unintentional small, brief rotational movements by the user, avoiding incorrect gear adjustments caused by accidental touches or disjointed operations. Simultaneously, the preset waiting time ensures that the user completes a full adjustment operation before determining the gear position, preventing frequent gear changes during operation. This makes gear adjustments more aligned with the user's actual intentions, reduces ineffective adjustments, and improves the consistency and accuracy of the user experience.

[0051] Step a3: If the next rotation adjustment operation of the magnetic knob is received during the timing process, clear the timing, merge the next rotation adjustment operation into the current rotation adjustment operation, and execute the steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear of the magnetic knob displayed by the electrical device.

[0052] Specifically, if, during the operation of the timing module (i.e., before reaching the preset time threshold), the 3D Hall sensor detects the user's next rotation adjustment operation on the magnetic knob (including continued rotation in the same direction or rotation in the opposite direction), the controller will immediately clear the currently running timing data, terminate the current timing process, and merge this next rotation adjustment operation with the previous current rotation adjustment operation as a continuous rotation adjustment operation. Subsequently, the 3D Hall sensor collects the total rotation direction (or the final rotation direction if there is reverse rotation) and the total rotation angle (the absolute angle value after the forward and reverse rotation angles cancel each other out) of the merged continuous rotation operation, and simultaneously obtains the magnetic knob gear position currently displayed on the electrical device, providing integrated and accurate parameters for subsequent gear adjustment processes.

[0053] This embodiment, upon receiving the next rotation operation during the timing process, incorporates it into the current operation and clears the timing, achieving integrated judgment of continuous small rotations. This avoids splitting the user's continuous adjustment action into multiple independent operations, preventing frequent gear shifts and ensuring a high degree of consistency between gear adjustment and the user's continuous adjustment intention. Simultaneously, reducing repetitive judgment steps improves adjustment response efficiency, making it particularly suitable for scenarios requiring fine-tuning of gears, further optimizing the stability and smoothness of gear adjustment.

[0054] Step S302: Based on the rotation direction and the rotation angle range corresponding to the current gear, reset the initial angle value of the current gear.

[0055] The initial angle value of the gear is any angle value within the range of the rotation angle corresponding to the current gear.

[0056] Specifically, step S302 includes: Step S3021: When the rotation direction is the first direction, the minimum gear rotation angle of the current gear rotation angle range is determined as the initial gear angle value.

[0057] The first direction refers to the rotation direction representing the increase in gear position. Specifically, the controller predefines the correspondence between rotation direction and gear position change: the rotation direction representing the increase in gear position is set as the first direction (clockwise in this embodiment, but can be flexibly adjusted according to usage habits), and the rotation angle range corresponding to each gear position is stored. This range is based on the total number of gear positions in the device and a preset angle deviation for each gear position (20-50 degrees). When the 3D Hall sensor detects that the rotation direction of the magnetic knob is the first direction, the controller motherboard first obtains the current gear position through the display module, then retrieves the corresponding gear rotation angle range, and directly determines the minimum gear rotation angle in this range as the initial angle value of the gear position to be adjusted, providing a reference for subsequent calculation of the target gear rotation angle.

[0058] Step S3022: When the rotation direction is the second direction, the maximum rotation angle of the gear corresponding to the current gear is determined as the initial gear angle value.

[0059] The second direction is the rotational direction representing a decrease in gear. Specifically, the controller sets the rotational direction representing a decrease in gear as the second direction (counterclockwise in this embodiment, opposite to the first direction). When the 3D Hall sensor detects that the rotational direction of the magnetic knob is the second direction, the controller motherboard first obtains the current gear and the corresponding gear rotation angle range, and then determines the maximum gear rotation angle in that range as the initial angle value for this adjustment. This ensures that when calculating the target gear based on this initial value, a preset angle deviation for each gear must be met to achieve gear shifting.

[0060] This embodiment utilizes an initial angle reset method that uses the minimum angle range corresponding to the current gear position in the first direction (gear increase) and the maximum angle range corresponding to the second direction (gear decrease) to make the determination logic of the initial gear angle clearer and more accurate. This avoids gear identification deviations caused by ambiguity in the initial angle, further enhancing the stability and certainty of gear adjustment. When users increase or decrease gears, the target gear shift can be triggered accurately without jitter or false jumps, significantly improving the smoothness and reliability of operation.

[0061] Step S303: Based on the reset initial gear angle value, rotation direction, and rotation angle, determine the target gear rotation angle. See details below. Figure 2 The relevant description of step S203 shown will not be repeated here.

[0062] Step S304: Based on the correspondence between gear positions and their rotation angle ranges, determine the target gear corresponding to the target gear rotation angle, and update the current gear to the target gear for display. See details below. Figure 2 The relevant description of step S204 shown will not be repeated here.

[0063] Step S305: Control the operation of electrical equipment based on the target gear.

[0064] Specifically, after determining the target setting of the magnetic knob through the aforementioned steps, the controller converts the target setting signal into an operating control command for the electrical equipment. Based on a preset mapping relationship between the setting and operating parameters, it precisely controls the core working components of the electrical equipment, ensuring the equipment operates according to the operating state corresponding to the target setting. This allows users to intuitively adjust the equipment's operating status. For example, if applied to a water heater, with a target setting of 5 (out of 8), the controller maps setting 5 to a 45°C outlet water temperature and a medium water flow rate, sending a temperature control command to the heating module and a flow control command to the water flow regulating valve, causing the water heater to output 45°C hot water.

[0065] This embodiment controls the operation of electrical equipment based on a target gear level, achieving precise synchronization between the gear level display and the actual operating status of the equipment. This ensures the equipment operates strictly according to the user-set target gear level, avoiding inconsistencies between the gear level display and actual operation, and reducing the risks associated with equipment operation not meeting user expectations. It guarantees the stability and reliability of equipment operation, enhancing user confidence in operating the equipment.

[0066] In some optional embodiments, the aforementioned electrical appliance is a gas stove, which includes an igniter, a solenoid valve, and a flame detector. The magnetic knob adjustment method further includes: Step b1: When the gas stove is in standby mode, in response to the press operation of the magnetic knob, the gas stove is controlled to enter the ignition state, and the igniter begins to discharge.

[0067] Specifically, the gas stove's controller monitors the device's operating status in real time. When the device is in standby mode (no ignition, no flame, solenoid valve closed), the 3D Hall sensor continuously detects the pressing action of the magnetic knob. Since the knob is attached to the panel by a fixed magnet below the panel, the change in the magnetic field generated when pressed is accurately captured by the 3D Hall sensor, which transmits the pressing signal to the controller. Upon receiving the pressing signal, the controller immediately determines that the user needs ignition, controls the gas stove to switch to ignition mode, and sends a discharge command to the igniter. The igniter starts and begins discharging (the preset discharge time is 5 seconds). During this time, the solenoid valve remains closed to prevent gas leakage before ignition.

[0068] Step b2: When the gas stove enters the ignition state, in response to the magnetic knob rotating in any direction beyond the preset angle, the solenoid valve is opened. If the flame detection needle detects a flame, the igniter shuts off the discharge and controls the gas stove to enter the working state, setting the current gear to the maximum gear and displaying it.

[0069] Specifically, after the gas stove enters the ignition state, the 3D Hall sensor continuously monitors the rotation of the magnetic knob, recording the rotation direction (clockwise or counterclockwise) and rotation angle. The controller presets a rotation angle threshold (preferably 20 degrees, adjustable according to equipment safety requirements). When the angle of rotation of the knob in any direction exceeds this preset threshold, it determines that the user has completed the pre-ignition gear adjustment preparation and immediately sends an opening command to the solenoid valve. The solenoid valve opens, and gas is delivered to the burner through the gas passage. At this time, the flame detection needle simultaneously starts flame detection. If the flame detection needle detects a flame at the burner (i.e., the gas has been successfully ignited), it immediately sends a flame signal back to the controller. Upon receiving the signal, the controller instructs the igniter to stop discharging and simultaneously controls the gas stove to switch to the working state, setting the current gear to the maximum gear (e.g., gear 8) according to preset rules. This gear is displayed on the display module for the user to adjust as needed.

[0070] This embodiment is designed for gas stoves. In standby mode, pressing the magnetic knob activates the igniter. Rotating it beyond a preset angle opens the solenoid valve. Once the flame detection needle detects a flame, the discharge stops, and the system enters its working state, displaying the maximum setting. This simplifies the user's operation, enabling rapid ignition. Simultaneously, the valve opening timing is controlled by a rotation angle threshold, and flame detection by the needle ensures ignition safety, preventing gas leaks. The initial display of the maximum setting provides a clear reference for subsequent adjustments, balancing ease of operation and safety, and adapting to the needs of gas stove usage.

[0071] Step b3: If the flame detection needle does not detect a flame when the igniter completes its discharge, control the gas stove to enter standby mode.

[0072] Specifically, during the igniter's discharge command process, the flame detection needle continuously monitors the flame signal, while the controller simultaneously times the discharge duration. If the flame detection needle still fails to detect a flame after the igniter completes the preset 5-second discharge (possibly due to unignited gas, ignition failure, etc.), the controller determines that the ignition has failed and immediately sends a shut-off command to the solenoid valve to ensure that the gas output stops. Subsequently, it controls the gas stove to switch from the ignition state back to the standby state, awaiting the user's next operation command, thus preventing the continuous leakage of unignited gas from causing safety hazards.

[0073] In this embodiment, when the igniter completes discharge but the flame detection needle fails to detect a flame, the gas stove automatically returns to standby mode. This avoids the potential gas leak hazard caused by the solenoid valve remaining open after ignition failure, reducing safety risks at the source and protecting the personal and property safety of users. Furthermore, the automatic return to standby mode requires no additional user intervention, simplifying the troubleshooting process, reducing user workload, and ensuring the device can quickly return to a safe state in ignition failure scenarios, thus improving product safety and reliability.

[0074] Furthermore, in some optional embodiments, the above-mentioned magnetic knob gear adjustment method further includes: Step c1: When the gas stove is in working condition, in response to receiving a press operation of the magnetic knob, control the solenoid valve to close; or, when the current gear is at the lowest gear, if the rotation direction of the current rotation adjustment operation is the rotation direction representing a decrease in gear, and the rotation angle is greater than a preset angle threshold, control the solenoid valve to close.

[0075] The preset angle threshold can be the angle deviation for each setting, such as 20 degrees, or it can be a separately set angle value, such as 90 degrees, for flameout control. Simply rotate the magnetic knob 20 or 90 degrees in the direction of decreasing setting from the lowest setting to turn off the gas stove. Furthermore, when the gas stove has a flame, it is confirmed to be in working condition. At this time, the user can turn off the gas stove by pressing the magnetic knob, specifically by closing the solenoid valve.

[0076] In this embodiment, when the gas stove is in operation and there is a flame, the solenoid valve can be closed by pressing it. Alternatively, when the gas setting is at its lowest setting, the solenoid valve can be closed by rotating the magnetic knob further in the direction of decreasing the setting. This allows users to control the gas stove's flameout by either rotating the magnetic knob or pressing it, providing diverse methods for controlling the gas stove's flameout, increasing the flexibility of flameout control, and enhancing the user experience.

[0077] The following will provide a detailed description of the specific working process of the magnetic knob gear adjustment method provided in this embodiment of the invention, using specific application examples.

[0078] Taking a gas stove with a magnetic knob as an example, its main working process is as follows: When the gas stove detects a knob press in standby mode, it enters ignition mode, and the igniter begins discharging for a default 5 seconds, but the solenoid valve remains closed. In ignition mode, if the knob is rotated clockwise or counterclockwise by more than 20 degrees, the solenoid valve opens. If the flame detector pin detects a flame, the discharge stops, and the stove enters working mode. If the discharge is complete but no flame is detected, it returns to standby mode. In working mode, the default setting displays the maximum setting. Rotating the magnetic knob counterclockwise gradually decreases the setting, with an angle deviation of 20-50 degrees between each setting. Assuming a 20-degree angle deviation between each setting, and a total of 8 settings, the angle thresholds between each setting are [20, 40, 60, 80, 100, 120, 140, 160]. For example, if the angle is greater than 0 degrees and less than or equal to 20 degrees, the setting is displayed as setting 1; if it is greater than 20 degrees and less than or equal to 40 degrees, it is displayed as setting 2, and so on.

[0079] In related technologies, when the knob is rotated to near the gear shift value in the gear adjustment interface, such as around 80 degrees, rotating it clockwise displays gear 4, and rotating it counterclockwise slightly shifts it to gear 3. If the knob is rotated left or right around this point, the gear display jumps around, and the gear change is displayed without rotating more than 20 degrees, resulting in a poor user experience. Therefore, this embodiment, when the knob's rotation stops, resets the initial angle value after a period of time (e.g., 0.5 seconds). For example, when in gear 3, if the knob is detected rotating clockwise, the angle value is reset to 40 degrees; if it is detected rotating counterclockwise, the angle value is reset to 60 degrees. Therefore, after the knob has been stationary for a period of time, rotating it again will only shift gears if the rotation angle is greater than the difference between each gear, resulting in a better user experience and avoiding the problem of gears jumping around near the critical value.

[0080] This embodiment resets the angle value based on the rotation direction to prevent back-and-forth shaking, further solving the problem of gear skipping and ensuring stable gear adjustment for different users. It also detects a pressing action to discharge the gas and then detects the knob rotation to open the valve, making operation convenient for users while ensuring gas safety. When a flame is present, if a pressing action is detected on the knob, or if the knob rotation angle exceeds a large value (e.g., 90 degrees, compared to the normal 20 degrees) at the lowest flame setting (1), the solenoid valve can be closed to shut off the flame.

[0081] This embodiment also provides a magnetic knob gear adjustment device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0082] This embodiment provides a magnetic knob gear adjustment device, applicable to electrical appliances equipped with magnetic knobs, such as... Figure 4 As shown, the magnetic knob gear adjustment device includes: The first processing module 401 is used to respond to the current rotation adjustment operation of the magnetic knob, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current gear position of the magnetic knob displayed by the electrical device. The second processing module 402 is used to reset the initial angle value of the current gear based on the rotation direction and the gear rotation angle range corresponding to the current gear. The initial angle value of the gear is any angle value within the gear rotation angle range corresponding to the current gear. The third processing module 403 is used to determine the target gear rotation angle based on the reset initial gear angle value, rotation direction and rotation angle; The fourth processing module 404 is used to determine the target gear corresponding to the rotation angle of the target gear based on the correspondence between the gear and the rotation angle range of the gear, and to update the current gear to the target gear for display.

[0083] In some optional implementations, the second processing module 402 includes: The first processing unit is used to determine the minimum gear rotation angle of the gear rotation angle range corresponding to the current gear as the initial gear angle value when the rotation direction is the first direction. The first direction is the rotation direction that represents the increase of the gear. The second processing unit is used to determine the maximum gear rotation angle within the gear rotation angle range corresponding to the current gear as the initial gear angle value when the rotation direction is the second direction. The second direction is the rotation direction that represents the gear decreasing.

[0084] In some optional embodiments, the magnetic knob gear adjustment device further includes: The fifth processing module is used to start timing after detecting that the current rotation adjustment operation has stopped; The sixth processing module is used to clear the timer when the timer reaches a preset time threshold and no further rotation adjustment operation is received from the magnetic knob during the timer, and to perform the steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear position of the magnetic knob displayed on the electrical device.

[0085] In some optional embodiments, the magnetic knob gear adjustment device further includes: The seventh processing module is used to clear the timing if the next rotation adjustment operation of the magnetic knob is received during the timing process, and to merge the next rotation adjustment operation into the current rotation adjustment operation, and to perform the steps of determining the rotation direction and rotation angle of the current rotation adjustment operation, and obtaining the current gear position of the magnetic knob displayed by the electrical device.

[0086] In some optional embodiments, the magnetic knob gear adjustment device further includes: The eighth processing module is used to control the operation of electrical equipment based on the target gear level.

[0087] In some alternative embodiments, the electrical appliance is a gas stove, which includes an igniter, a solenoid valve, and a flame detector. The aforementioned magnetic knob gear adjustment device further includes: The ninth processing module is used to control the gas stove to enter the ignition state and start the igniter to discharge when the gas stove is in standby mode in response to the pressing operation of the magnetic knob. The tenth processing module is used to open the solenoid valve when the gas stove enters the ignition state, in response to the magnetic knob rotating more than a preset angle in any direction. If the flame detection needle detects a flame, the igniter shuts off the discharge and controls the gas stove to enter the working state, setting the current gear to the maximum gear and displaying it.

[0088] In some optional embodiments, the magnetic knob gear adjustment device further includes: The eleventh processing module is used to control the gas stove to enter standby mode if the flame detection needle does not detect a flame when the igniter completes its discharge.

[0089] The magnetic knob gear adjustment device provided in this embodiment of the invention can execute the magnetic knob gear adjustment method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0090] This invention provides an electrical appliance comprising a magnetic knob and a controller, the controller being used to execute the aforementioned magnetic knob gear adjustment method embodiment. Exemplarily, the electrical appliance is a gas stove; in practical applications, it can also be other products equipped with magnetic knobs, such as ovens, water heaters, etc.

[0091] The following is a detailed reference. Figure 5 The diagram illustrates a suitable structural design for implementing the aforementioned controller. The controller may include a processor (e.g., a central processing unit, graphics processing unit, etc.) 501, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 502 or a program loaded from memory 508 into random access memory (RAM) 503. RAM 503 also stores various programs and data required for controller operation. The processor 501, ROM 502, and RAM 503 are interconnected via bus 504. An input / output (I / O) interface 505 is also connected to bus 504.

[0092] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows the controller to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 A controller with various devices is shown, but it should be understood that it is not required to implement or have all of the devices shown, and may alternatively implement or have more or fewer devices.

[0093] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a memory 508, or installed from a ROM 502. When the computer program is executed by the processor 501, it performs the functions defined in the magnetic knob gear adjustment method of the embodiments of the present invention.

[0094] Figure 5 The controller shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0095] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the magnetic knob gear adjustment method shown in the above embodiments is implemented.

[0096] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0097] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for adjusting the gear position of a magnetic knob, applied to electrical equipment equipped with a magnetic knob, characterized in that, The method includes: In response to receiving a current rotation adjustment operation from the magnetic knob, the rotation direction and rotation angle of the current rotation adjustment operation are determined, and the current gear position of the magnetic knob is obtained from the display of the electrical device; Based on the rotation direction and the rotation angle range corresponding to the current gear, the initial angle value of the current gear is reset, and the initial angle value is any angle value within the rotation angle range corresponding to the current gear. The target gear rotation angle is determined based on the reset initial gear angle value, the rotation direction, and the rotation angle; Based on the correspondence between gear positions and gear rotation angle ranges, the target gear position corresponding to the target gear rotation angle is determined, and the current gear position is updated to the target gear position for display.

2. The method according to claim 1, characterized in that, The step of resetting the initial angle value of the current gear based on the rotation direction and the gear rotation angle range corresponding to the current gear includes: When the rotation direction is the first direction, the minimum gear rotation angle of the gear rotation angle range corresponding to the current gear is determined as the initial angle value of the gear, and the first direction is the rotation direction that represents the increase of the gear. When the rotation direction is the second direction, the maximum gear rotation angle within the gear rotation angle range corresponding to the current gear is determined as the initial gear angle value, and the second direction is the rotation direction that represents the gear decreasing.

3. The method according to claim 1, characterized in that, Before determining the rotation direction and angle of the current rotation adjustment operation and obtaining the current setting of the magnetic knob displayed on the electrical device, the method further includes: A timer begins after the current rotation adjustment operation is detected to have stopped. If the timing duration reaches a preset time threshold and no further rotation adjustment operation is received from the magnetic knob during the timing process, the timing is cleared, and the steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear position of the magnetic knob displayed by the electrical device are executed.

4. The method according to claim 3, characterized in that, The method further includes: If a next rotation adjustment operation of the magnetic knob is received during the timing process, the timing is cleared, and the next rotation adjustment operation is incorporated into the current rotation adjustment operation. The steps of determining the rotation direction and rotation angle of the current rotation adjustment operation and obtaining the current gear position of the magnetic knob displayed by the electrical device are executed.

5. The method according to claim 1, characterized in that, The method further includes: The electrical equipment is controlled to operate based on the target gear level.

6. The method according to any one of claims 1-5, characterized in that, The electrical appliance is a gas stove, which includes an igniter, a solenoid valve, and a flame detection needle. The method further includes: When the gas stove is in standby mode, in response to receiving the pressing operation of the magnetic knob, the gas stove is controlled to enter the ignition state, and the igniter begins to discharge. When the gas stove enters the ignition state, in response to the magnetic knob rotating more than a preset angle in any direction, the solenoid valve is opened. If the flame detection needle detects a flame, the igniter shuts off the discharge and controls the gas stove to enter the working state, setting the current gear to the maximum gear and displaying it.

7. The method according to claim 6, characterized in that, The method further includes: If the flame detection needle does not detect a flame when the igniter completes its discharge, the gas stove is controlled to enter standby mode.

8. The method according to claim 6, characterized in that, The method further includes: When the gas stove is in working condition, in response to receiving a pressing operation of the magnetic knob, the solenoid valve is controlled to close. Alternatively, when the current gear is at the lowest gear, if the rotation direction of the current rotation adjustment operation is a rotation direction that represents a decrease in gear, and the rotation angle is greater than a preset angle threshold, the solenoid valve is controlled to close.

9. A magnetic knob gear adjustment device, applied to electrical equipment equipped with a magnetic knob, characterized in that, The device includes: The first processing module is configured to respond to receiving the current rotation adjustment operation of the magnetic knob, determine the rotation direction and rotation angle of the current rotation adjustment operation, and obtain the current gear position of the magnetic knob displayed by the electrical device; The second processing module is used to reset the initial angle value of the current gear based on the rotation direction and the gear rotation angle range corresponding to the current gear. The initial angle value is any angle value within the gear rotation angle range corresponding to the current gear. The third processing module is used to determine the target gear rotation angle based on the reset initial gear angle value, the rotation direction, and the rotation angle; The fourth processing module is used to determine the target gear corresponding to the rotation angle of the target gear based on the correspondence between the gear and the rotation angle range of the gear, and to update the current gear to the target gear for display.

10. An electrical appliance, the electrical appliance comprising: A magnetic knob, characterized in that the electrical device further includes: A controller comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 8.

11. The electrical equipment according to claim 10, characterized in that, The electrical appliance is a gas stove.