Knob switch detection system and electronic product

The rotary switch system addresses the I/O port limitation in processors by outputting distinct voltages based on rotation direction, enhancing electronic product functionality and reducing resource usage.

CN223107991UActive Publication Date: 2025-07-15惠州市创米智汇物联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421519891.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2025-07-15
Estimated Expiration
2034-06-28

AI Technical Summary

Technical Problem

In the prior art, the I/O port resources of the processor limit the expansion of electronic product functions, increasing the number of processors will increase the design difficulty and are not conducive to miniaturization.

Method used

Design a knob switch detection system, through the bidirectional rotation of the knob switch, the detection circuit outputs different voltages or voltage sequences, and realizes multiple functions of electronic products, saving the processor's I/O port resources.

Benefits of technology

Through the knob switch detection system, two different signals can be output through one I/O port, expanding the functions of electronic products, reducing the number of parts and reducing costs, which is conducive to miniaturization of electronic products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223107991U_ABST
    Figure CN223107991U_ABST
Patent Text Reader

Abstract

The utility model provides a knob switch detection system and an electronic product. The knob switch detection system comprises a knob switch and a detection circuit. The knob switch can rotate bidirectionally and comprises a first working part, a second working part and a third working part, and the third working part is fixedly arranged relative to the second working part. And when the knob switch rotates, the first working part respectively establishes a path with the second working part and the third working part, or simultaneously establishes a path with the second working part and the third working part. The input end of the detection circuit is electrically connected with the second working part and the third working part, the detection circuit comprises an output end, and when the knob switch rotates in different directions, the output end outputs different voltages or voltage sequences. According to the embodiment of the utility model, the detection circuit can output different signals through one output end, and the output end can be connected to one I / O port of the processor, so that the resources of the I / O port can be saved, and the functions of electronic products can be expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model generally relates to the technical field of electronic products, and in particular to a knob switch detection system and an electronic product. Background Art

[0002] With the development of technology and the increasing of user requirements, the functions of electronic products are becoming more and more abundant. Processors such as single-chip microcomputers and Raspberry Pi, etc., the number of I / O ports (used to define different inputs and outputs) in the processor is limited. For example, the 8051 chip only has 32 I / O ports, which limits the further increase of the functions of electronic products. For example, when inputting two different signals, they need to be respectively connected to different I / O ports on the processor, and the processor executes corresponding commands according to the inputs of different I / O ports.

[0003] For electronic products that implement multiple functions, the resource limitation of the I / O ports on the processor is relatively large. If the number of processors is increased, it will not only increase the design difficulty of the electronic products, but also be not conducive to the miniaturization development of the electronic products, and cannot meet the needs of users.

[0004] The content in the background art part is only the technology known to the inventor, and does not of course represent the prior art in this field. Summary of the Utility Model

[0005] In view of one or more defects in the prior art, the utility model provides a knob switch detection system, which is characterized by comprising:

[0006] A knob switch, the knob switch can rotate bidirectionally, and comprises:

[0007] A first working component;

[0008] A second working component and a third working component, the third working component is fixedly arranged relative to the second working component;

[0009] The first working component is configured to respectively establish a path with the second working component and the third working component, or simultaneously establish a path with the second working component and the third working component when the knob switch rotates;

[0010] A detection circuit, the input ends of the detection circuit are respectively electrically connected to the second working component and the third working component, and the detection circuit comprises an output end, and the detection circuit is configured to output different voltages or voltage sequences at the output end when the knob switch rotates in different directions.

[0011] According to one aspect of the utility model, the knob switch further comprises a coding disk, and the first working component is electrically connected to the second working component and the third working component through the coding disk.

[0012] According to one aspect of the present utility model, the coding disk includes:

[0013] A base disk, on which a plurality of vacant parts are uniformly arranged at intervals, and the first working component is fixedly arranged on the base disk.

