Detection circuit, device and keyboard
By designing a detection circuit that is compatible with mechanical shafts and magnetic shafts, the problem that the keyboard detection circuit in the prior art is not compatible with signal detection of different types of shaft bodies is solved, and flexible detection of different types of shaft bodies is realized, and the applicability of the keyboard is enhanced.
Patent Information
- Application Number
- CN202421793915.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2034-07-29
AI Technical Summary
The existing keyboard detection circuit is not compatible with signal detection of different types of shaft bodies, which makes it impossible for users to replace different types of keyboards on the original basis.
A detection circuit is designed, including multiple guide modules, pull-up modules, switch modules and control modules, which are compatible with signal detection of mechanical shafts and magnetic shafts. The guide cylinder module realizes detection of different shaft bodies through Hall elements and guide cylinder elements, and the pull-up module prevents the occurrence of high resistance states.
Compatible detection of different types of shaft bodies is achieved, and users can install mechanical shaft or magnetic shaft keys as needed, enhancing the flexibility and applicability of the keyboard.
Smart Images

Figure CN222914165U_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic circuits, and particularly relates to a detection circuit, a device, and a keyboard. Background Art
[0002] Current keyboards have both advantages and disadvantages, and users can only measure which keyboard is more suitable for themselves when choosing a keyboard. After a user selects one of them, it is impossible to change the type of the keyboard by replacing other shaft bodies on the original basis. Ultimately, it is a problem that the existing keyboards cannot be compatible with signal detection. Therefore, a detection circuit that can be compatible with signal detection of different types of shaft bodies is needed. Summary of the Utility Model
[0003] The purpose of this application is to provide a detection circuit, aiming to solve the problem that the current keyboard detection circuit cannot be compatible with signal detection of different shaft bodies.
[0004] The first aspect of the embodiment of this application provides a detection circuit for keyboard keys, including:
[0005] A plurality of guide cylinder modules, which are used to install a first shaft body or a second shaft body; when the guide cylinder module installs the first shaft body and stops inputting the first power supply voltage, a first voltage signal is output according to the first pull-up voltage, and when the first shaft body is pressed to a first preset position, a second voltage signal is output; when the guide cylinder module installs the second shaft body and inputs the first power supply voltage, a third voltage signal is output, and when the second shaft body is pressed, a fourth voltage signal is output, and the magnitude of the fourth voltage signal is related to the distance between the second shaft body and the base of the guide cylinder module;
[0006] A pull-up module, electrically connected to the plurality of guide cylinder modules, for outputting the first pull-up voltage;
[0007] A switch module, electrically connected to the plurality of guide cylinder modules, for conducting when a first switch signal is input and outputting a first power supply voltage; and
[0008] A control module, electrically connected to the plurality of guide cylinder modules, for determining whether the key corresponding to the keyboard key installing the first shaft body is pressed and triggered according to the first voltage signal and the second voltage signal, and determining whether the key corresponding to the keyboard key installing the second shaft body is pressed and triggered according to the third voltage signal and the fourth voltage signal;
[0009] Wherein, the first shaft body is a mechanical shaft, and the second shaft body is a magnetic shaft.
[0010] In an alternative embodiment, the guide cylinder module includes a Hall element, a guide cylinder element, and a base, and both the Hall element and the guide cylinder element are arranged on the base;
[0011] The Hall element is configured to output the third voltage signal and the fourth voltage signal according to the distance from the second shaft body and the first power supply voltage.
[0012] The guide cylinder element is electrically connected to the Hall element and is configured to mount the first shaft body or the second shaft body, input the first power supply voltage and the first pull-up voltage, output the first voltage signal and the second voltage signal, and transfer the third voltage signal and the fourth voltage signal.
[0013] In an alternative embodiment, the control module includes a main control element and a detection element.
[0014] The main control element outputs a detection signal and determines whether the key corresponding to the keyboard key is pressed and triggered according to the detection signal and the trigger signal.
[0015] The detection element is electrically connected to the main control element and is configured to transfer, as the trigger signal, the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal input by the corresponding guide cylinder module to the main control element according to the detection signal.
[0016] In an alternative embodiment, the switch module includes a first resistor and a first field-effect transistor.
[0017] The first end of the first resistor is connected to the base of the first field-effect transistor. The second end of the first resistor is configured to input the first switch signal. The emitter of the first field-effect transistor is configured to input the power supply voltage. The collector of the first field-effect transistor is configured to output the first power supply voltage.
[0018] In an alternative embodiment, the pull-up module includes a second resistor.
[0019] The first end of the second resistor is configured to input the power supply voltage. The second end of the second resistor is configured to output the first pull-up voltage.
[0020] In an alternative embodiment, the guide cylinder element includes a first guide cylinder, a second guide cylinder, and a third guide cylinder.
[0021] The first guide cylinder, the first pin of the first shaft body, the first pin of the second shaft body, and the power ground are commonly connected. The second guide cylinder, the second pin of the first shaft body, and the second pin of the second shaft body are commonly connected. The second guide cylinder is further configured to output the first voltage signal and the second voltage signal and transfer the third voltage signal and the fourth voltage signal. The third guide cylinder is connected to the third pin of the second shaft body and is configured to input the first power supply voltage.
[0022] In one alternative embodiment, the main control element includes a main control chip;
[0023] The first output pin, the second output pin, the third output pin, and the fourth output pin of the main control chip are used to output the detection signal; the first input pin and the second input pin of the main control chip are used to input the trigger signal.
[0024] In one alternative embodiment, the detection element includes a first multiplexing chip and a second multiplexing chip;
[0025] The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin, and the sixth input pin of the first multiplexing chip are used to input the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal of the corresponding guide cylinder module, and the seventh input pin, the eighth input pin, the ninth input pin, and the tenth input pin of the first multiplexing chip are used to input the detection signal; the output pin of the first multiplexing chip is used to output the trigger signal;
[0026] The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin, and the sixth input pin of the second multiplexing chip are used to input the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal of the corresponding guide cylinder module, and the seventh input pin, the eighth input pin, the ninth input pin, and the tenth input pin of the second multiplexing chip are used to input the detection signal; the output pin of the second multiplexing chip is used to output the trigger signal.
[0027] The second aspect of the present application further provides a detection device, including the detection circuit described in any one of the above items.
[0028] The third aspect of the present application further provides a keyboard, including the detection circuit described in any one of the above items, and the detection circuit is used to detect keyboard keys.
[0029] The beneficial effects of the embodiments of the present utility model compared with the prior art are as follows: In this solution, by setting the guide cylinder module to be compatible with the detection of mechanical axis and magnetic axis keyboard keys, and at the same time, by setting the pull-up module, it is possible to prevent the high impedance state from occurring when the guide cylinder module installs the first shaft body, so that the first voltage signal and the second voltage signal output cannot be distinguished by the control module, enabling the user to install mechanical axis or magnetic axis keys as needed on the keyboard applying the detection circuit of this embodiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1Schematic block diagram of the detection circuit provided by the embodiment of the present application;
[0031] Figure 2 Circuit schematic diagrams of multiple guide cylinder modules, pull-up modules, and switch modules provided by the embodiment of the present application;
[0032] Figure 3 Circuit schematic diagram of the main control element provided by the embodiment of the present application;
[0033] Figure 4 Circuit schematic diagram of the detection element provided by the embodiment of the present application. Detailed implementation manners
[0034] In order to make the technical problems, technical solutions, and beneficial effects to be solved by the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] Figure 1 The first exemplary schematic block diagram of the detection circuit provided by the embodiment of the present application is shown. For the convenience of description, only the parts related to this embodiment are shown and are described in detail as follows:
[0036] A detection circuit for a keyboard key, including multiple guide cylinder modules 110, a pull-up module 120, a switch module 130, and a control module 140.
[0037] Multiple guide cylinder modules 110, the guide cylinder modules (shown as 111, 112... 11N in the figure) are used to install the first shaft body or the second shaft body; when the guide cylinder module installs the first shaft body and stops inputting the first power supply voltage, a first voltage signal is output according to the first pull-up voltage, and a second voltage signal is output when the first shaft body is pressed to the first preset position; when the guide cylinder module installs the second shaft body and inputs the first power supply voltage, a third voltage signal is output, and a fourth voltage signal is output when the second shaft body is pressed, and the magnitude of the fourth voltage signal is related to the distance between the second shaft body and the base of the guide cylinder module;
[0038] The pull-up module 120 is electrically connected to the multiple guide cylinder modules 110 and is used to output the first pull-up voltage;
[0039] The switch module 130 is electrically connected to the multiple guide cylinder modules 110 and is used to conduct when a first switch signal is input and output a first power supply voltage; and
[0040] A control module 140, electrically connected to the plurality of guide cylinder modules 110, is configured to determine whether a key corresponding to the keyboard key on which the first shaft body is installed is pressed and triggered according to the first voltage signal and the second voltage signal, and determine whether a key corresponding to the keyboard key on which the second shaft body is installed is pressed and triggered according to the third voltage signal and the fourth voltage signal.
[0041] Wherein, the first shaft body is a mechanical shaft, the second shaft body is a magnetic shaft, the second shaft body includes a permanent magnet, a Hall element is provided on the base of the guide cylinder module, and the distance between the second shaft body and the base of the guide cylinder module is equivalent to changing the magnetic field intensity of the permanent magnet passing through the Hall element.
[0042] In this embodiment, the guide cylinder module can be installed with the first shaft body or the second shaft body according to needs, but only one of the shaft bodies can be installed in a single guide cylinder module at the same time.
[0043] When the plurality of guide cylinder modules 110 are all installed with the first shaft body, when the first shaft body corresponding to the guide cylinder module is not pressed, the guide cylinder module outputs a first voltage signal according to the first pull-up voltage, and the control module 140 determines that the keyboard key corresponding to the guide cylinder module is not pressed and triggered according to the first voltage signal; when the first shaft body corresponding to the guide cylinder module is pressed to a first preset position, the guide cylinder module outputs a second voltage signal, and the control module 140 determines that the keyboard key corresponding to the guide cylinder module is pressed and triggered according to the second voltage signal;
[0044] When the plurality of guide cylinder modules 110 are all installed with the second shaft body, by inputting a first switch signal to the switch module 130, the switch module 130 outputs a first supply voltage to the guide cylinder module; at this time, when the second shaft body corresponding to the guide cylinder module is not pressed, the guide cylinder module outputs a third voltage signal to the control module 140, and the control module 140 determines that the keyboard key corresponding to the guide cylinder module is not pressed and triggered according to the third voltage signal; when the second shaft body corresponding to the guide cylinder module is pressed, the distance between the second shaft body and the base of the guide cylinder module becomes smaller, and the third voltage signal changes to form a fourth voltage signal. At this time, the guide cylinder module outputs the fourth voltage signal. When the fourth voltage signal reaches the preset value of the control module 140, the key corresponding to the second shaft body is pressed to the preset position, and the control module 140 determines that the keyboard key corresponding to the guide cylinder module is pressed and triggered; wherein, the third voltage signal can be output as 0.5 times the power supply voltage, and the fourth voltage signal is output as 1 times the power supply voltage or 0 voltage.
[0045] As can be seen from the above, the detection circuit of this embodiment is compatible with the keyboard key detection of mechanical shafts and magnetic shafts by setting the guide cylinder module. At the same time, by setting the pull-up module 120, it can prevent the guide cylinder module from presenting a high-impedance state when installing the first shaft body, so that the first voltage signal and the second voltage signal output cannot be distinguished by the control module 140, enabling the user to install mechanical shaft or magnetic shaft keys on the keyboard applying the detection circuit of this embodiment as needed.
[0046] In some cases, a part of the multiple guide cylinder modules 110 can be installed with the first shaft body, and the other part can be the second shaft body. As long as the switch module 130 continuously outputs the first supply voltage, normal detection can also be carried out.
[0047] In an optional implementation manner, the guide cylinder module includes a Hall element, a guide cylinder element, and a base, and both the Hall element and the guide cylinder element are arranged on the base;
[0048] The Hall element is used to output the third voltage signal and the fourth voltage signal according to the distance from the second shaft body and the first supply voltage;
[0049] The guide cylinder element is electrically connected to the Hall element and is used to install the first shaft body or the second shaft body, input the first supply voltage and the first pull-up voltage, output the first voltage signal and the second voltage signal, and transfer the third voltage signal and the fourth voltage signal;
[0050] In an optional implementation manner, the control module 140 includes a main control element and a detection element;
[0051] The main control element outputs a detection signal and determines whether the key corresponding to the keyboard key is pressed and triggered according to the detection signal and the trigger signal;
[0052] The detection element is electrically connected to the main control element and is used to transfer the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal input by the corresponding guide cylinder module as the trigger signal to the main control element according to the detection signal.
[0053] Please also refer to Figure 2 In an optional implementation manner, the switch module 130 includes a first resistor R1 and a first field-effect transistor Q1;
[0054] The first end of the first resistor R1 is connected to the base of the first field-effect transistor Q1. The second end of the first resistor R1 is used to input the first switching signal. The emitter of the first field-effect transistor Q1 is used to input the power supply voltage. The collector of the first field-effect transistor Q1 is used to output the first power supply voltage.
[0055] Please refer to Figure 2 as well. In an alternative embodiment, the pull-up module 120 includes a second resistor R2;
[0056] The first end of the second resistor R2 is used to input the power supply voltage. The second end of the second resistor R2 is used to output the first pull-up voltage.
[0057] Please refer to Figure 2 as well. In an alternative embodiment, the guide cylinder element (shown as UKA1 - UKA6, UKB1 - UKB6 in the figure) includes a first guide cylinder, a second guide cylinder, and a third guide cylinder;
[0058] The first guide cylinder, the first pin of the first shaft body, the first pin of the second shaft body, and the power ground are commonly connected. The second guide cylinder, the second pin of the first shaft body, and the second pin of the second shaft body are commonly connected. The second guide cylinder is further used to output the first voltage signal and the second voltage signal and transfer the third voltage signal and the fourth voltage signal. The third guide cylinder is connected to the third pin of the second shaft body and is used to input the first power supply voltage.
[0059] The first guide cylinder corresponds to the ground pin, the second guide cylinder corresponds to the output pin, and the third guide cylinder corresponds to the power pin.
[0060] After the first shaft body is inserted into the guide cylinder element and is pressed to the first preset position, the first guide cylinder and the second guide cylinder are conducted through the first shaft body at this time.
[0061] The Hall element has a VCC power input pin, a GND pin, and a voltage output pin, and is respectively connected to the first guide cylinder, the second guide cylinder, and the third guide cylinder. After the second shaft body is inserted into the guide cylinder element, when the second shaft body is pressed, the distance between it and the Hall element changes. Therefore, the Hall element is affected by the magnetic field and the voltage it outputs will change.
[0062] Please refer to Figure 3 as well. In an alternative embodiment, the main control element includes a main control chip U1;
[0063] The first output pin, the second output pin, the third output pin, and the fourth output pin of the main control chip U1 are used to output the detection signal; the first input pin and the second input pin of the main control chip U1 are used to input the trigger signal.
[0064] Please refer to Figure 4 simultaneously. In an alternative embodiment, the detection element includes a first multiplexing chip U3 and a second multiplexing chip U4;
[0065] The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin, and the sixth input pin of the first multiplexing chip U3 are used to input the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal of the corresponding guide cylinder module. The seventh input pin, the eighth input pin, the ninth input pin, and the tenth input pin of the first multiplexing chip U3 are used to input the detection signal; the output pin of the first multiplexing chip U3 is used to output the trigger signal;
[0066] The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin, and the sixth input pin of the second multiplexing chip U4 are used to input the first voltage signal, the second voltage signal, the third voltage signal, or the fourth voltage signal of the corresponding guide cylinder module. The seventh input pin, the eighth input pin, the ninth input pin, and the tenth input pin of the second multiplexing chip U4 are used to input the detection signal; the output pin of the second multiplexing chip U4 is used to output the trigger signal.
[0067] The detection signal output by the main control chip U1 can be a digital signal. For example, the detection signal can be the digital signal 0001. At this time, the first multiplexing chip U3 and the second multiplexing chip U4 respectively detect the first guide cylinder module and the seventh guide cylinder module. The first multiplexing chip U3 sends the signal detected by the first guide cylinder module to the main control chip U1 as the trigger signal, and the second multiplexing chip U4 sends the signal detected by the seventh guide cylinder module to the main control chip U1 as the trigger signal; the trigger signals output by the first multiplexing chip U3 and the second multiplexing chip U4 are input through different input pins of the main control chip U1. The main control chip U1 determines which guide cylinder module the trigger signal corresponds to according to the detection signal 0001 and the input pin of the signal. The main control chip U1 continuously outputs digital signals corresponding to detecting different guide cylinder modules, thereby realizing the detection of the states of all guide cylinder modules.
[0068] In this embodiment, multiplexing chips are used to form a key matrix, reducing the requirement for the number of IO ports of the main control chip U1 and making the circuit simpler.
[0069] In some embodiments, the detection element may have different numbers of multiplexing chips, and the first multiplexing chip U3 may have different numbers of input pins, and these numbers can be designed accordingly by those skilled in the art according to actual needs.
[0070] The embodiment of the present application also provides a detection device, including the detection circuit described in any one of the above items. Since the detection device of this embodiment includes the detection circuit described in any one of the above items, the detection device of this embodiment has the beneficial effects corresponding to the detection circuit described in any one of the above items.
[0071] The embodiment of the present application also provides a keyboard, including the detection circuit described in any one of the above items, and the detection circuit is used to detect keyboard keys. Since the keyboard of this embodiment includes the detection circuit described in any one of the above items, the keyboard of this embodiment has the beneficial effects corresponding to the detection circuit described in any one of the above items.
[0072] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A detection circuit for keyboard keys, characterized in that: include: A plurality of guide barrel modules, wherein the guide barrel modules are used to install a first shaft or a second shaft; when the guide barrel module is installed with the first shaft and stops inputting a first power supply voltage, the guide barrel module outputs a first voltage signal according to a first pull-up voltage, and when the first shaft is pressed to a first preset position, the guide barrel module outputs a second voltage signal; when the guide barrel module is installed with the second shaft and inputs the first power supply voltage, the guide barrel module outputs a third voltage signal, and when the second shaft is pressed, the guide barrel module outputs a fourth voltage signal, wherein the magnitude of the fourth voltage signal is related to the distance between the second shaft and the base of the guide barrel module; A pull-up module, electrically connected to the plurality of guide tube modules, and configured to output the first pull-up voltage; A switch module, electrically connected to the plurality of guide tube modules, configured to be turned on when a first switch signal is input and output a first energy supply voltage; as well as a control module, electrically connected to the plurality of guide cylinder modules, for determining whether a key corresponding to the keyboard key installed with the first shaft body is pressed and triggered according to the first voltage signal and the second voltage signal, and for determining whether a key corresponding to the keyboard key installed with the second shaft body is pressed and triggered according to the third voltage signal and the fourth voltage signal; Wherein, the first axis is a mechanical axis, and the second axis is a magnetic axis.
2. The detection circuit according to claim 1, characterized in that: The guide tube module comprises a Hall element, a guide tube element and a base, and the Hall element and the guide tube element are both arranged on the base; The Hall element is used to output the third voltage signal and the fourth voltage signal according to the distance from the second shaft and the first supply voltage; The guide tube element is electrically connected to the Hall element, and is used to install the first shaft body or the second shaft body, input the first energy supply voltage and the first pull-up voltage, output the first voltage signal and the second voltage signal, and transfer the third voltage signal and the fourth voltage signal.
3. The detection circuit according to claim 1, characterized in that: The control module includes a main control element and a detection element; The main control element outputs a detection signal and determines whether the key corresponding to the keyboard key is pressed and triggered according to the detection signal and the trigger signal; The detection element is electrically connected to the main control element, and is used to transfer the first voltage signal, the second voltage signal, the third voltage signal or the fourth voltage signal input by the corresponding guide tube module as the trigger signal to the main control element according to the detection signal.
4. The detection circuit according to claim 1, characterized in that: The switch module includes a first resistor and a first field effect transistor; The first end of the first resistor is connected to the base of the first field effect transistor, the second end of the first resistor is used to input the first switching signal, the emitter of the first field effect transistor is used to input the power supply voltage, and the collector of the first field effect transistor is used to output the first power supply voltage.
5. The detection circuit according to claim 1, characterized in that: The pull-up module includes a second resistor; The first end of the second resistor is used to input a power supply voltage, and the second end of the second resistor is used to output the first pull-up voltage.
6. The detection circuit according to claim 2, characterized in that: The guide tube element comprises a first guide tube, a second guide tube and a third guide tube; The first conductor tube, the first pin of the first shaft, the first pin of the second shaft and the power ground are connected together, the second conductor tube, the second pin of the first shaft and the second pin of the second shaft are connected together, the second conductor tube is also used to output the first voltage signal and the second voltage signal and to transfer the third voltage signal and the fourth voltage signal, the third conductor tube is connected to the third pin of the second shaft and is used to input the first energy supply voltage.
7. The detection circuit according to claim 3, characterized in that: The main control element includes a main control chip; The first output pin, the second output pin, the third output pin and the fourth output pin of the main control chip are used to output the detection signal; the first input pin and the second input pin of the main control chip are used to input the trigger signal.
8. The detection circuit according to claim 3, characterized in that: The detection element includes a first multiplexing chip and a second multiplexing chip; The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin and the sixth input pin of the first multiplexing chip are used to input the first voltage signal, the second voltage signal, the third voltage signal or the fourth voltage signal of the corresponding guide cylinder module, and the seventh input pin, the eighth input pin, the ninth input pin and the tenth input pin of the first multiplexing chip are used to input the detection signal; the output pin of the first multiplexing chip is used to output the trigger signal; The first input pin, the second input pin, the third input pin, the fourth input pin, the fifth input pin and the sixth input pin of the second multiplexing chip are used to input the first voltage signal, the second voltage signal, the third voltage signal or the fourth voltage signal of the corresponding guide tube module, and the seventh input pin, the eighth input pin, the ninth input pin and the tenth input pin of the second multiplexing chip are used to input the detection signal; the output pin of the second multiplexing chip is used to output the trigger signal.
9. A detection device, characterized in that: The method comprises a detection circuit as described in any one of claims 1 to 8.
10. A keyboard, characterized in that: It comprises the detection circuit as described in any one of claims 1-8, and the detection circuit is used to detect keyboard keys.