Knob, calibration method and device thereof, readable storage medium and electrical appliance
Patent Information
- Application Number
- CN202211016289.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-08-24
AI Technical Summary
[0003]其中,旋钮实际上是一个电位器,由于电位器本身阻值存在偏差或安装电位器的时候存在位置偏差,会使得电位器的同一位置在安装到不同机器上时,会出现阻值不一样的情况下,在偏差比较大的情况下,会出现档位的误判
[0040]在该技术方案中,旋钮上对应微动开关的状态为打开状态的档位为关闭档位,通常情况下,在旋钮按照单一旋转方向转动时,会依次经历关闭档位和开启档位,并且在电位器转动的过程中,关闭档位所对应的电压值要比开启档位所对应的电压值要低,基于此,可以根据第二检测值来标定关闭档位的电压值,在此过程中,无需手动对关闭档位进行标定,简化了标定的复杂度,以便降低了标定所需的人工成本和时间成本。
Smart Images

Figure CN117665374B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of control technology, and more specifically, to a knob and its calibration method, apparatus, readable storage medium, and electrical appliance. Background Technology
[0002] In related technical solutions, small household appliances such as blenders and food processors often use knobs to set the operating parameters of the appliances.
[0003] The knob is actually a potentiometer. Due to the deviation in the resistance value of the potentiometer itself or the positional deviation when installing the potentiometer, the same position of the potentiometer will have different resistance values when installed on different machines. In the case of a large deviation, misjudgment of the setting will occur. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0005] Therefore, a first aspect of the present invention is to provide a method for calibrating a knob.
[0006] A second aspect of the invention is that it provides one of the calibration devices for a knob.
[0007] A third aspect of the present invention is that a second calibration device for a knob is provided.
[0008] A fourth aspect of the present invention is that a readable storage medium is provided.
[0009] A fifth aspect of the invention is that a knob is provided.
[0010] A sixth aspect of the present invention is that an electrical appliance is provided.
[0011] In view of the above, according to a first aspect of the present invention, the present invention provides a calibration method for a knob, the knob including a potentiometer and a micro switch, wherein the potentiometer can drive the micro switch to operate when rotated, the calibration method including: periodically acquiring the detection value of the potentiometer and the state of the micro switch; recording a first detection value of the potentiometer based on the micro switch switching from an open state to a closed state; recording a second detection value of the potentiometer based on the fact that the fluctuation value of the potentiometer is within a preset fluctuation range for a duration greater than or equal to a preset duration; and calibrating the knob based on the second detection value based on the fact that the difference between the second detection value and the first detection value is less than a preset threshold.
[0012] The technical solution of this application proposes a calibration method for a knob. By running this calibration method, the knob can be calibrated so that the calibrated knob position matches the switching state of the micro switch. This overcomes the influence of potentiometer deviation or errors caused during potentiometer installation on the knob position detection, and improves the accuracy of knob position detection.
[0013] In addition, the knob calibration method proposed in this application has the following additional technical features.
[0014] In the above technical solution, the knob has an open position. The knob is calibrated according to the second detection value, specifically including: taking the voltage value corresponding to the second detection value as the voltage value of the open position.
[0015] In this technical solution, when the micro switch switches from the open state to the closed state, it will conduct the circuit where the micro switch is located. Normally, when the micro switch is in the closed state, it will power on the appliance where the knob is located. The position in the knob that matches the power-on is the open position. The second detection value is used instead of the first detection value to determine when the micro switch switches from the open state to the closed state. Therefore, the second detection value is used as the determination value for identifying the open position.
[0016] Since the resistance value is usually measured by measuring the voltage value on the potentiometer during use, the voltage value corresponding to the resistance value, that is, the voltage value corresponding to the second detection value, is used as the voltage value for the opening position.
[0017] In any of the above technical solutions, the knob also has a shut-off position. The calibration of the knob based on the second detection value further includes: determining the difference between the second detection value and the first preset value; and using the voltage value corresponding to the difference as the voltage value of the shut-off position.
[0018] In this technical solution, the position on the knob corresponding to the microswitch being in the open state is the closed position. Normally, when the knob is rotated in a single direction, it will sequentially pass through the closed and open positions. During the rotation of the potentiometer, the voltage value corresponding to the closed position is lower than the voltage value corresponding to the open position. Based on this, the voltage value of the closed position can be calibrated according to the second detection value. In this process, there is no need to manually calibrate the closed position, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0019] In one technical solution, the voltage value corresponding to the value that is smaller than the second detection value than the first preset value can be used as the voltage value of the off position. Specifically, the difference between the second detection value and the first preset value is calculated, and the voltage value corresponding to the difference is used as the voltage value of the off position.
[0020] In any of the above technical solutions, the knob also has a minimum operating position. The calibration of the knob according to the second detection value further includes: determining a first sum of the second detection value and a second preset value; and using the voltage value corresponding to the first sum as the voltage value of the minimum operating position.
[0021] In this technical solution, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, and the minimum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, and the minimum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the minimum operating position can be calibrated based on the second detection value.
[0022] In this process, there is no need to manually calibrate the minimum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0023] In any of the above technical solutions, the knob also has a maximum operating position. The calibration of the knob based on the second detection value further includes: determining a second sum of the second detection value and a third preset value; using the voltage value corresponding to the second sum as the voltage value of the maximum operating position; wherein the third preset value is greater than the second preset value.
[0024] In this technical solution, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, the minimum operating position, and the maximum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, the minimum operating position, and the maximum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the maximum operating position can be calibrated based on the second detection value.
[0025] In this process, there is no need to manually calibrate the maximum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0026] In any of the above technical solutions, the following are also included: obtaining the fluctuation amplitude; and determining the fluctuation range based on the fluctuation amplitude.
[0027] This technical solution provides a method for determining the fluctuation range. It involves obtaining a pre-set fluctuation amplitude value. Typically, the fluctuation amplitude value is a value greater than zero, while the fluctuation value can be greater than zero or less than zero. Based on this, the opposite number of the fluctuation amplitude value is determined so that the fluctuation range can be determined according to the fluctuation amplitude value and its opposite number, thereby enabling the determination of whether the potentiometer's detection value is stable.
[0028] In any of the above technical solutions, the fluctuation amplitude is less than or equal to 300; the preset duration is less than or equal to 2 seconds; and / or the preset threshold is greater than or equal to 300.
[0029] In this technical solution, the values of fluctuation amplitude, preset duration, and preset threshold can be selected according to the actual usage.
[0030] In one embodiment, the fluctuation amplitude is set to 60, the preset duration is set to 300 milliseconds, and the preset threshold is set to 60.
[0031] In any of the above technical solutions, the method further includes: obtaining a default calibration value based on the difference between the second detection value and the first detection value being greater than or equal to a preset threshold; and calibrating the knob according to the default calibration value.
[0032] In this technical solution, by using the default calibration value for calibration, the probability of misjudging the gear position of the calibrated knob due to the inaccuracy of the first detection value is reduced when using the first detection value for calibration, thereby ensuring the accuracy of calibration.
[0033] According to a second aspect of the present invention, a calibration device for a knob is provided. The knob includes a potentiometer and a micro switch, wherein the potentiometer can drive the micro switch to operate when rotated. The calibration device includes: an acquisition unit for periodically acquiring the detection value of the potentiometer and the state of the micro switch; a recording unit for recording a first detection value of the potentiometer based on the micro switch switching from an open state to a closed state; the recording unit is further configured to record a second detection value of the potentiometer based on the fact that the fluctuation value of the potentiometer's detection value is within a preset fluctuation range for a duration greater than or equal to a preset duration; and a calibration unit for calibrating the knob based on the second detection value, where the difference between the second detection value and the first detection value is less than a preset threshold.
[0034] The technical solution of this application proposes a knob calibration device, which can be used to calibrate the knob so that the calibrated knob position matches the switching state of the micro switch. This overcomes the influence of potentiometer deviation or error caused by potentiometer installation on the knob position detection, and improves the accuracy of knob position detection.
[0035] In addition, the calibration device for the knob proposed in this application has the following additional technical features.
[0036] In the above technical solution, the knob has an opening position and a calibration unit, specifically used to: take the voltage value corresponding to the second detection value as the voltage value of the opening position.
[0037] In this technical solution, when the micro switch switches from the open state to the closed state, it will conduct the circuit where the micro switch is located. Normally, when the micro switch is in the closed state, it will power on the appliance where the knob is located. The position in the knob that matches the power-on is the open position. The second detection value is used instead of the first detection value to determine when the micro switch switches from the open state to the closed state. Therefore, the second detection value is used as the determination value for identifying the open position.
[0038] Since the resistance value is usually measured by measuring the voltage value on the potentiometer during use, the voltage value corresponding to the resistance value, that is, the voltage value corresponding to the second detection value, is used as the voltage value for the opening position.
[0039] In any of the above technical solutions, the knob also has a shut-off position and a calibration unit, which is specifically used to: determine the difference between the second detection value and the first preset value; and use the voltage value corresponding to the difference as the voltage value of the shut-off position.
[0040] In this technical solution, the position on the knob corresponding to the microswitch being in the open state is the closed position. Normally, when the knob is rotated in a single direction, it will sequentially pass through the closed and open positions. During the rotation of the potentiometer, the voltage value corresponding to the closed position is lower than the voltage value corresponding to the open position. Based on this, the voltage value of the closed position can be calibrated according to the second detection value. In this process, there is no need to manually calibrate the closed position, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0041] In one technical solution, the voltage value corresponding to the value that is smaller than the second detection value than the first preset value can be used as the voltage value of the off position. Specifically, the difference between the second detection value and the first preset value is calculated, and the voltage value corresponding to the difference is used as the voltage value of the off position.
[0042] In one of the technical solutions, the value of the first preset value is greater than the difference between the second detection value and the first detection value.
[0043] In any of the above technical solutions, the knob also has a minimum operating position and a calibration unit, which is specifically used to: determine the first sum of the second detection value and the second preset value; and use the voltage value corresponding to the first sum as the voltage value of the minimum operating position.
[0044] In this technical solution, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, and the minimum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, and the minimum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the minimum operating position can be calibrated based on the second detection value.
[0045] In this process, there is no need to manually calibrate the minimum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0046] In any of the above technical solutions, the knob also has a maximum operating position and a calibration unit, which is specifically used to: determine the second sum of the second detection value and the third preset value; and use the voltage value corresponding to the second sum as the voltage value of the maximum operating position; wherein the third preset value is greater than the second preset value.
[0047] In this technical solution, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, the minimum operating position, and the maximum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, the minimum operating position, and the maximum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the maximum operating position can be calibrated based on the second detection value.
[0048] In this process, there is no need to manually calibrate the maximum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0049] In the above technical solution, by limiting the third preset value to be greater than the second preset value, it is ensured that the voltage values corresponding to the minimum operating level and the maximum operating level increase sequentially, so as to meet the design requirements.
[0050] In any of the above technical solutions, the recording unit is also used to: acquire the fluctuation amplitude; and determine the fluctuation range based on the fluctuation amplitude.
[0051] This technical solution provides a method for determining the fluctuation range. It involves obtaining a pre-set fluctuation amplitude value. Typically, the fluctuation amplitude value is a value greater than zero, while the fluctuation value can be greater than zero or less than zero. Based on this, the opposite number of the fluctuation amplitude value is determined so that the fluctuation range can be determined according to the fluctuation amplitude value and its opposite number, thereby enabling the determination of whether the potentiometer's detection value is stable.
[0052] In any of the above technical solutions, the fluctuation amplitude is less than or equal to 300; the preset duration is less than or equal to 2 seconds; and / or the preset threshold is greater than or equal to 300.
[0053] In this technical solution, the values of fluctuation amplitude, preset duration, and preset threshold can be selected according to the actual usage.
[0054] In one embodiment, the fluctuation amplitude is set to 60, the preset duration is set to 300 milliseconds, and the preset threshold is set to 60.
[0055] In any of the above technical solutions, the calibration unit is further configured to: obtain a default calibration value based on the difference between the second detection value and the first detection value being greater than or equal to a preset threshold; and calibrate the knob according to the default calibration value.
[0056] In this technical solution, by using the default calibration value for calibration, the probability of misjudging the gear position of the calibrated knob due to the inaccuracy of the first detection value is reduced when using the first detection value for calibration, thereby ensuring the accuracy of calibration.
[0057] According to a third aspect of the present invention, a knob calibration device is provided, comprising: a controller and a memory, wherein the memory stores a program or instructions, and the controller, when executing the program or instructions in the memory, implements the steps of any of the methods described above.
[0058] According to a fourth aspect of the present invention, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the steps of any of the methods described above.
[0059] According to a fifth aspect of the invention, the invention provides a knob comprising: a calibration device as described above for any of the knobs; and / or a readable storage medium as described above.
[0060] According to a sixth aspect of the present invention, an electrical appliance is provided, comprising: a knob as described above.
[0061] In one of the technical solutions, the electrical components include: a motor; and a motor drive circuit connected to the motor and the knob for controlling the power supply to the motor via the knob.
[0062] In one of the technical solutions, the knob is also used to adjust the speed of the motor.
[0063] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0064] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0065] Figure 1 A flowchart illustrating the calibration method for the knob in an embodiment of the present invention is shown;
[0066] Figure 2 One of the structural schematic diagrams of the knob in an embodiment of the present invention is shown;
[0067] Figure 3 A second schematic diagram of the knob structure in an embodiment of the present invention is shown;
[0068] Figure 4 A flowchart illustrating the calibration process in an embodiment of the present invention is shown;
[0069] Figure 5 One of the schematic block diagrams of the calibration device for the knob in an embodiment of the present invention is shown;
[0070] Figure 6 The second schematic block diagram of the calibration device for the knob in an embodiment of the present invention is shown.
[0071] in, Figure 2 and Figure 3 The correspondence between the reference numerals and component names in the attached drawings is as follows:
[0072] 202 Knob, 204 Knob pressure plate, 206 Micro switch, 208 Potentiometer. Detailed Implementation
[0073] To better understand the above aspects, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0074] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0075] According to one embodiment of the present invention, a method for calibrating a knob is provided. The knob includes a potentiometer and a micro switch, wherein the potentiometer, when rotated, can actuate the micro switch, such as... Figure 1 As shown, the calibration method for the knob includes:
[0076] Step 102: Periodically acquire the detection value of the potentiometer and the state of the micro switch;
[0077] Step 104: Based on the micro switch switching from the open state to the closed state, record the first detection value of the potentiometer;
[0078] Step 106: Based on the fact that the fluctuation value of the potentiometer's detection value is within a preset fluctuation range for a duration greater than or equal to a preset duration, record the second detection value of the potentiometer;
[0079] Step 108: Based on the fact that the difference between the second detection value and the first detection value is less than a preset threshold, the knob is calibrated according to the second detection value.
[0080] The embodiments of this application propose a calibration method for a knob. By running this calibration method, the knob can be calibrated so that the calibrated knob position matches the switching state of the micro switch. This overcomes the influence of potentiometer deviation or errors caused during potentiometer installation on the knob position detection, and improves the accuracy of knob position detection.
[0081] Specifically, the potentiometer changes the state of the microswitch when it rotates. When the potentiometer is rotated to a certain position, the microswitch switches from the open state to the closed state. As a switching device, the microswitch changes the connection relationship between different devices when its working state changes. By periodically acquiring the state of the microswitch and the detection value of the potentiometer, the state change of the microswitch can be detected in a timely manner.
[0082] Considering that the potentiometer's detection value may fluctuate, meaning that the first detection value may be inaccurate, it is necessary to verify the first detection value. During the verification process, a relatively stable detection value over a period of time needs to be selected as the comparison value, i.e., the second detection value mentioned above. Furthermore, the difference between the second detection value and the first detection value should be determined so that the stability of the first detection value can be verified based on the magnitude of the absolute difference.
[0083] When the absolute difference is relatively small, the first detection value is considered to be more accurate. However, considering that the second detection value is a relatively stable detection value over a period of time, its confidence level is stronger than that of the first detection value. Therefore, the second detection value is selected to calibrate the knob, thereby minimizing the impact of potentiometer deviation or errors caused by potentiometer installation on the knob's gear detection and improving the accuracy of the knob's gear detection.
[0084] In one embodiment, a preset threshold is set in advance to measure the size of the difference. For example, if the difference is lower than the preset threshold, the difference is considered to be small, and if the difference is not lower than the preset threshold, the difference is considered to be large, thereby determining the size of the difference.
[0085] In one embodiment, a potentiometer is a resistive element with three leads whose resistance can be adjusted according to a certain rule. A potentiometer typically consists of a resistive element and a movable brush. When the brush moves along the resistive element, a resistance value or voltage that is related to the displacement is obtained at the output terminal.
[0086] In one embodiment, a micro switch is a contact mechanism with a small contact gap and a quick-acting mechanism that performs switching action with a specified stroke and a specified force. It is covered by a housing and has a drive rod on the outside. Because the contact gap of the switch is relatively small, it is called a micro switch, also known as a sensitive switch.
[0087] In one embodiment, such as Figure 2 As shown, when the knob 202 is rotated, it adjusts the resistance of the potentiometer and drives the knob plate 204 located below the knob 202 to rotate. The knob plate 204 has an opening in the circumferential position, and the micro switch 206 is located in the opening. When the knob plate 204 rotates, the micro switch 206 moves out from the opening. At this time, the micro switch 206 is in the closed state. Conversely, when the micro switch 206 is in the opening, it is in the open state.
[0088] In the above embodiment, the knob has an open position. The knob is calibrated according to the second detection value, specifically including: using the voltage value corresponding to the second detection value as the voltage value of the open position.
[0089] In this embodiment, when the micro switch switches from the open state to the closed state, it will conduct the circuit where the micro switch is located. Normally, when the micro switch is in the closed state, it will power on the appliance where the knob is located. The position in the knob that matches the power-on is the open position. The second detection value is used instead of the first detection value to determine when the micro switch switches from the open state to the closed state. Therefore, the second detection value is used as the determination value for identifying the open position.
[0090] Since the resistance value is usually measured by measuring the voltage value on the potentiometer during use, the voltage value corresponding to the resistance value, that is, the voltage value corresponding to the second detection value, is used as the voltage value for the opening position.
[0091] In one embodiment, it is understood that when the knob is rotated to the open position, the micro switch is closed, and the appliance containing the knob is powered on.
[0092] In any of the above embodiments, the knob further has a shut-off position. The calibration of the knob based on the second detection value further includes: determining the difference between the second detection value and the first preset value; and using the voltage value corresponding to the difference as the voltage value of the shut-off position.
[0093] In this embodiment, the position on the knob corresponding to the microswitch being in the open state is the closed position. Normally, when the knob is rotated in a single direction, it will sequentially pass through the closed and open positions. During the rotation of the potentiometer, the voltage value corresponding to the closed position is lower than the voltage value corresponding to the open position. Based on this, the voltage value of the closed position can be calibrated according to the second detection value. In this process, there is no need to manually calibrate the closed position, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0094] In one embodiment, the voltage value corresponding to a value that is smaller than the second detection value than the first preset value can be used as the voltage value of the off position. Specifically, the difference between the second detection value and the first preset value is calculated, and the voltage value corresponding to the difference is used as the voltage value of the off position.
[0095] In one embodiment, the value of the first preset value is greater than the difference between the second detection value and the first detection value.
[0096] In any of the above embodiments, the knob further has a minimum operating setting. The calibration of the knob based on the second detection value further includes: determining a first sum of the second detection value and a second preset value; and using the voltage value corresponding to the first sum as the voltage value of the minimum operating setting.
[0097] In this embodiment, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, and the minimum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, and the minimum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the minimum operating position can be calibrated based on the second detection value.
[0098] Specifically, a second preset value is given in advance, and the sum of the second detection value and the second preset value is calculated. The voltage value corresponding to the sum is calibrated as the voltage value of the minimum operating level.
[0099] In this process, there is no need to manually calibrate the minimum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0100] In any of the above embodiments, the knob further has a maximum operating position. The calibration of the knob based on the second detection value further includes: determining a second sum of the second detection value and a third preset value; using the voltage value corresponding to the second sum as the voltage value of the maximum operating position; wherein the third preset value is greater than the second preset value.
[0101] In this embodiment, under normal circumstances, when the knob is rotated in a single direction, it will sequentially pass through the off position, the on position, the minimum operating position, and the maximum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, the minimum operating position, and the maximum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the maximum operating position can be calibrated based on the second detection value.
[0102] Specifically, a third preset value is given in advance, and the sum of the second detection value and the third preset value is calculated. The voltage value corresponding to the sum is calibrated as the voltage value of the maximum operating level.
[0103] In this process, there is no need to manually calibrate the maximum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0104] In the above embodiments, by limiting the third preset value to be greater than the second preset value, it is ensured that the voltage values corresponding to the minimum operating level and the maximum operating level increase sequentially, so as to meet the design requirements.
[0105] In any of the above embodiments, the method further includes: obtaining the fluctuation amplitude; and determining the fluctuation range based on the fluctuation amplitude.
[0106] In this embodiment, a scheme for determining the fluctuation range is given. A pre-set fluctuation amplitude is obtained. Typically, the fluctuation amplitude is a value greater than zero, while the fluctuation value can be greater than zero or less than zero. Based on this, the opposite number of the fluctuation amplitude is determined so as to determine the fluctuation range according to the fluctuation amplitude and its opposite number, so as to realize the determination of whether the detection value of the potentiometer is stable.
[0107] In any of the above embodiments, the fluctuation amplitude is less than or equal to 300; the preset duration is less than or equal to 2 seconds; and / or the preset threshold is greater than or equal to 300.
[0108] In this embodiment, the values of fluctuation amplitude, preset duration, and preset threshold can be selected according to actual usage.
[0109] In one embodiment, the fluctuation amplitude is set to 60, the preset duration is set to 300 milliseconds, and the preset threshold is set to 60.
[0110] In any of the above embodiments, the method further includes: obtaining a default calibration value based on the difference between the second detection value and the first detection value being greater than or equal to a preset threshold; and calibrating the knob according to the default calibration value.
[0111] In this embodiment, the default calibration value can be understood as a pre-set detection value. When calibrating the knob according to the default calibration value, the voltage value corresponding to the pre-set detection value is used as the voltage values of the on position, off position, minimum operation position, and maximum operation position as described above.
[0112] In this embodiment, by using the default calibration value for calibration, the probability of misjudgment of the knob's position after calibration due to inaccurate first detection value when using the first detection value for calibration is reduced, thus ensuring the accuracy of calibration.
[0113] In one of the embodiments, as Figure 3 shown, the level signal M_KEY output by the micro switch 206 and the voltage signal V_RES output by the potentiometer 208 are detected to realize the calibration of the knob according to the detection results.
[0114] Specifically, as Figure 4 shown, the calibration process is as follows:
[0115] Step 402, read the voltage signal V_RES of the potentiometer (the value range of V_RES is between 0 and 4096);
[0116] Step 404, read the level signal M_KEY of the micro switch;
[0117] Step 406, determine whether M_KEY is at a low level. If the determination result is no, execute step 424. If the determination result is yes, execute step 408;
[0118] Step 408, determine whether M_KEY_PRE is at a high level. If the determination result is no, execute step 412. If the determination result is yes, execute step 410;
[0119] Step 410, record V_RES1 = V_RES;
[0120] Step 412, determine whether V_RES is stable within plus or minus X (= 60) for a duration of T (300 milliseconds). If the determination result is no, execute step 424. If the determination result is yes, execute step 414;
[0121] Step 414, record V_RES2 = V_RES;
[0122] Step 416, determine whether |V_RES1 - VRES2| < X2 (= 60). If the determination result is no, execute step 424. If the determination result is yes, execute step 418;
[0123] Step 418, record the voltage value V_ON of the knob's ON position = V_RES2;
[0124] Step 420, the voltage value V_OFF at the OFF position of the knob is V_ON – X3 (=120), and the voltage value V_MIN at the MIN position of the knob is V_ON + X4 (=100);
[0125] Step 422, the voltage value at the MAX position of the knob is V_MAX = V_MIN + X5 (=1800);
[0126] Step 424: Record the previous microswitch state M_KEY_PRE = M_KEY.
[0127] Wherein, X3 is the first preset value in this application, and its value can be 120; X4 is the second preset value in this application, and its value can be 100; X5 is the sum of the third preset value and the second preset value in this application, and its value can be 1800.
[0128] In one embodiment, such as Figure 5 As shown, the present invention provides a calibration device 500 for a knob. The knob includes a potentiometer and a micro switch. When the potentiometer is rotated, it can drive the micro switch to operate. The calibration device includes: an acquisition unit 502, used to periodically acquire the detection value of the potentiometer and the state of the micro switch; a recording unit 504, used to record a first detection value of the potentiometer based on the micro switch switching from an open state to a closed state; the recording unit 504 is also used to record a second detection value of the potentiometer based on the fact that the fluctuation value of the potentiometer's detection value is within a preset fluctuation range for a duration greater than or equal to a preset duration; and a calibration unit 506, used to calibrate the knob based on the second detection value, where the difference between the second detection value and the first detection value is less than a preset threshold.
[0129] The embodiments of this application propose a knob calibration device 500. This calibration device can be used to calibrate the knob so that the calibrated knob position matches the switching state of the micro switch. This overcomes the influence of potentiometer deviation or error caused during potentiometer installation on the knob position detection and improves the accuracy of knob position detection.
[0130] Specifically, the potentiometer changes the state of the microswitch when it rotates. When the potentiometer is rotated to a certain position, the microswitch switches from the open state to the closed state. As a switching device, the microswitch changes the connection relationship between different devices when its working state changes. By periodically acquiring the state of the microswitch and the detection value of the potentiometer, the state change of the microswitch can be detected in a timely manner.
[0131] Considering that the potentiometer's detection value may fluctuate, meaning that the first detection value may be inaccurate, it is necessary to verify the first detection value. During the verification process, a relatively stable detection value over a period of time needs to be selected as the comparison value, i.e., the second detection value mentioned above. Furthermore, the difference between the second detection value and the first detection value should be determined so that the stability of the first detection value can be verified based on the magnitude of the absolute difference.
[0132] When the absolute difference is relatively small, the first detection value is considered to be more accurate. However, considering that the second detection value is a relatively stable detection value over a period of time, its confidence level is stronger than that of the first detection value. Therefore, the second detection value is selected to calibrate the knob, thereby minimizing the impact of potentiometer deviation or errors caused by potentiometer installation on the knob's gear detection and improving the accuracy of the knob's gear detection.
[0133] In one embodiment, a preset threshold is set in advance to measure the size of the difference. For example, if the difference is lower than the preset threshold, the difference is considered to be small, and if the difference is not lower than the preset threshold, the difference is considered to be large, thereby determining the size of the difference.
[0134] In one embodiment, a potentiometer is a resistive element with three leads whose resistance can be adjusted according to a certain rule. A potentiometer typically consists of a resistive element and a movable brush. When the brush moves along the resistive element, a resistance value or voltage that is related to the displacement is obtained at the output terminal.
[0135] In one embodiment, a micro switch is a contact mechanism with a small contact gap and a quick-acting mechanism that performs switching action with a specified stroke and a specified force. It is covered by a housing and has a drive rod on the outside. Because the contact gap of the switch is relatively small, it is called a micro switch, also known as a sensitive switch.
[0136] In one embodiment, as the knob rotates, it adjusts the resistance of the potentiometer and simultaneously rotates the knob plate located below the knob. The knob plate has an opening in its circumferential position, and a micro switch is located inside the opening. As the knob plate rotates, the micro switch moves out of the opening, at which point the micro switch is in a closed state. Conversely, when the micro switch is inside the opening, it is in an open state.
[0137] In the above embodiment, the knob has an open position, and the calibration unit 506 is specifically used to: take the voltage value corresponding to the second detection value as the voltage value of the open position.
[0138] In this embodiment, when the micro switch switches from the open state to the closed state, it will conduct the circuit where the micro switch is located. Normally, when the micro switch is in the closed state, it will power on the appliance where the knob is located. The position in the knob that matches the power-on is the open position. The second detection value is used instead of the first detection value to determine when the micro switch switches from the open state to the closed state. Therefore, the second detection value is used as the determination value for identifying the open position.
[0139] Since the resistance value is usually measured by measuring the voltage value on the potentiometer during use, the voltage value corresponding to the resistance value, that is, the voltage value corresponding to the second detection value, is used as the voltage value for the opening position.
[0140] In one embodiment, it is understood that when the knob is rotated to the open position, the micro switch is closed, and the appliance containing the knob is powered on.
[0141] In any of the above embodiments, the knob also has a shut-off position, and the calibration unit 506 is specifically used to: determine the difference between the second detection value and the first preset value; and use the voltage value corresponding to the difference as the voltage value of the shut-off position.
[0142] In this embodiment, the position on the knob corresponding to the microswitch being in the open state is the closed position. Normally, when the knob is rotated in a single direction, it will sequentially pass through the closed and open positions. During the rotation of the potentiometer, the voltage value corresponding to the closed position is lower than the voltage value corresponding to the open position. Based on this, the voltage value of the closed position can be calibrated according to the second detection value. In this process, there is no need to manually calibrate the closed position, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0143] In one embodiment, the voltage value corresponding to a value that is smaller than the second detection value than the first preset value can be used as the voltage value of the off position. Specifically, the difference between the second detection value and the first preset value is calculated, and the voltage value corresponding to the difference is used as the voltage value of the off position.
[0144] In one embodiment, the value of the first preset value is greater than the difference between the second detection value and the first detection value.
[0145] In any of the above embodiments, the knob also has a minimum operating position, and the calibration unit 506 is specifically used to: determine the first sum of the second detection value and the second preset value; and use the voltage value corresponding to the first sum as the voltage value of the minimum operating position.
[0146] In this embodiment, under normal circumstances, when the knob is rotated in a single direction, it will sequentially go through the off position, the on position, and the minimum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, and the minimum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the minimum operating position can be calibrated based on the second detection value.
[0147] Specifically, a second preset value is given in advance, and the sum of the second detection value and the second preset value is calculated. The voltage value corresponding to the sum is calibrated as the voltage value of the minimum operating level.
[0148] In this process, there is no need to manually calibrate the minimum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0149] In any of the above embodiments, the knob also has a maximum operating position, and the calibration unit 506 is specifically used to: determine a second sum of the second detection value and the third preset value; and use the voltage value corresponding to the second sum as the voltage value of the maximum operating position; wherein the third preset value is greater than the second preset value.
[0150] In this embodiment, under normal circumstances, when the knob is rotated in a single direction, it will sequentially pass through the off position, the on position, the minimum operating position, and the maximum operating position. During the rotation of the potentiometer, the voltage values corresponding to the off position, the on position, the minimum operating position, and the maximum operating position will increase sequentially. Since the voltage value corresponding to the second detection value is the voltage value of the on position, the maximum operating position can be calibrated based on the second detection value.
[0151] Specifically, a third preset value is given in advance, and the sum of the second detection value and the third preset value is calculated. The voltage value corresponding to the sum is calibrated as the voltage value of the maximum operating level.
[0152] In this process, there is no need to manually calibrate the maximum operating gear, which simplifies the calibration complexity and reduces the labor and time costs required for calibration.
[0153] In the above embodiments, by limiting the third preset value to be greater than the second preset value, it is ensured that the voltage values corresponding to the minimum operating level and the maximum operating level increase sequentially, so as to meet the design requirements.
[0154] In any of the above embodiments, the recording unit 504 is further configured to: acquire the fluctuation amplitude; and determine the fluctuation range based on the fluctuation amplitude.
[0155] In this embodiment, a scheme for determining the fluctuation range is given. A pre-set fluctuation amplitude is obtained. Typically, the fluctuation amplitude is a value greater than zero, while the fluctuation value can be greater than zero or less than zero. Based on this, the opposite number of the fluctuation amplitude is determined so as to determine the fluctuation range according to the fluctuation amplitude and its opposite number, so as to realize the determination of whether the detection value of the potentiometer is stable.
[0156] In any of the above embodiments, the fluctuation amplitude is less than or equal to 300; the preset duration is less than or equal to 2 seconds; and / or the preset threshold is greater than or equal to 300.
[0157] In this embodiment, the values of fluctuation amplitude, preset duration, and preset threshold can be selected according to actual usage.
[0158] In one embodiment, the fluctuation amplitude is set to 60, the preset duration is set to 300 milliseconds, and the preset threshold is set to 60.
[0159] In any of the above embodiments, the calibration unit 506 is further configured to: obtain a default calibration value based on the difference between the second detection value and the first detection value being greater than or equal to a preset threshold; and calibrate the knob according to the default calibration value.
[0160] In this embodiment, the default calibration value can be understood as a pre-set detection value. When the knob is calibrated according to the default calibration value, the voltage value corresponding to the pre-set detection value is used as the voltage value of the open position, the close position, the minimum operating position and the maximum operating position as mentioned above.
[0161] In this embodiment, by using the default calibration value for calibration, the probability of misjudging the gear position of the calibrated knob due to the inaccuracy of the first detection value is reduced when using the first detection value for calibration, thereby ensuring the accuracy of calibration.
[0162] In one embodiment, such as Figure 6 As shown, the present invention provides a knob calibration device 600, including: a controller 602 and a memory 604, wherein the memory 604 stores a program or instructions, and the controller 602 implements the steps of any of the methods described above when executing the program or instructions in the memory 604.
[0163] The memory 604 can be used to store software programs and various data. The memory 604 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback function, image playback function, etc.). Furthermore, the memory 604 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 604 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0164] In one embodiment, the present invention provides a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of any of the methods described above.
[0165] In one embodiment, the present invention provides a knob, comprising: a calibration device as described above for any of the knobs described above; and / or a readable storage medium as described above.
[0166] In one embodiment, the present invention provides an electrical appliance including a knob as described above.
[0167] In one embodiment, the appliance can be any one of a humidifier, an electric heater, a blender, or a food processor.
[0168] In one embodiment, the electrical appliance includes: a motor; and a motor drive circuit connected to the motor and the knob for controlling the power supply to the motor via the knob.
[0169] In one embodiment, a motor is used to drive the connected stirring element to rotate, thereby achieving stirring.
[0170] In one embodiment, the knob is also used to adjust the speed of the motor.
[0171] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the textual description of this invention, unless otherwise stated, "a plurality of" means two or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0172] In the textual description of this invention, it is understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing and simplifying the embodiments of this invention, and do not indicate or imply that the structures, devices, or elements referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, these descriptions should not be construed as limiting the invention.
[0173] In the textual description of this invention, it is understood that, unless explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0174] In the claims, description, and accompanying drawings of this invention, the term "plural" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the invention and simplifying the description process, not to indicate or imply that the device or element referred to must have the described specific orientation, or be constructed and operated in a specific orientation. Therefore, these descriptions should not be construed as limiting the invention. The terms "connect," "install," "fix," etc., should be interpreted broadly. For example, "connect" can be a fixed connection between multiple objects, a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects or an indirect connection between multiple objects through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this invention can be understood based on the specific circumstances described above.
[0175] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0176] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for calibrating a knob, characterized in that, The knob includes a potentiometer and a micro switch, wherein the potentiometer can actuate the micro switch when rotated, and the calibration method includes: The detection value of the potentiometer and the state of the micro switch are periodically acquired; Based on the microswitch switching from the open state to the closed state, the first detection value of the potentiometer is recorded; Based on the fact that the duration of the fluctuation value of the potentiometer's detected value being within a preset fluctuation range is greater than or equal to a preset duration, a second detected value of the potentiometer is recorded. Based on the fact that the difference between the second detection value and the first detection value is less than a preset threshold, the knob is calibrated according to the second detection value; The calibration of the knob based on the second detection value specifically includes: The knob is calibrated based on the voltage value corresponding to the second detection value.
2. The calibration method for the knob according to claim 1, characterized in that, The knob has an open position, and the calibration of the knob based on the second detection value specifically includes: The voltage value corresponding to the second detection value is used as the voltage value of the opening position.
3. The calibration method for the knob according to claim 2, characterized in that, The knob also has an off position, and the calibration of the knob based on the second detection value further includes: Determine the difference between the second detected value and the first preset value; The voltage value corresponding to the difference is used as the voltage value of the off position.
4. The calibration method for the knob according to claim 2, characterized in that, The knob also has a minimum operating setting, and the calibration of the knob based on the second detection value further includes: Determine the first sum of the second detected value and the second preset value; The voltage value corresponding to the first sum is taken as the voltage value of the minimum operating level.
5. The calibration method for the knob according to claim 4, characterized in that, The knob also has a maximum operating setting, and the calibration of the knob based on the second detection value further includes: Determine the second sum of the second detected value and the third preset value; The voltage value corresponding to the second sum is taken as the voltage value of the maximum operating level; The third preset value is greater than the second preset value.
6. The calibration method for the knob according to any one of claims 1 to 5, characterized in that, Also includes: Obtain the fluctuation amplitude; The fluctuation range is determined based on the fluctuation amplitude.
7. The calibration method for the knob according to claim 6, characterized in that, The fluctuation amplitude is less than or equal to 300; The preset duration is less than or equal to 2 seconds; and / or The preset threshold value is greater than or equal to 300.
8. The calibration method for the knob according to any one of claims 1 to 5, characterized in that, Also includes: Based on the fact that the difference between the second detection value and the first detection value is greater than or equal to a preset threshold, a default calibration value is obtained; The knob is calibrated according to the default calibration value.
9. A calibration device for a knob, characterized in that, The knob includes a potentiometer and a micro switch, wherein the potentiometer can actuate the micro switch when rotated, and the calibration device includes: The acquisition unit is used to periodically acquire the detection value of the potentiometer and the state of the micro switch; A recording unit is used to record the first detection value of the potentiometer based on the microswitch switching from an open state to a closed state. The recording unit is further configured to record a second detection value of the potentiometer based on the fact that the duration of the fluctuation value of the potentiometer's detection value being within a preset fluctuation range is greater than or equal to a preset duration. A calibration unit is used to calibrate the knob based on the second detection value, since the difference between the second detection value and the first detection value is less than a preset threshold. The calibration unit is specifically used to calibrate the knob based on the voltage value corresponding to the second detection value.
10. A calibration device for a knob, characterized in that, include: A controller and a memory, wherein the memory stores a program or instructions, and the controller, when executing the program or instructions in the memory, implements the steps of the method as described in any one of claims 1 to 8.
11. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 8.
12. A knob, characterized in that, include: The calibration device for the knob as described in claim 9 or 10; and / or The readable storage medium as described in claim 11.
13. An electrical appliance, characterized in that, include: The knob as described in claim 12.
14. The electrical appliance according to claim 13, characterized in that, The electrical appliance includes: Electric motor; A motor drive circuit, connected to the motor and the knob, is used to control the power supply to the motor via the knob.
15. The electrical appliance according to claim 14, characterized in that, The knob is also used to adjust the speed of the motor.
Citation Information
Patent Citations
Control circuit and working method thereof
CN107797594A
Knob shifter detection method and system
CN113513588A