[0014] When the vacant part faces the second working component and / or the third working component, the first working component is disconnected from the second working component and / or the third working component; at other positions, the first working component is electrically connected to the second working component and / or the third working component.

[0015] According to one aspect of the present utility model, the first working component includes a light emitter, and the second working component and the third working component respectively include light receivers, so as to be able to establish an optical signal path with the light emitter, and the positions of the first working component, the second working component and the third working component correspond to each other.

[0016] The knob switch further includes a coding disk, on which a plurality of vacant parts are uniformly arranged at intervals. The coding disk is arranged in the optical path between the first working component, the second working component and the third working component, and rotates with the knob switch to block the optical signal path or make the optical signal path communicate.

[0017] According to one aspect of the present utility model, the level of the first working component is a fixed high level or a fixed low level.

[0018] According to one aspect of the present utility model, the second working component and the third working component are set at the same level.

[0019] According to one aspect of the present utility model, the detection circuit includes:

[0020] A subtractor circuit, the input ends of the subtractor circuit are respectively connected to the second working component and the third working component, and the subtractor circuit is configured to output the difference of the voltages under the joint action of the voltage of the second working component and the voltage of the third working component.

[0021] According to one aspect of the present utility model, the detection circuit further includes:

[0022] An adder circuit, one of the input ends of the adder circuit is connected to the output port of the subtractor circuit. The adder circuit is configured to output the sum of the voltages under the joint action of the voltage of the output port of the subtractor circuit and a preset voltage value, and the voltage output by the adder circuit is greater than or equal to 0.

[0023] According to one aspect of the present utility model, the knob switch detection system further includes a power supply, which is connected to the adder circuit and configured to input a preset voltage value to one of the input terminals of the adder circuit.

[0024] According to one aspect of the present utility model, the paths established between the first working component and the second and third working components are electrical connection paths, optical signal paths, or electromagnetic signal paths.

[0025] According to one aspect of the present utility model, the present utility model further includes an electronic product, which includes:

[0026] The knob switch detection system as described above; and

[0027] A processor, which communicates with the knob switch detection system and is configured to execute preset commands according to the output of the knob switch detection system.

[0028] According to one aspect of the present utility model, the electronic product further includes:

[0029] An output device, which communicates with the processor, and the output device includes an image output module and / or an audio output module; the knob switch detection system further includes a power supply, which is electrically connected to the processor and / or the output device.

[0030] Compared with the prior art, the embodiments of the present utility model provide a knob switch detection system. When the knob switch rotates in different directions, the first working component can respectively establish different paths with the second and third working components. The detection circuit can output different voltages or voltage sequences according to the rotation direction of the knob switch. The detection circuit outputs the two rotation directions of the knob switch in different ways. The detection circuit can output two different signals through one output terminal, and the output terminal of the detection circuit can be connected to an I / O port of the processor, which is beneficial to saving the I / O port resources of the processor and expanding the functions of the electronic product.

[0031] The present utility model further includes an embodiment of an electronic product. By applying the aforementioned knob switch detection system, the processor can execute corresponding commands according to different signals output by the knob switch detection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings are used to provide a further understanding of the present utility model and constitute a part of the specification. Together with the embodiments of the present utility model, they are used to explain the present utility model and do not constitute a limitation to the present utility model. In the drawings:

[0033] Figure 1It is a structural block diagram of a knob switch detection system in some embodiments of the present utility model;

[0034] Figure 2 It is a schematic diagram of a knob switch in some embodiments of the present utility model;

[0035] Figure 3A and Figure 3B It is a schematic diagram of the voltage change of the second working component and the third working component when the knob switch rotates in different directions in some embodiments of the present utility model;

[0036] Figure 4 It is a schematic diagram of a knob switch in some other embodiments of the present utility model;

[0037] Figure 5 It is a circuit diagram of a detection circuit in some embodiments of the present utility model;

[0038] Figure 6 It is a circuit diagram of a detection circuit in some other embodiments of the present utility model;

