Disclosure of Invention
The invention aims to provide a rotation detection method of a knob and a knob assembly, which are used for relieving the technical problems that the rotation angle of the knob such as a magnetic knob is usually detected by a magnetic sensitive angle sensor arranged in the knob in the prior art, but the magnetic sensitive angle sensor has higher cost, is easy to be interfered by electromagnetic waves and has low reliability.
In a first aspect, the present invention provides a method for detecting rotation of a knob, including:
a plurality of first detection positions distributed in an annular array shape are arranged on the knob;
a distance detection assembly is arranged on one side of a plane where the first detection positions are located, and the distance detection assembly sequentially senses the first detection positions when the knob rotates;
and calculating the rotation angle of the knob according to the number of the first detection positions sensed by the distance detection assembly and a preset stepping angle between every two adjacent first detection positions.
In an alternative embodiment, the method further comprises:
the knob is provided with a plurality of second detection positions distributed along the circumferential direction of the knob, and the distance detection assembly sequentially senses the second detection positions when the knob rotates;
and judging the rotation direction of the knob according to the induction time interval change or the induction result change of the distance detection assembly.
In an alternative embodiment, a plurality of the second detection positions are distributed according to a preset radial position change rule and/or an axial position change rule.
In an alternative embodiment, the radial position variation law is: the second detection positions are arranged at equal intervals, and the setting position of each second detection position corresponds to the non-intermediate position between every two adjacent first detection positions in each group in sequence.
In an optional embodiment, when the distance detection module senses a plurality of the first detection positions and a plurality of the second detection positions, a timing start point when a last first detection position of two adjacent first detection positions is sensed, a timing end point when a next first detection position is sensed, and a timing midpoint when a second detection position corresponding to a non-intermediate position between the two adjacent first detection positions is sensed, the rotation direction of the knob is determined according to the timing start point, the timing midpoint and the timing end point.
In an alternative embodiment, when the rotation direction of the knob is determined based on the timing start point, the timing middle point, and the timing end point:
and calculating the time from the timing starting point to the timing middle point and the time from the timing starting point to the timing end point, and judging the rotation direction of the knob according to the two time.
In an alternative embodiment, when the rotation direction of the knob is determined based on the timing start point, the timing middle point, and the timing end point:
calculating a clockwise angle ratio between the clockwise included angle and the preset stepping angle and calculating an anticlockwise angle ratio between the anticlockwise included angle and the preset stepping angle, wherein an included angle between the next first detection position and the second detection position at the timing midpoint is a clockwise included angle, and an included angle between the previous first detection position and the second detection position at the timing midpoint is an anticlockwise included angle;
calculating the time ratio of the time from the timing starting point to the timing middle point to the time from the timing starting point to the timing end point, calculating the difference between the time ratio and the clockwise angle ratio, calculating the difference between the time ratio and the anticlockwise angle ratio, and judging whether the former difference is smaller than the latter difference;
if the judgment result is yes, the knob rotates clockwise; if the judgment result is negative, the knob rotates anticlockwise.
In an alternative embodiment, the sensing result of the distance detection component on the plurality of second detection bits changes according to an increasing or decreasing linear change rule.
In an alternative embodiment, the axial position variation law is as follows: each second detection position is step-shaped, and the second detection positions are continuously connected in a step-increasing mode along the clockwise direction or the anticlockwise direction.
In an alternative embodiment, the radial position variation law is: the distance between two adjacent second detection bits in the plurality of second detection bits is changed in a clockwise direction or a counterclockwise direction in an increasing manner.
In an alternative embodiment, the distance detection assembly comprises a first distance detector for sensing the first detection position and a second distance detector for sensing the second detection position.
In a second aspect, the present invention provides a knob assembly comprising a knob and a distance detection assembly;
the knob is provided with a plurality of first detection positions distributed in an annular array shape;
the distance detection assembly is arranged on one side of a plane where the first detection positions are located at intervals and used for sequentially sensing the first detection positions in the rotation process of the knob so as to calculate the rotation angle of the knob.
In an alternative embodiment, the knob is provided with a plurality of second detection positions distributed along the circumferential direction of the knob;
the distance detection assembly is used for sequentially sensing a plurality of second detection positions in the rotation process of the knob so as to judge the rotation direction of the knob.
In an optional implementation manner, the plurality of second detection positions are distributed according to a preset radial position change rule and/or an axial position change rule, and both the radial position change rule and the axial position change rule are used for judging the rotation direction of the knob.
In an alternative embodiment, the radial position variation law is: the second detection positions are arranged at equal intervals, and the setting position of each second detection position corresponds to the non-intermediate position between every two adjacent first detection positions in each group in sequence.
In an alternative embodiment, the axial position variation law is as follows: each second detection position is step-shaped, and the second detection positions are continuously connected in a step-increasing mode along the clockwise direction or the anticlockwise direction.
In an alternative embodiment, the radial position variation law is: the distance between two adjacent second detection bits in the plurality of second detection bits is changed in a clockwise direction or a counterclockwise direction in an increasing manner.
In an alternative embodiment, the distance detecting assembly is configured to be mounted on a panel of the external electrical appliance, and the knob is provided with a magnet configured to attract and connect with a magnet on the panel of the external electrical appliance, so that the knob can be attached to the panel of the external electrical appliance.
In an alternative embodiment, the knob comprises a rotating body and a fixed body, wherein the rotating body is rotatably connected to one side of the fixed body;
the plurality of first detection positions are arranged on one side of the rotating body close to the fixed body, and the distance detection assembly is arranged on one side of the fixed body close to the rotating body.
The rotation detection method of the knob provided by the invention comprises the following steps: a plurality of first detection positions distributed in an annular array shape are arranged on the knob; a distance detection assembly is arranged on one side of the plane where the first detection positions are located, and the distance detection assembly sequentially senses the first detection positions when the knob rotates; and calculating the rotation angle of the knob according to the number of the first detection positions sensed by the distance detection assembly and a preset stepping angle between every two adjacent first detection positions. Because the plurality of first detection positions are distributed in an annular array shape, included angles between every two adjacent first detection positions in each group are equal, and the included angles are preset stepping angles. After the knob rotates, the distance detection assembly can sense a plurality of first detection positions in sequence, and the self-rotating angle of the knob can be calculated by counting the detected number of the first detection positions and combining the preset stepping angle.
Compared with the prior art, the rotation detection method of the knob provided by the invention has the advantages that the distance detection assembly is matched with the first detection position, the rotation angle of the knob can be detected, a magnetic-sensitive angle sensor is not needed, the electromagnetic interference can be prevented, and the reliability of the detection result is improved.
The knob provided by the invention comprises a knob and a distance detection assembly. One side of the knob is provided with a plurality of first detection positions distributed in an annular array shape. After the knob in the knob autorotates, the distance detection assembly can sequentially sense a plurality of first detection positions. Because the plurality of first detection positions are distributed in an annular array shape, included angles between every two adjacent first detection positions in each group are equal, the included angles are preset known values, and the self-rotating angle of the knob can be calculated by counting the detected number of the first detection positions and combining the included angles.
Compared with the prior art, the knob provided by the invention can detect the rotation angle of the knob by utilizing the mutual matching of the distance detection assembly and the first detection position without using a magnetic-sensitive angle sensor, thereby preventing the knob from being subjected to electromagnetic interference and improving the reliability of the detection result.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The first embodiment is as follows:
as shown in fig. 1, the method for detecting rotation of a knob according to this embodiment includes:
step S1: a plurality of first detection positions 10 distributed in an annular array shape are arranged on the knob 1;
step S2: a distance detection assembly 2 is arranged on one side of a plane where the first detection positions 10 are located, and the distance detection assembly 2 sequentially induces the first detection positions 10 when the knob 1 rotates;
step S3: and calculating the rotation angle of the knob 1 according to the number of the first detection positions 10 sensed by the distance detection assembly 2 and the preset stepping angle between two adjacent first detection positions 10.
Because the plurality of first detection positions 10 are distributed in an annular array, the included angles between two adjacent first detection positions 10 in each group are equal, and the included angles are preset stepping angles. After the knob 1 rotates, the distance detection assembly 2 can sense a plurality of first detection positions 10 in sequence, and the angle of the knob 1 rotating automatically can be calculated by counting the detected number of the first detection positions 10 and combining the preset stepping angle. As shown in fig. 2, when the preset step angle is represented as β, the total number of the first detection bits 10 can be calculated from β, that is, when the total number of the first detection bits 10 is 360 °/β, for example, when β is 22.5 °, the total number of the first detection bits 10 is 16. And the rotation angle of the knob 1 is equal to the number of the first detection positions 10 sensed by the distance detection component 2 minus 1 and multiplied by beta.
Compared with the prior art, the rotation detection method of the knob provided by the embodiment can detect the rotation angle of the knob 1 by utilizing the mutual matching of the distance detection component 2 and the first detection position 10 without using a magnetic-sensitive angle sensor, thereby preventing the knob from being subjected to electromagnetic interference and improving the reliability of the detection result.
It can be seen that the rotation detection method for the knob provided by the embodiment alleviates the technical problems that the rotation angle of the knob such as the magnetic knob is usually detected by using the magnetic-sensing angle sensor installed inside the knob in the prior art, but the magnetic-sensing angle sensor has high cost, is easy to be interfered by electromagnetic waves and has low reliability.
The method for detecting rotation of a knob according to the present embodiment further includes:
step S4: the knob 1 is provided with a plurality of second detection positions 11 distributed along the circumferential direction of the knob 1, and the distance detection assembly 2 sequentially senses the plurality of second detection positions 11 when the knob 1 rotates;
step S5: and judging the rotation direction of the knob 1 according to the induction time interval change or the induction result change of the distance detection assembly 2.
Further, the plurality of second detection positions 11 may be distributed according to a preset radial position change rule or an axial position change rule, or the plurality of second detection positions 11 may be distributed according to both the preset radial position change rule and the axial position change rule. Wherein, radial position change rule and axial position change rule distribution all can be used for judging the rotation direction of knob 1.
In order to determine the rotation direction of the knob 1, in the present embodiment, the plurality of second detection positions 11 are preferably distributed according to a preset radial position change rule or an axial position change rule.
After the rotation of the knob 1, the distance detection assembly 2 can also sense a plurality of second detection positions 11 in sequence, and the plurality of second detection positions 11 are distributed according to a preset radial position change rule or an axial position change rule, so that the rotation direction of the knob 1 can be judged according to the change of the induction time interval or the change of the induction result of the distance detection assembly 2 based on the distribution of the radial position change rule or the axial position change rule.
Therefore, the method for detecting the rotation direction and angle of the knob provided by the embodiment can also detect the rotation direction of the knob 1 by using the distance detection assembly 2 and the second detection position 11 to cooperate with each other, and similarly, a magnetic-sensing angle sensor is not needed, so that the method can prevent electromagnetic interference and improve the reliability of the detection result.
In this embodiment, as shown in fig. 2, the radial position variation law may be: the second detection positions 11 are arranged at equal intervals, and the arrangement position of each second detection position 11 corresponds to the non-intermediate position between every two adjacent first detection positions 10 in each group in sequence.
The setting position of each second detection position 11 corresponds to the non-intermediate position between every two adjacent first detection positions 10 in each group in sequence, so that the rotation direction of the knob 1 can be conveniently judged according to the detection result of the distance detection assembly 2.
Further, when the distance detecting element 2 senses the plurality of first detecting positions 10 and the plurality of second detecting positions 11, the rotation direction of the knob 1 is determined according to the timing start point, the timing middle point and the timing end point by using the sensing time of the last first detecting position 10 of the two adjacent first detecting positions 10 as the timing start point, the sensing time of the next first detecting position 10 as the timing end point and the sensing time of the second detecting position 11 corresponding to the non-intermediate position between the two adjacent first detecting positions 10 as the timing middle point.
The distance detecting assembly 2 may include two distance sensors, one of which is used for sensing the first detecting position 10 and the other of which is used for detecting the second detecting position 11. The first detection sites 10 and the second detection sites 11 are located on the same plane, and two rectangular dashed boxes are shown in fig. 2, wherein one dashed box represents a projection of one of the distance sensors on the plane, and the other dashed box represents a projection of the other distance sensor on the plane. In this case, the radial position change of the second detection site 11 is based on the position of the first detection site 10, and the position of the second detection site 11 relative to the position of the first detection site 10 has a fixed change rule in the radial direction of the knob 1.
When the knob 1 is rotated at a constant speed, the time between the timing starting point and the timing middle point and the time between the timing middle point and the timing end point can be calculated, because the setting position of each second detection position 11 sequentially corresponds to the non-intermediate position between each two adjacent first detection positions 10, the two time periods are not equal, and the rotation direction of the knob 1 can be judged by comparing the two time periods. As shown in fig. 2, when an included angle between the next first detection position 10 and the second detection position 11 at the timing midpoint is represented as α, when the setting position of each second detection position 11 sequentially corresponds to a non-intermediate position between each two adjacent first detection positions 10, α cannot be equal to 0 or one half β, that is, the first detection position 10 and the second detection position 11 cannot be overlapped in the radial direction of the knob 1, and the position of the second detection position 11 cannot correspond to an intermediate position between two adjacent first detection positions 10.
Further, in step S5, when the rotation direction of the knob 1 is determined based on the timing start point, the timing middle point, and the timing end point, the time from the timing start point to the timing middle point and the time from the timing start point to the timing end point may be calculated first; then, the rotation direction of the knob 1 can be determined based on the two kinds of time. For example, the rotation direction of the knob 1 can be determined by subtracting the time from the time starting point to the time ending point from the time starting point to the time ending point to obtain the time from the time starting point to the time ending point, and then determining the magnitude between the time from the time starting point to the time ending point and the time from the time starting point to the time ending point.
In the present embodiment, when determining the rotation direction of the knob 1 from the time counting start point, the time counting middle point, and the time counting end point, the present embodiment is preferably performed as follows: an included angle between a next first detection position 10 and a second detection position 11 at the timing midpoint is a clockwise included angle, an included angle between a previous first detection position 10 and a second detection position 11 at the timing midpoint is an anticlockwise included angle, a clockwise angle ratio between the clockwise included angle and a preset stepping angle is calculated, and an anticlockwise angle ratio between the anticlockwise included angle and the preset stepping angle is calculated; calculating the time ratio of the time spent from the timing starting point to the timing middle point to the time spent from the timing starting point to the timing end point, calculating the difference between the time ratio and the clockwise angle ratio, calculating the difference between the time ratio and the anticlockwise angle ratio, and judging whether the former difference is smaller than the latter difference; if the judgment result is yes, the knob 1 rotates clockwise; if the judgment result is no, the knob 1 rotates anticlockwise.
The time from the start of timing to the midpoint of timing is denoted as TaThe time from the start point to the end point of the timer is denoted as TbIf the first detection bit 10 is defined as 0 when the distance detection element 2 detects the first detection bit 10 and the state where the first detection bit 10 is not detected is defined as 1, and if the second detection bit 11 is defined as 0 when the distance detection element 2 detects the second detection bit 11 and the state where the second detection bit 11 is not detected is defined as 1, the knob 1 generates a waveform as shown in fig. 3 during rotation.
The logic for determining the rotation direction of the knob 1 from the timing start point, the timing middle point and the timing end point is as follows, taking the clockwise angle as β and the counterclockwise angle as (β - α), with reference to the waveform diagram shown in fig. 3:
starting from the time point when the first detection position 10 leaves the distance detection component 2, two timers are started, i.e. from t in fig. 31The time point starts to be timed. When the distance detecting unit 2 detects the second detection position 11 (t in fig. 3)2Or t3Time point), that is, when the time reaches the middle point of the timing, a timer is stopped, and the time used at this time is defined as TaOr Tb(ii) a When the distance detection unit 2 continues to detect the first detection position 10 (t in fig. 3)4Time point), that is, when the time reaches the end of the counting, the other timer is stopped, and the time used at this time is defined as T0. If the difference between the time ratio and the clockwise angle ratio is smaller than the difference between the calculated time ratio and the counterclockwise angle ratio, the former difference is smaller than the latter difference, and T is greater than the former differencea/T0Is close to alpha/beta, and is judged to rotate clockwise; if the previous difference is greater than the next difference, Tb/T0Is close to (β - α)/β, it is determined as counterclockwise rotation.
The above manner of determining the rotation direction of the knob 1 is determined by the variation of the sensing time interval of the distance detection assembly 2, and in this embodiment, the rotation direction of the knob 1 may be determined according to the variation of the sensing result of the distance detection assembly 2.
In order to make the above sensing result change be used for judging the rotation direction of the knob 1, the sensing result of the distance detection assembly 2 needs to change according to an increasing or decreasing linear change rule. In practical applications, the change of the sensing result can be achieved by adjusting the axial size of the second detection position 11 on the knob 1, and making the axial sizes of the plurality of second detection positions 11 decrease or increase in a clockwise or counterclockwise direction.
As shown in fig. 4 and fig. 5, the axial position variation rule provided by this embodiment at this time is: each second detection position 11 is step-shaped, and the plurality of second detection positions 11 are continuously connected in an ascending manner in a clockwise direction or a counterclockwise direction.
In the rotation process of the knob 1, the distance detection assembly 2 sequentially senses the plurality of second detection positions 11, and the plurality of second detection positions 11 are continuously connected in an ascending order along the clockwise direction or the anticlockwise direction, so that the sensing result of the distance detection assembly 2 on the second detection positions 11 can be increased or decreased progressively, and at the moment, based on the change rule of the axial position, the rotation of the knob 1 in the clockwise direction or the anticlockwise direction can be judged.
Further, as shown in fig. 4 and 5, each step-shaped second detection position 11 at least includes two steps, and a second detection position 11 is disposed at a corresponding position between two adjacent first detection positions 10, and at this time, when the knob 1 rotates by a preset step angle, the rotation direction of the knob 1 can be determined according to the sensing result of the distance detection assembly 2 on the second detection position 11, and based on the change rule of the axial position.
In practical application, the change rule of the axial position may also be: each second detection position 11 is step-shaped, one second detection position 11 is arranged between every two adjacent first detection positions 10, and the second detection positions 11 gradually increase in steps along the clockwise direction or the anticlockwise direction. The ring formed by the second detection site 11 and the first detection site 10 at this time coincide.
In addition, the change rule of the axial position can also be as follows: the second detection positions 11 are correspondingly arranged at the first detection positions 10 one by one, each second detection position 11 is groove-shaped, and the groove depth of each second detection position 11 increases progressively along the clockwise direction or the anticlockwise direction. At this time, the first detection position 10 and the second detection position 11 are overlapped, and the distance detection assembly 2 may include only one distance sensor, which may sense the first detection position 10 and the second detection position 11 simultaneously during the rotation of the knob 1. Based on the detection result of the distance sensor, the number of the first detection positions 10 passing through the distance sensor can be detected, so that the rotation angle of the knob 1 can be calculated by combining a preset stepping angle, and the distance change of the second detection positions 11 passing through the distance sensor can be detected to be increased or decreased progressively, so that the steering of the knob 1 can be judged by combining the change rule of the axial position.
As shown in fig. 6, the radial position variation law may also be: the spacing between two adjacent second detection bits 11 in the plurality of second detection bits 11 is changed in a clockwise direction or a counterclockwise direction.
The distance between two adjacent second detection positions 11 in the plurality of second detection positions 11 is changed in an increasing manner along the clockwise direction or the counterclockwise direction, so that when the knob 1 rotates, the distance detection assembly 2 continuously detects the plurality of second detection positions 11, the distance detection assembly is increased or decreased progressively, and at the moment, the rotation direction of the knob 1 can be judged by combining the radial position change rule.
In the present embodiment, the distance detecting assembly 2 includes a first distance detector 20 and a second distance detector 21, the first distance detector 20 is used for sensing the first detecting position 10, and the second distance detector 21 is used for sensing the second detecting position 11.
The distance detecting assembly 2 comprises a first distance detector 20 and a second distance detector 21, apt to sense the first detection position 10 and the second detection position 11, respectively, so as to facilitate the detection of the rotation angle and the rotation direction of the knob 1, respectively.
In this embodiment, the first detection site 10 may have a groove shape or a protrusion shape, and the second detection site 11 may have a groove shape, a protrusion shape, or a step shape.
Here, the first distance detector 20 and the second distance detector 21 may be distance sensors. In order to improve the accuracy of the rotation angle of the knob 1 as much as possible on the premise that the first detection position 10 and the second detection position 11 can be detected, it is preferable that the length of the sensing member of the distance sensor is smaller than the length of the first detection position 10 and smaller than the length of the second detection position 11, and the width of the sensing member is equal to the width of the first detection position 10 and equal to the width of the second detection position 11.
The detection accuracy of the rotation angle of the knob 1 in the present embodiment depends on the sensing area of the sensing member of the distance sensor, and the detection accuracy of the conventional magnetic angle sensor depends on the magnetic field region of the magnet in the magnetic angle sensor. However, the magnetic field area of the magnet is usually larger, so the detection accuracy of the conventional magnetic-sensing angle sensor is worse than that of the distance sensor applied in the embodiment, and the rotation angle of the knob 1 detected by the rotation detection method of the knob provided in the embodiment is more accurate.
Example two:
as shown in fig. 7, the present embodiment provides a knob assembly including a knob 1 and a distance detection assembly 2. The knob 1 is provided with a plurality of first detection positions 10 distributed in an annular array. The distance detection assembly 2 is arranged on one side of a plane where the first detection positions 10 are located at intervals, and is used for sequentially sensing the first detection positions 10 in the rotation process of the knob 1 so as to calculate the rotation angle of the knob 1.
After the knob 1 in the knob assembly rotates, the distance detecting assembly 2 may sequentially sense a plurality of first detecting positions 10. Because the plurality of first detection positions 10 are distributed in the annular array shape, the included angle between each two adjacent first detection positions 10 in each group is equal, the included angle is a preset known value, and the angle of the knob 1 which is rotated by itself can be calculated by counting the detected number of the first detection positions 10 and combining the included angle.
Compared with the prior art, the knob subassembly that this embodiment provided utilizes distance detection subassembly 2 and first detection position 10 to mutually support, can detect out the angle of autorotation of knob 1, need not use the magnetic sensitive angle sensor to can prevent to receive electromagnetic interference, promote the testing result reliability.
It can be seen that the knob assembly provided by the embodiment also alleviates the technical problems that the rotation angle of the knobs 1 such as the magnetic suction knob 1 in the prior art is usually detected by the magnetic sensitive angle sensor installed inside the magnetic suction knob, but the magnetic sensitive angle sensor has high cost, is easy to be interfered by electromagnetic waves and has low reliability.
Further, as shown in fig. 7 and 8, the knob 1 is provided with a plurality of second detection sites 11 distributed along the circumferential direction of the knob 1. The distance detection assembly 2 is used for sequentially sensing a plurality of second detection positions 11 in the rotation process of the knob 1 so as to judge the rotation direction of the knob 1.
The plurality of second detection positions 11 may be distributed according to a preset radial position change rule or an axial position change rule, or the plurality of second detection positions 11 are distributed according to both the preset radial position change rule and the axial position change rule. The radial position change rule and the axial position change rule are both used for judging the rotation direction of the knob 1.
Also, in order to facilitate the determination of the rotation direction of the knob 1, it is preferable that the plurality of second detection positions 11 are distributed according to a predetermined radial position variation rule or an axial position variation rule.
After the rotation of the knob 1, the distance detection assembly 2 can also sense a plurality of second detection positions 11 in sequence, and since the plurality of second detection positions 11 are distributed according to a preset radial position change rule or an axial position change rule, and the radial position change rule or the axial position change rule is distributed to judge the rotation direction of the knob 1, the rotation direction of the knob 1 can be judged according to the change of the induction time interval or the change of the induction result of the distance detection assembly 2 based on the radial position change rule or the axial position change rule.
Therefore, the knob assembly provided by the present embodiment can also detect the rotation direction of the knob 1 by using the distance detection assembly 2 and the second detection position 11 to cooperate with each other, and similarly, a magnetic-sensing angle sensor is not needed, so that the knob assembly can be prevented from being subjected to electromagnetic interference, and the reliability of the detection result is improved.
Similar to the first embodiment, the radial position variation rule in this embodiment may also be: the second detection positions 11 are arranged at equal intervals, and the arrangement position of each second detection position 11 corresponds to the non-intermediate position between every two adjacent first detection positions 10 in each group in sequence.
At this time, the process of determining the rotation direction of the knob 1 by using the radial position variation law is the same as the process of determining the rotation direction of the knob 1 by using the radial position variation law in the first embodiment, and is not described herein again.
Similar to the first embodiment, the change rule of the axial position in this embodiment may also be: each second detection position 11 is step-shaped, and the plurality of second detection positions 11 are continuously connected in an ascending manner in a clockwise direction or a counterclockwise direction.
At this time, the process of determining the rotation direction of the knob 1 by using the above-mentioned axial position change rule is the same as the process of determining the rotation direction of the knob 1 by using the above-mentioned axial position change rule in the first embodiment, and is not described herein again.
Similar to the first embodiment, the radial position variation rule in this embodiment may also be: the spacing between two adjacent second detection bits 11 in the plurality of second detection bits 11 is changed in a clockwise direction or a counterclockwise direction.
At this time, the process of determining the rotation direction of the knob 1 by using the radial position variation law is the same as the process of determining the rotation direction of the knob 1 by using the radial position variation law in the first embodiment, and is not described herein again.
In the present embodiment, as shown in fig. 7, the distance detecting assembly 2 is used for being mounted on the panel 3 of the external electrical appliance, and the knob 1 is provided with a magnet 4, and the magnet 4 is used for being mutually attracted and connected with the magnet 4 on the panel 3 of the external electrical appliance, so that the knob 1 can be attached to the panel 3 of the external electrical appliance.
When being provided with magnet 4 on the knob 1, the knob 1 that this embodiment provided is the knob 1 of just inhaling promptly, and the process is more convenient nimble in the ann dismantlement between knob 1 and the outside electrical apparatus in this embodiment this moment.
As shown in fig. 8, the knob 1 may further include a rotating body 5 and a fixed body 6, and the rotating body 5 is rotatably coupled to one side of the fixed body 6. The plurality of first detection positions 10 are mounted on the rotating body 5 on the side close to the fixed body 6, and the distance detection unit 2 is mounted on the fixed body 6 on the side close to the rotating body 5.
Wherein the fixing body 6 can be mounted on an external appliance. When the knob assembly provided by this embodiment is used, the rotating body is firstly rotated on the fixed body 6, and after the rotating body 5 rotates, the distance detection assembly 2 can sequentially sense the plurality of first detection positions 10, and the rotation angle of the rotating body can be calculated by counting the detected number of the first detection positions 10 and combining the known included angle between two adjacent first detection positions 10.
As shown in fig. 8, the fixing body may be mounted with a magnet 4, and the magnet 4 is used to attract and connect with a magnet on a panel of the external appliance, so that the fixing body 6 can be attached to the panel of the external appliance.
The distance detecting assembly 2 in the knob assembly provided in this embodiment may also include a first distance detector 20 and a second distance detector 21, where the first distance detector 20 is configured to detect the first detection position 10, and the second distance detector 21 is configured to detect the second detection position 11.
When the distance detecting assembly 2 is mounted on the panel 3 of the external electrical appliance, the first distance detector 20 and the second distance detector 21 can be further connected to the control system 30 in the external electrical appliance, and the control system 30 of the external electrical appliance can automatically calculate the rotation angle of the knob 1 and determine the rotation direction of the knob 1 according to the detection results of the first distance detector 20 and the second distance detector 21.
Or, when the knob 1 includes the rotating body 5 and the fixed body 6, the main controller 7 may be installed in the fixed body 6, the first distance detector 20 and the second distance detector 21 are both connected to the main controller 7, and the main controller 7 is configured to calculate a rotation angle of the rotating body 5 and determine a rotation direction of the rotating body 5 according to detection results of the first distance detector 20 and the second distance detector 21. The master controller 7 may be a programmable logic controller.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.