[0039] Figure 7 It is a structural block diagram of an electronic product in some embodiments of the present utility model. Detailed implementation manners

[0040] In the following, only some exemplary embodiments are simply described. As those skilled in the art can recognize, the described embodiments can be modified in various different ways without departing from the spirit or scope of the present utility model. Therefore, the drawings and the description are considered to be exemplary in nature rather than restrictive.

[0041] In the description of the present utility model, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. They are only for the convenience of describing the present utility model and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation of the present utility model. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present utility model, "a plurality" means two or more unless otherwise specifically defined.

[0042] In the description of the present utility model, it should be noted that unless otherwise clearly defined and limited, the terms "installation", "connection", and "coupling" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a connection that allows mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, and it can be the internal communication between two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present utility model can be understood according to specific circumstances.

[0043] In the present utility model, unless otherwise clearly defined and limited, the first feature being "above" or "below" the second feature may include the direct contact between the first and second features, or may include the situation where the first and second features are not in direct contact but in contact through other features therebetween. Moreover, the first feature being "above", "over", and "on" the second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the horizontal height of the first feature is higher than that of the second feature. The first feature being "below", "under", and "beneath" the second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the horizontal height of the first feature is lower than that of the second feature.

[0044] The following disclosure provides many different embodiments or examples for implementing different structures of the present utility model. To simplify the disclosure of the present utility model, the components and settings of specific examples are described below. Of course, they are merely examples and are not intended to limit the present utility model. In addition, the present utility model may repeat reference numerals and / or reference letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the present utility model provides examples of various specific processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.

[0045] The embodiments of the present utility model will be described below with reference to the accompanying drawings. It should be understood that the embodiments described herein are only for the purpose of illustrating and explaining the present utility model, and are not used to limit the present utility model.

[0046] Figure 1 The structural block diagram of the knob switch detection system 1 in an embodiment according to the present utility model is shown. The following will be combined with Figure 1 to describe the knob switch detection system 1.

[0047] As Figure 1As shown in the figure, the knob switch detection system 1 in this embodiment includes a knob switch 11 and a detection circuit 12. The knob switch 11 is configured to be rotatable in both directions. The travel of the knob switch 11 when rotating in one direction may be the same as or different from the travel when rotating in the opposite direction. The travel of the knob switch 11 when rotating in any one direction may be less than or equal to 360°, or may be greater than 360°.

[0048] The knob switch 11 includes a first working component 111, a second working component 112, and a third working component 113, where the positions of the second working component 112 and the third working component 113 are relatively fixed. The first working component 111 is configured such that when the knob switch 11 rotates (it can rotate in any one direction), the first working component 111 respectively establishes a connection path with the second working component 112 and the third working component 113, or simultaneously establishes a connection path with the second working component 112 and the third working component 113 ( Figure 1 shown by a dashed line in the figure).

[0049] Specifically, the physical structure of the knob switch 11, for example, includes a fixed part held in a fixed position and a rotating part that can rotate relative to the fixed part. The first working component 111 can be arranged on the fixed part, and the positions of the second working component 112 and the third working component 113 are kept fixed and arranged on the rotating part. When the knob switch 11 rotates in any one direction, the first working component 111 rotates relative to the second working component 112 and the third working component 113, and the first working component 111 and the second working component 112 establish a connection path, or the first working component 111 and the third working component 113 establish a connection path, or the first working component 111 simultaneously establishes a connection path with the second working component 112 and the third working component 113. In some other embodiments of the present invention, the first working component 111 can also be arranged on the rotating part, and the second working component 112 and the third working component 113 are arranged on the fixed part. The relationship of the first working component 111 establishing a connection path with the second working component 112 and the third working component 113 will not be elaborated here.

[0050] According to some other embodiments of the present invention, the position of the first working component 111 and the positions of the second working component 112 and the third working component 113 can be set to be relatively fixed, and the first working component 111 establishes a connection path with the second working component 112 and the third working component 113 through a coding disk, which will be specifically described in subsequent embodiments.

[0051] In different embodiments of the present invention, the connection path established between the first working component 111 and the second working component 112 and the third working component 113 can be any one of an electrical connection, an optical signal connection, or an electromagnetic signal connection, which will be specifically described in subsequent embodiments.

[0052] The detection circuit 12 has an input terminal 121 (see Figure 5 ), and an output terminal 122 (see Figure 5 ). The input terminal 121 of the detection circuit 12 is electrically connected to the second working component 112 and the third working component 113 respectively. In this embodiment, the detection circuit 12 is configured such that when the knob switch 11 rotates in different directions, the output terminal 122 can output different voltages or voltage sequences.

[0053] In this embodiment, the detection circuit 12 can output different voltage signals through an output terminal 122 according to the rotation direction of the knob switch 11. The output terminal 122 of the detection circuit 12 can be connected to an I / O port on the processor, and two signals can be input to the processor through an I / O port, saving I / O port resources, facilitating the expansion of the functions of electronic products, reducing the number of components, reducing costs, and facilitating the miniaturization of electronic products.

[0054] Figure 2 The structure of the knob switch 11 in some embodiments of the present invention is shown. In this embodiment, the knob switch 11 further includes a coding disk 114, and the first working component 111 is electrically connected to the second working component 112 and the third working component 113 through the coding disk 114.

[0055] Specifically, the coding disk 114 can be set to be conductive, and the first working component 111 can be set to be electrically connected to the coding disk 114. For example, the first working component 111 is fixedly arranged on the coding disk 114, or through a device such as an electric slip ring, the first working component 111 is always kept electrically connected to the coding disk 114.

[0056] The coding disk 114 is set to be rotatable relative to the second working component 112 and the third working component 113. Preferably, the second working component 112 and the third working component 113 are arranged on a fixed part to improve the stability of the electrical connection between the second working component 112 and the third working component 113 and the input terminal 121 of the detection circuit 12, and the coding disk 114 is arranged on a rotating part. When the coding disk 114 rotates relative to the second working component 112 and the third working component 113 to a preset position, the first working component 111 can be electrically connected to the second working component 112 and the third working component 113.

[0057] According to a preferred embodiment of the present invention, as Figure 2 shown, the coding disk 114 includes a base disk 1141, and a plurality of void parts 1142 are arranged on the base disk 1141. Preferably, the plurality of void parts 1142 are uniformly arranged on the base disk 1141 in the circumferential direction. The first working component 111 is fixedly arranged on the base disk 1141 and is kept electrically connected to the base disk 1141.

[0058] In this embodiment, the substrate 1141 is configured to be conductive. When the vacant portion 1142 faces the second working component 112, the first working component 111 and the second working component 112 are disconnected. Similarly, when the vacant portion 1142 faces the third working component 113, the first working component 111 and the third working component 113 are disconnected. When the vacant portion 1142 faces both the second working component 112 and the third working component 113, for example, when the position of a vacant portion 1142 faces the positions of the second working component 112 and the third working component 113, or when the second working component 112 and the third working component 113 respectively face different vacant portions 1142, the first working component 111 is disconnected from both the second working component 112 and the third working component 113.

[0059] During rotation, other positions of the base plate 1141 except the vacant portion 1142 can contact the second working component 112 and / or the third working component 113. When other positions of the base plate 1141 except the vacant portion 1142 face the second working component 112 and / or the third working component 113, the first working component 111 is electrically connected to the second working component 112 and / or the third working component 113.

[0060] According to a specific embodiment of the present invention, the level of the first working component 111 is a fixed high level or low level. The high level or low level indicates that the first working component 111 is at a high level or low level relative to the second working component 112 and the third working component 113. Further, the second working component 112 and the third working component 113 can be set at the same level to simplify the operation and circuit design.

[0061] Taking the first working component 111 being at a high level as an example, when the first working component 111 and the second working component 112 are electrically connected, the voltage at the position of the second working component 112 is pulled up to be equal to that of the first working component 111. When the first working component 111 and the third working component 113 are electrically connected, the voltage at the position of the third working component 113 is pulled up to be equal to that of the first working component 111.

[0062] In a preferred embodiment of the present invention, as Figure 2 shown, as the coding disk 114 rotates relative to the second working component 112 and the third working component 113, the voltages of the second working component 112 and the third working component 113 show periodic changes. Specifically, as Figure 3A and Figure 3B shown.

[0063] For example, when Figure 2When the coded disk 114 shown rotates clockwise relative to the second working part 112 and the third working part 113, the base disk 1141 first faces the second working part 112, and the first working part 111 is electrically connected to the second working part 112. As Figure 3A shown, the voltage of the second working part 112 increases, while the third working part 113 is at a low voltage, for example, 0.

[0064] As the coded disk 114 rotates further, the base disk 1141 faces both the second working part 112 and the third working part 113 at the same time, and the voltages of the second working part 112 and the third working part 113 are both raised to be equal to that of the first working part 111.

[0065] When the base disk 1141 rotates further to face the third working part 113, and the vacant part 1142 faces the second working part 112, the voltage of the second working part 112 decreases, and the voltage of the third working part 113 remains high.

[0066] When the coded disk 114 continues to rotate, for example, rotates at a constant speed, the voltages of the second working part 112 and the third working part 113 show Figure 3A the periodic change shown. When the coded disk 114 rotates clockwise, the voltage of the second working part 112 first increases and then decreases, and the voltage of the third working part 113 increases later and then decreases.

[0067] Similarly, when the knob switch 11 rotates in the opposite direction, for example Figure 2 the coded disk 114 in Figure 3B rotates counterclockwise relative to the second working part 112 and the third working part 113. As

[0068] Figures 2 - 3B shown, the voltage of the third working part 113 first increases and then decreases, and the voltage of the second working part 112 increases later and then decreases. In this embodiment, the rotation direction of the knob switch 11 can be judged according to the sequence of voltage changes in the second working part 112 and the third working part 113. Further, when controlling the rotation of the knob switch 11, at least ensure that the voltage of one of the second working part 112 and the third working part 113 changes.

[0069] Figure 4 shows a schematic diagram of the knob switch 11 in some other embodiments of the present invention. The following will describe the knob switch 11 in conjunction with Figure 4 this.

[0070] In this embodiment, the first working component 111 includes a light emitter, and the second working component 112 and the third working component 113 each include a light receiver. An optical signal connection can be established between the light emitter and the light receiver. The position of the first working component 111 corresponds to the positions of the second working component 112 and the third working component 113. For example, the first working component 111 covers the second working component 112 and the third working component 113 so that a path can be established between the first working component 111 and the second working component 112 and the third working component 113.

[0071] The knob switch 11 further includes a coding disk 114, on which a plurality of void portions 1142 are provided. Preferably, the void portions 1142 are evenly arranged in the circumferential direction of the coding disk 114. And the coding disk 114 is arranged in the optical path between the first working component 111 and the second working component 112 and the third working component 113.

[0072] When the knob switch 11 rotates, the coding disk 114 rotates relative to the first working component 111, the second working component 112, and the third working component 113. When the void portion 1142 faces the second working component 112 and / or the third working component 113, the optical signal path between the first working component 111 and the second working component 112 and / or the third working component 113 is connected. When other positions of the coding disk 114 except the void portion 1142 face the second working component 112 and / or the third working component 113, the optical signal path between the first working component 111 and the second working component 112 and / or the third working component 113 is disconnected.

[0073] The light receivers in the second working component 112 and the third working component 113 may include photoelectric sensors, which can output different voltages to the detection circuit 12 when receiving and not receiving optical signals. By providing the void portion 1142 at a preset position on the coding disk 114, the voltage change conditions of the second working component 112 and the third working component 113 can be changed, for example, to form Figure 3A and Figure 3B the shown voltage change period.

[0074] According to a preferred embodiment of the present invention, the detection circuit 12 includes a subtractor circuit 123. The input terminals 121 of the subtractor circuit 123 (i.e., the input terminals 121 of the detection circuit 12) are respectively connected to the second working component 112 and the third working component 113, and the subtractor circuit 123 is arranged to be able to output the difference between the voltage of the second working component 112 and the voltage of the third working component 113. In different embodiments of the present invention, either the voltage of the second working component 112 or the voltage of the third working component 113 can be used as the minuend, and the other can be used as the subtrahend. For exampleFigure 5 The medium resistors R1-R4 and the operational amplifier U1 form a subtractor circuit 123. Specifically, for simplicity of calculation, the resistance values of resistors R1 and R2 can be set to be equal, and the resistance values of resistors R3 and R4 are set to be equal, where Figure 5 the voltage output by the subtractor circuit 123 shown is the voltage of the third working component 113 minus the voltage of the second working component 112.

[0075] Taking the first working component 111 as a high level as an example, for example, the voltage of the first working component 111 is 1.8V. When the first working component 111 is disconnected from both the second working component 112 and the third working component 113, the third working component 113 is grounded, the voltage of the third working component 113 is 0, the second working component 112 is floating, the voltage of the second working component 112 is equal to the voltage output by the subtractor circuit 123, which is also 0, and the voltage output by the subtractor circuit 123 is 0.

[0076] When the knob switch 11 rotates in one direction, for example, clockwise, a path is established between the first working component 111 and the second working component 112, and when the first working component 111 and the third working component 113 are disconnected, the voltage of the second working component 112 is 1.8V, the voltage of the third working component 113 is 0, and the voltage output by the subtractor circuit 123 is -1.8V.

[0077] When the knob switch 11 continues to rotate until the first working component 111 establishes paths with both the second working component 112 and the third working component 113 at the same time, the voltages of the second working component 112 and the third working component 113 are both 1.8V, and the voltage output by the subtractor circuit 123 is 0.

[0078] When the knob switch 11 continues to rotate until the first working component 111 and the second working component 112 are disconnected, and a path is established between the first working component 111 and the third working component 113, the voltage of the second working component 112 is floating, the voltage of the second working component 112 is equal to the voltage output by the subtractor circuit 123, the voltage of the third working component 113 is 1.8V, and the voltage output by the subtractor circuit 123 is 0.9V.

[0079] According to the foregoing, when the knob switch 11 rotates clockwise, the voltage change rule of the output of the subtractor circuit 123 is 0 → -1.8V → 0 → 0.9V → 0. Similarly, when the knob switch 11 rotates counterclockwise, the voltage change rule of the output of the subtractor circuit 123 is 0 → 0.9V → 0 → -1.8V → 0. In this embodiment, when the knob switch 11 rotates in different directions, the subtractor circuit 123 outputs different voltage sequences. By judging the output of the subtractor circuit 123, the rotation direction of the knob switch 11 can be determined.

[0080] According to a preferred embodiment of the present utility model, as Figure 5 shown, the detection circuit 12 further includes an adder circuit 124. The resistors R5 - R8 and the operational amplifier U2 constitute the adder circuit 124. Specifically, for simplifying the operation, the resistance values of the resistors R5 and R6 are equal, and the resistance values of the resistors R7 and R8 are equal. One input terminal of the adder circuit 124 is connected to the output port of the subtractor circuit 123. The adder circuit 124 is configured to output the sum value of the voltage at the output port of the subtractor circuit 123 and a preset voltage value, and the voltage output by the adder circuit is greater than or equal to 0.

[0081] In a specific embodiment of the present utility model, the adder circuit 124 is loaded with a preset voltage value. One pin of the operational amplifier U2 is connected to the output port of the subtractor circuit 123 and the preset voltage value, and the other pin of the operational amplifier U2 is grounded.

[0082] Specifically, for example, the preset voltage value is 1.8V. The voltage output by the adder circuit 124 is the sum value of the voltage under the combined action of the voltage output by the subtractor circuit 123 and 1.8V, and the voltage output by the adder circuit 124 is greater than or equal to 0. For example, in the foregoing embodiment, the adder circuit 124 is set. When the knob switch 11 rotates clockwise, the voltage change rule of the output of the adder circuit 124 is 1.8V → 0 → 1.8V → 2.7 → 1.8V. When the knob switch 11 rotates counterclockwise, the voltage change rule of the output of the adder circuit 124 is 1.8V → 2.7V → 1.8V → 0 → 1.8V.

[0083] In this embodiment, setting the adder circuit 124 can avoid the situation where the detection circuit 12 outputs a negative voltage, which is beneficial to simplifying the circuit design. According to the voltage sequence output by the adder circuit 124, the rotation direction of the knob switch 11 can be determined. The output terminal of the adder circuit 124 can be used as the output terminal 122 of the detection circuit 12. Preferably, the rotation stroke of the knob switch 11 ensures that the voltage at the output terminal 122 of the detection circuit 12 completes at least one cycle of change to avoid misjudgment.

[0084] Figure 5 This only represents a specific embodiment of the present utility model. In different embodiments of the present utility model, the subtractor circuit 123 and the adder circuit 124 can also be other design forms. Correspondingly, the voltage change rules output by the subtractor circuit 123 and the adder circuit 124 will also change. For example Figure 6As shown in the figure, the subtractor circuit 123 further includes a resistor R9, where the resistance value of the resistor R9 is much smaller than the resistance values of the resistors R3 and R4. When other parameters remain unchanged, when the first working component 111 and the second working component 112 are disconnected, the second working component 112 is grounded and the voltage is 0. Correspondingly, when the knob switch 11 rotates clockwise, the voltage change law output by the subtractor circuit 123 is 0 → -1.8V → 0 → 1.8V → 0. Similarly, when the knob switch 11 rotates counterclockwise, the voltage change law output by the subtractor circuit 123 is 0 → 1.8V → 0 → -1.8V → 0.

[0085] In some other preferred embodiments of the present invention, the detection circuit 12 may further include an output circuit, where the output circuit is electrically connected to the output port of the adder circuit 124, and can output different voltage values according to the voltage sequence output by the adder circuit 124 to reduce the processor pressure. The processor can be set to execute corresponding commands according to specific voltage values.

[0086] According to the preferred embodiment of the present invention, the knob switch detection system 1 further includes a power supply 13 ( Figure 5 shown by a dashed line in the figure), the power supply 13 is electrically connected to the adder circuit 124, and is set to input a preset voltage value to an input end of the adder circuit 124. Further, in the preferred embodiment of the present invention, the power supply 13 may include a battery in an electronic product, and the power supply 13 can also supply power to other components in the electronic product. For example, the power supply 13 can convert the voltage of the battery into different voltages and output them to meet the power consumption requirements of different components.

[0087] The present invention further includes an electronic product 10, as Figure 7 shown, the electronic product 10 includes the knob switch detection system 1 and a processor 2 as described in the foregoing embodiments. The processor 2 communicates with the knob switch detection system 1, and the processor 2 is set to execute preset commands according to the output of the knob switch detection system 1. Specifically, the output end 122 of the detection circuit 12 in the knob switch detection system 1 can be connected to an I / O port in the processor 2, and the processor 2 can execute preset commands according to the voltage or voltage sequence output by the output end 122. In this embodiment, through an I / O port on the processor 2, two different commands can be recognized, saving I / O port resources.

[0088] According to the preferred embodiment of the present invention, as Figure 7 shown, the electronic product 10 further includes an output device 3. The output device 2 communicates with the processor 2, where the output device 3 can be a specific functional component. For example, the output device 3 includes an image output module and / or an audio output module, and can implement the specific functions of the electronic product 10 according to the commands executed by the processor 2.

[0089] In this embodiment, the knob switch detection system 1 further includes a power supply 13. As Figure 7 shown, the power supply 13 can be set to be electrically connected to the processor 2 and / or the output device 3 to supply power to the processor 2 and / or the output device 3.

[0090] Finally, it should be noted that the above are only embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A knob switch detection system, characterized in that, Comprising: A rotary switch, which can rotate bidirectionally and includes: A first working component; A second working component and a third working component, where the third working component is fixedly arranged relative to the second working component; The first working component is configured to establish a path with the second working component and the third working component respectively, or establish a path with the second working component and the third working component simultaneously when the rotary switch rotates; A detection circuit, the input ends of the detection circuit are electrically connected to the second working component and the third working component respectively, and the detection circuit includes an output end, and the detection circuit is configured to output different voltages or voltage sequences at the output end when the rotary switch rotates in different directions.

2. The knob switch detection system according to claim 1, characterized in that The rotary switch further includes a coding disk, and the first working component is electrically connected to the second working component and the third working component through the coding disk.

3. The knob switch detection system according to claim 2, wherein The coding disk includes: A base disk, on which a plurality of vacant parts are evenly spaced, and the first working component is fixedly arranged on the base disk, When the vacant part is opposite to the second working component and / or the third working component, the first working component is disconnected from the second working component and / or the third working component; in other positions, the first working component is electrically connected to the second working component and / or the third working component.

4. The knob switch detection system according to claim 1, wherein The first working component includes a light emitter, and the second working component and the third working component respectively include light receivers, so as to be able to establish an optical signal path with the light emitter, and the positions of the first working component, the second working component and the third working component correspond to each other; The rotary switch further includes a coding disk, on which a plurality of vacant parts are evenly spaced, and the coding disk is arranged in the optical path between the first working component and the second working component and the third working component, and rotates with the rotary switch to block the optical signal path or make the optical signal path connected.

5. The knob switch detection system according to claim 2, wherein The level of the first working component is a fixed high level or low level.

6. The knob switch detection system according to claim 5, wherein, The second working component and the third working component are set at the same level.

7. The knob switch detection system according to any one of claims 1-6, characterized in that, The detection circuit includes: A subtractor circuit, the input ends of the subtractor circuit are connected to the second working component and the third working component respectively, and the subtractor circuit is configured to output the difference in voltage under the joint action of the voltage of the second working component and the voltage of the third working component.

8. The knob switch detection system according to claim 7, wherein The detection circuit further includes: An adder circuit, one of the input ends of the adder circuit is connected to the output port of the subtractor circuit, the adder circuit is configured to output the sum of the voltage at the output port of the subtractor circuit and a preset voltage value, and the voltage output by the adder circuit is greater than or equal to 0.

9. The knob switch detection system according to claim 8, characterized in that, It further includes a power supply, the power supply is connected to the adder circuit and is configured to input a preset voltage value to one of the input ends of the adder circuit.

10. The knob switch detection system according to any one of claims 1-6, characterized in that, The path established between the first working component and the second working component and the third working component is an electrical connection path, an optical signal path or an electromagnetic signal path.

11. An electronic product, characterized in that, Comprising: A knob switch detection system according to any one of claims 1-10; and a processor, the processor communicating with the knob switch detection system and configured to execute a preset command according to the output of the knob switch detection system.

12. The electronic product according to claim 11, characterized in that Further comprising: an output device, the output device communicating with the processor, and the output device including an image output module and / or an audio output module; the knob switch detection system further includes a power supply, the power supply being electrically connected to the processor and / or the output device.