Input device and control method using the input device
By supporting the switching of capacitive and mechanical contact switches in the keyboard key module, combining control detection and capacitive detection modules, personalized adjustment of the sensitivity and response speed of the key module is achieved, solving the problem of fixed response speed and sensitivity of the existing keyboard, and improving the user experience.
Patent Information
- Application Number
- CN202210834371.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-07-14
AI Technical Summary
The response speed and sensitivity of existing keyboards are fixed, and they cannot be personalized according to the actual needs of users, resulting in users needing to replace the keyboard to meet their needs in different application scenarios.
An input device and a control method are provided. By supporting two types of capacitive and mechanical contact switches in the key module, users are allowed to change the key switch types according to their needs, and identify capacitance changes or current changes through the control detection module and the capacitance detection module, so as to achieve personalized adjustment of sensitivity and response speed.
The switch between the key module between mechanical contact type and capacitive switch is realized, meeting the user's personalized sensitivity and response speed needs, and improving the user experience.
Smart Images

Figure CN115145404B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic input, and particularly to an input device and a control method using the input device. Background Art
[0002] In the prior art, the key module of a keyboard usually uses the mechanical contact principle or the capacitance change principle to control the on-off of the switch and sense the user's pressing operation. The keyboard using the mechanical contact principle has a slow response speed and low sensitivity, while the keyboard using the capacitance change principle has a fast response speed and high sensitivity.
[0003] For a keyboard using the mechanical contact principle, two electrode plates are relied on to contact and conduct with each other as the key switch, enabling the main control chip to obtain the key pressing, judge the working state of the key module, and then generate a signal input. The keyboard using the mechanical contact principle has a slow response speed and low sensitivity for the following two reasons. First, when the relative positions of the two electrode plates change but they do not contact, the two electrode plates do not conduct with each other, and the main control chip cannot obtain the key pressing. Only when the two electrode plates contact and conduct with each other can the main control chip obtain the key pressing. Therefore, when identifying the key using the mechanical contact principle, the pressing stroke is long, the response speed is slow, and the sensitivity is low. Second, there is jitter when the two electrode plates just contact, and the contact is unstable. Therefore, the keyboard needs to set an anti-shake time to make the input more stable, and the anti-shake time further increases the response time, resulting in a slow response speed.
[0004] For a keyboard using the capacitance change principle, the change in the relative positions of two electrode plates is relied on as the key switch. When the two electrode plates approach each other, the capacitance value between the two electrode plates changes, enabling the key switch to allow the main control chip to obtain the key pressing, judge the working state of the key module, and then generate a signal input. When the relative positions of the two electrode plates change in the keyboard using the capacitance principle, the two electrode plates do not contact each other, and the change in the capacitance value can be sensed, serving as the key switch to allow the main control chip to obtain the key pressing. Therefore, when identifying the key using the capacitance principle, the pressing stroke is short, the response speed of the keyboard is faster, and the sensitivity is higher.
[0005] A keyboard is a commonly used tool in daily work and life. Different users or the same user in different application scenarios have different requirements for the response speed and sensitivity of the keyboard, while the response speed and sensitivity of the same keyboard are fixed. To meet the different requirements of users for the response speed and sensitivity of the keyboard in different application scenarios, multiple keyboards need to be prepared for the user to replace the used keyboard according to different sensitivity requirements, which brings inconvenience to daily use.
[0006] Therefore, it is necessary to provide a new input device and control method to solve the above problems. Summary of the Invention
[0007] To solve the technical problem that the response speed of the same input device in the prior art is fixed and cannot be personalized according to the actual needs of users, it is necessary to provide an input device that can set different response speeds and sensitivities according to actual needs.
[0008] At the same time, an input device control method is provided.
[0009] An input device includes a key module, and the input device further includes:
[0010] A first determination unit that determines a target key module corresponding to a first operation instruction in the key module;
[0011] A second determination unit that determines a target recognition method corresponding to the target key switch according to the type of the target key switch, where the target key switch is the key switch corresponding to the target key module;
[0012] An execution unit that recognizes an operation corresponding to the target key module according to the target trigger condition, where the target trigger condition is determined according to the target recognition method.
[0013] A control method for an input device, where the input device includes a key module, and the control method includes the following steps:
[0014] S01. Determine a target key module corresponding to a first operation instruction in the key module;
[0015] S02. Determine a target recognition method corresponding to the target key switch according to the type of the target key switch, where the target key switch is the key switch corresponding to the target key module;
[0016] S03. Recognize an operation corresponding to the target key module according to the target trigger condition, where the target trigger condition is determined according to the target recognition method.
[0017] Compared with the prior art, the input device control method provided by the present invention determines the key switch type and the target trigger condition of the target key module according to the first operation instruction, and recognizes the operation corresponding to the target key module according to the target trigger condition. The target key module supports at least two types of key switches, namely capacitive switches and mechanical contact switches, enabling users to replace the key switch type of the input device according to their own needs and re-set the trigger condition of the key module, thereby adjusting the sensitivity and response speed of the input device to meet the personalized needs of users. Description of the Drawings
[0018] Figure 1Schematic diagram of the three-dimensional structure of the keyboard disclosed in the embodiments of the present invention;
[0019] Figure 2 is Figure 1 Schematic diagram of the partial three-dimensional assembled structure of the key module shown;
[0020] Figure 3 is Figure 2 Exploded view of the key unit shown;
[0021] Figure 4 is Figure 2 Cross-sectional view of the key module shown;
[0022] Figure 5 is Figure 1 Equivalent circuit diagram of the keyboard shown;
[0023] Figure 6a is Figure 3 Series equivalent circuit diagram of the key module when the electrode sheet is a variable capacitor shown;
[0024] Figure 6b is Figure 3 Series equivalent circuit diagram of the key module when the electrode sheet is a mechanical contact switch shown;
[0025] Figure 6c is Figure 3 Another series equivalent circuit diagram of the key module when the electrode sheet is a mechanical contact switch shown;
[0026] Figure 7 Schematic diagram of the flow of the input device control method provided by the embodiments of the present invention;
[0027] Figure 8 is Figure 1 Schematic diagram of the keyboard assembly shown;
[0028] Figure 9 Schematic diagram of the virtual structure of the input device provided by the embodiments of the present invention. Detailed implementation manners
[0029] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0030] The present invention provides an input device and an input method. The input device can be a terminal input device such as a keyboard. The following will describe the specific structure of the input device in conjunction with Figure 1 FIG. 6:
[0031] Please refer toFigure 1 , which is a schematic diagram of the three-dimensional structure of a keyboard disclosed in an embodiment of the present invention. The keyboard 100 includes a key module 10, a control board 30, a capacitance detection module 50, and a control detection module 70. Among them, the control detection module 70 includes a control module 71 and a current detection module 73. The key module 10 is arranged in an array on the control board 30, and both the capacitance detection module 50 and the control detection module 70 are arranged on the control board 30.
[0032] Please refer to Figure 2 , Figure 3 and Figure 4 , where Figure 2 is Figure 1 a schematic diagram of the partial three-dimensional assembly structure of the key module shown, Figure 3 is Figure 2 an exploded view of the key unit shown, Figure 4 is Figure 2 a cross-sectional view of the key module shown.
[0033] The key module 10 includes a key unit 11, a circuit board 13, and a connection socket 15 stacked in sequence. Among them, the circuit boards 13 of multiple key modules 10 are integrated with the control board 30 into a circuit board.
[0034] The circuit board 13 includes a mounting hole 131, a through hole 133, a first fixed capacitor 135, and a first diode 137. Among them, the number of mounting holes 131 on the circuit board 13 corresponding to each key module 10 is one, the number of through holes 133 is two, the first fixed capacitor 135 is connected in parallel with the first diode 137 and is connected to the corresponding detection circuit. The first fixed capacitor 135 is connected to the capacitance detection module 50, and the first diode 137 is connected to the control detection module 70.
[0035] The key unit 11 includes a housing 111, a switch accommodation cavity 112, a pressing body 113, an elastic body 115, and an electrode sheet 117. When the key module 10 is assembled, the electrode sheets 117 are respectively connected in series with the first fixed capacitor 135 and the first diode 137.
[0036] The housing 111 includes an upper cover 1111 and a lower cover 1113. The upper cover 1111 includes a hollow through-hole 1111A. The upper cover 1111 and the lower cover 1113 enclose to form the switch accommodation cavity 112. The lower cover 1113 includes a lead screw column 1113A and a mounting column 1113B. The lead screw column 1113A is disposed within the switch accommodation cavity 112 and is correspondingly disposed with respect to the hollow through-hole 1111A. The mounting column 1113B is disposed on a side of the lower cover 1113 away from the switch accommodation cavity 112, and the mounting column 1113B and the lead screw column 1113A are coaxially arranged.
[0037] One end of the pressing body 113 is received in the switch accommodation cavity 112 and is sleeved within the lead screw column 1113A, and the other end passes through the hollow through-hole 1111A and extends outside the housing 111. The elastic body 115 is clamped between the pressing body 113 and the lower cover 1113. When the pressing body 113 is physically pressed by the outside, it moves downward along the lead screw column 1113A towards the lower cover 1113 under the guidance of the lead screw column 1113A, thereby compressing the elastic body 115. When the outside physical pressing action is withdrawn, the pressing body 113 moves upward along the lead screw column 1113A towards a direction away from the lower cover 1113 under the elastic force of the elastic body 115.
[0038] The electrode sheet 117 is the key switch of the key module 10, and includes a first electrode 1171 and a second electrode 1173. One end of the first electrode 1171 is a first electrode terminal 1171A, and the other end is a first pin 1171B. One end of the second electrode 1173 is a second electrode terminal 1173A, and the other end is a second pin 1173B. The first electrode terminal 1171A and the second electrode terminal 1173A are correspondingly coupled and are received in the switch accommodation cavity 112. The first pin 1171B and the second pin 1173B pass through the lower cover 1113 and extend outside the housing 111. The extending directions of the first pin 1171B and the second pin 1173B are the same as that of the mounting column 1113B.
[0039] In this embodiment, the electrode sheet 117 is a variable capacitor. When the pressing body 113 is physically pressed by the outside, the physical pressing signal is transmitted to the electrode sheet 117, and the capacitance value of the electrode sheet 117 is changed by changing the relative area and distance between the first electrode terminal 1171A and the second electrode terminal 1173A, thereby changing the capacitance value of the circuit formed by the series connection of the electrode sheet 117 and the first fixed capacitor 135.
[0040] In other embodiments, the electrode piece 117 may be a mechanical contact switch. Under the action of an external physical press, the pressing body 113 transmits the physical press signal to the electrode piece 117, and changes the capacitance value of the electrode piece 117 by changing the relative area and distance between the first electrode terminal 1171A and the second electrode terminal 1173A, thereby changing the capacitance value of the circuit formed by the series connection of the electrode piece 117 and the first fixed capacitor 135. Or by changing the relative positions of the first electrode terminal 1171A and the second electrode terminal 1173A, the first electrode terminal 1171A and the second electrode terminal 1173A are brought into contact with each other to conduct the current circuit formed by the series connection of the key unit 11 and the circuit board 13.
[0041] The connection socket 15 is fixedly arranged on the side of the circuit board 13 away from the key unit 11. The connection socket 15 includes a socket body 151 and a connection unit 153. Each connection socket 15 corresponding to the key module 10 includes one socket body 151 and two connection units 153, and the two connection units 153 are respectively arranged at both ends of the socket body 151. The socket body 151 further includes a protrusion 1511, and the protrusion 1511 is arranged on the side of the socket body 151 close to the circuit board 13.
[0042] Each connection unit 153 includes a connection column 1531, two conductive elastic pieces 1533 and two conductive terminals 1535. Among them, the two conductive terminals 1535 are arranged at one end of the socket body 151 and are fixedly connected to the circuit board 13 by welding, and conduct the first fixed capacitor 135 and the first diode 137. The connection column 1531 encloses a first accommodating cavity 1531A with an opening at the bottom. The connection column 1531 further includes a pin through hole 1531B, and the pin through hole 1531B is arranged on the top surface of the connection column 1531 close to the key unit 11, and the pin through hole 1531B communicates with the first accommodating cavity 1531A. The two conductive elastic pieces 1533 are elastically abutted and received in the first accommodating cavity 1531A, and the two conductive elastic pieces 1533 respectively conduct the two conductive terminals 1535.
[0043] When the key module 10 is assembled, the connecting post 1531 penetrates through the through hole 133, the protrusion 1511 abuts against the side of the circuit board 13 away from the key unit 11, and the two conductive terminals 1535 are soldered to the circuit board 13, so that the circuit board 13 is fixedly connected to the connection socket 15. And in each key module 10, the two through holes 133 of the circuit board 13 respectively correspond to the connecting posts 1531 of the two connecting units 153 in the connection socket 15. The mounting post 1113B, the first pin 1171B, and the second pin 1173B in the key unit 11 respectively correspond to the mounting hole 131 and the two connecting posts 1531. When the mounting post 1113B is movably assembled in the mounting hole 131, the first pin 1171B and the second pin 1173B penetrate through the through hole 133 and the pin through hole 1531B, and are clamped between the two conductive elastic sheets 1533. The electrode sheet 117 is electrically connected to the circuit board 13 through the two conductive elastic sheets 1533 and the two conductive terminals 1535.
[0044] In the key module 10 provided by the present invention, by providing the mounting hole 131 and the through hole 133 in the circuit board 13, the connection socket 15 fixedly connected to the circuit board 13 is provided on the side of the circuit board 13 away from the key unit 11, and two elastically abutting conductive elastic sheets 1533 are provided in the connection socket 15. When the mounting post 1113B of the key unit 11 is movably installed in the mounting hole 131, the electrode sheet 117 of the key unit 11 penetrates through the through hole 133 and is clamped between the two conductive elastic sheets 1533. So that the key unit 11 and the circuit board 13 are detachably or pluggably assembled and connected to realize the replacement of the key unit in the same key module. By replacing the key unit 11, the switch type of the same key module 10 is replaced. For example, if the key unit 11 with the electrode sheet 117 being a variable capacitor is replaced with the key unit 11 with the electrode sheet 117 being a mechanical contact switch, then the key module 10 is switched from a capacitive switch to a mechanical contact switch; if the key unit 11 with the electrode sheet 117 being a mechanical contact switch is replaced with the key unit 11 with the electrode sheet 117 being a variable capacitor, then the key module 10 is changed from a mechanical contact switch to a capacitive switch.
[0045] Please refer to Figure 5 for Figure 1 the equivalent circuit diagram of the keyboard shown. The control board 30 includes a plurality of circuit units 31, and the capacitance detection module 50 is connected to the control detection module 70.
[0046] One of the first fixed capacitors 135 and one of the first diodes 137 are connected in parallel to form one circuit unit 31, and both the first fixed capacitor 135 and the first diode 137 are connected in series with the electrode piece 117. The electrode piece 117 is respectively connected to the capacitance detection module 50 and the control detection module 70. One end of the first fixed capacitor 135 is connected to the electrode piece 117, and the other end is connected to the capacitance detection module 50. One end of the first diode 137 is connected to the electrode piece 117, and the other end is connected to the control detection module 70.
[0047] When the first fixed capacitor 135 in the key module 10 works, the switch type of the key module 10 can be a capacitive switch or a mechanical contact switch; when the first diode 137 in the key module 10 works, the switch type of the key module 10 is a mechanical contact switch. The following combines Figure 6a , Figure 6b and 6c to illustrate the input recognition methods of the key module 10 with different switch types. Figure 6a is Figure 3 the series equivalent circuit diagram of the key module when the electrode piece shown is a variable capacitor, Figure 6b is Figure 3 the series equivalent circuit diagram of the key module when the electrode piece shown is a mechanical contact switch, Figure 6c is Figure 3 another series equivalent circuit of the key module when the electrode piece shown is a mechanical contact switch.
[0048] Inductive recognition of capacitive switch: Inductive recognition is to detect the capacitance value of the series circuit of the key module 10 through the capacitance detection module 50, so as to recognize the external physical pressing and generate an input signal accordingly. As Figure 6a shown, when the electrode piece 117 is a variable capacitor, the control detection module 70 controls the control detection module 70 to be open-circuited with the electrode piece 117 and / or the first diode 137, and the capacitance detection module 50 is conducted with the first fixed capacitor 135 and the electrode piece 117, the capacitance detection module 50 detects the change in the capacitance value of the circuit formed by the series connection of the electrode piece 117 and the first fixed capacitor 135, and judges the working state of the key module 10. The control module 71 receives the working state signal from the capacitance detection module 50 and generates an input signal accordingly.
[0049] Inductive recognition of mechanical contact switch: As Figure 6bAs shown, when the electrode piece 117 is a mechanical contact switch, the control and detection module 70 controls the disconnection of the control and detection module 70 from the first diode 137 and / or the electrode piece 117. When the capacitance detection module 50 is conducted with the first fixed capacitor 135 and the electrode piece 117, the capacitance detection module 50 detects the change in the capacitance value of the circuit formed by the series connection of the electrode piece 117 and the first fixed capacitor 135, and judges the working state of the key module 10. The control module 71 receives the working state signal from the capacitance detection module 50 and correspondingly generates an input signal. Under the action of an external physical press, the pressing body 113 transmits the physical press signal to the electrode piece 117, so that the first electrode terminal 1171A and the second electrode terminal 1173A approach each other or are in contact and conduction, and the capacitance value of the series circuit of the electrode piece 117 and the first fixed capacitor 135 changes. When the first electrode terminal 1171A and the second electrode terminal 1173A are in contact and conduction, the capacitance value of the series circuit of the electrode piece 117 and the first fixed capacitor 135 is equal to the capacitance value of the first fixed capacitor 135.
[0050] Contact recognition of the mechanical contact switch: The contact recognition is that the current detection module 73 detects the current of the series circuit of the key module 10 to identify the external physical press and correspondingly generates an input signal. For contact recognition, each component in the circuit must be in a contact-conduction state, and the current flows through the series circuit of the key module 10, serving as the conduction recognition of the switch and correspondingly generating a signal input. As Figure 6c As shown, when the electrode piece 117 is a mechanical contact switch, the control and detection module 70 controls the conduction of the control and detection module 70 with the first diode 137 and the electrode piece 117. When the capacitance detection module 50 is disconnected from the first fixed capacitor 135 or the electrode piece 117, the current detection module 73 receives the current change signal from the series circuit of the electrode piece 117 and the first diode 137, and judges the working state of the key module 10. The control module 71 is used to receive the working state signal from the current detection module 73 and correspondingly generates an input signal.
[0051] The keyboard 100 provided by the present invention can switch the switch type of the key module 10 back and forth between a mechanical contact switch and a capacitive switch by replacing the key unit 11 of the key module 10. By controlling the detection module 70 and the capacitive detection module 50 to identify the capacitive change signal or current change signal of the key module 10, the key input recognition method of the key module 10 can be switched between contact recognition and inductive recognition. The keyboard 100 can support both capacitive switches and mechanical contact switches, so that users can make personalized settings according to their own needs, improving the user experience.
[0052] The specific structure of the input device is described in detail above. Next, the input device control method provided by the present invention will be described in detail in combination with the input device:
[0053] Please refer to Figure 7 , which is a schematic flowchart of the input device control method provided by the embodiment of the present invention, including:
[0054] S01. Determine the target key module in the key module corresponding to the first operation instruction.
[0055] In this embodiment, after receiving the first operation instruction of the user, the input device determines the target key module corresponding to the first operation instruction according to the first operation instruction, where the target key module supports two types of key switches, namely capacitive switches and mechanical contact switches. It can be understood that the input device includes at least one key module. With reference to Figure 1 FIG. 6, taking the input device as a keyboard and the case module as the keys on the keyboard as an example, the input device can be a numeric keypad including 11 keys, a keyboard including 87 keys, or a keyboard including 108 keys. There is no specific limitation, and the number of keys of the keyboard can be set according to actual needs.
[0056] It can be understood that the input device can receive the first operation instruction in various ways. Next, in combination with Figure 8 ( Figure 8 is Figure 1 a schematic assembly diagram of the keyboard shown), taking the input device as a keyboard as an example, the method for the input device to determine the target key module according to the first operation instruction will be described.
[0057] Method A: After the user presses a specified key, within a certain period of time, press the keys that need to be specified as the target key module in sequence to determine the target key module. For example, after pressing the two keys "Fn" and "J" simultaneously, within 20 seconds, press the three keys "Z", "X", and "C" in sequence, then determine the keys corresponding to "Z", "X", and "C" as the target key module. Of course, it is not limited to pressing the two keys "Fn" and "J". It can also be after pressing the two keys "Fn" and "R", or after pressing the single key "Fn", and the specified keys pressed are used as the target key module. The target key module can be a part of the keys on the keyboard or all the keys on the keyboard, which is determined according to the user's pressing situation.
[0058] Method B: Determine the target key module by the user pressing a specific key combination. For example, when pressing "Fn", "J", and "9" simultaneously, the keys of the specified numeric keypad are the target key module. When pressing "Fn", "J", and "A" simultaneously, all the keys on the keyboard are specified as the target key module. Of course, there is no specific limitation on which key combination is used to specify which keys as the target key module, and it can be set according to actual needs.
[0059] Method C: Determine all the keys on the keyboard as the target key module by restarting the keyboard or pressing the specified keys ("Fn" and "A").
[0060] S02. Determine the target recognition method corresponding to the target key switch according to the type of the target key switch. The target key switch is the key switch corresponding to the target key module.
[0061] In this embodiment, the input device determines the type of the target key switch corresponding to the target key module. The target key switch is the key switch in the target key module. Specifically, the target key switch is two electrode plates in the target key module, and the type of the target key switch is a capacitive switch or a mechanical contact switch. The input device determines the recognition method corresponding to the target key switch according to the type of the target key switch. The recognition method of the target key switch is contact recognition or inductive recognition.
[0062] If the type of the target key switch is a capacitive switch, then determine the target recognition method as inductive recognition.
[0063] If the type of the target key switch is a mechanical contact switch, then determine the target recognition method as contact recognition or inductive recognition;
[0064] It should be noted that for the same key module, the user can replace the key switch according to actual needs to change the recognition method of the key module.
[0065] The target key switch can be Figure 3 the electrode piece 117 shown below. The following will specifically describe Figures 6a to 6c the target key switch:
[0066] As Figure 6a 、 Figure 6b and Figure 6c shown, when the electrode piece 117 is a variable capacitor, the type of the target key switch is a capacitive switch. When the electrode piece is a mechanical contact switch door that depends on and contacts each other to conduct current, the type of the target key switch is a mechanical contact switch.
[0067] It should be noted that the type of the target key switch can be determined by the user input to determine the specific type of the target key switch. Of course, other methods can also be adopted to determine it, such as automatic recognition by the input device, which is not specifically limited.
[0068] The following will specifically describe the method of determining the type of the target key switch by the method of user input of the specific type, Figure 8 taking Figure 8 as Figure 1 the schematic diagram of keyboard assembly shown.
[0069] As Figure 8 shown, the keyboard 100 includes three regions, namely the first region 81, the second region 82, and the third region 83. Different keys are distributed in the three regions of the keyboard 100. The user replaces the key switch in the first region 81. After changing the key switch type in the first region 81 from a mechanical contact switch to a capacitive switch, the first operation instruction is sent to the user by pressing the "Fn", "R", and "F1" keys simultaneously. Among them, "R" indicates that the type of the target key switch is a capacitive switch, "F1" indicates that the target key module is the key in the first region 81. The keyboard 100 receives the first operation instruction, takes all the keys in the first region 81 as the target key module, takes all the key switches in the first region 81 as the target key switch, and determines the types of all the key switches in the first region 81 as capacitive switches. It should be noted that other keys can also be defined to represent the capacitive switch and the key region. For example, "C" can be defined to represent the capacitive switch, and "Fn+F1" can be defined to represent the first region 81, which is not specifically limited.
[0070] The above is to determine the type of the target key switch by the user inputting a specific type. Next, the automatic recognition of the type of the target key switch by the input device will be described.
[0071] For example, when the user presses the "Fn", "A", and "F1" keys simultaneously to issue the first operation instruction, it is determined that all the keys in the first area 81 are the target key modules, and the key switches in the first area 81 are the target key switches, where "A" indicates that the keyboard 100 automatically recognizes the type of the target key switch.
[0072] Next, two methods for the keyboard 100 to automatically recognize the type of the target key switch will be described:
[0073] 1. The input device determines the type of the target key switch corresponding to the target key module, including:
[0074] Determine the environmental base value of the target key switch;
[0075] According to the environmental base value, determine the type of the target key switch. If the environmental base value meets the second preset threshold, the target key switch is a capacitive switch; otherwise, the target key switch is a contact key switch.
[0076] The environmental base value is the capacitance value data that comprehensively reflects the charge and discharge between two electrode plates (such as the electrode plate 117 shown) of the PCB circuit switch under the influence of various factors such as the current environmental temperature and humidity. Figure 3 shown electrode plate 117) of the PCB circuit switch under the influence of various factors such as the current environmental temperature and humidity.
[0077] It should be noted that the environmental base value of the capacitive switch and the environmental basic knowledge of the non-capacitive switch have obvious differences on the same circuit. For example, in the same circuit, the environmental base value of the capacitive switch is about 10,000, while the environmental base value of the non-capacitive switch is about 1,000. Therefore, the second preset threshold can be set to 7,000. When the environmental base value is greater than 7,000, it is determined that the target key switch is a capacitive switch. It can be understood that the second preset threshold can also be set to 6,000, which is not specifically limited as long as the capacitive switch can be recognized.
[0078] The environmental base value is mainly detected by the following method: when the capacitive chip is powered on and working, the key switch in the circuit and the circuit of the connection socket 15 are scanned for charge and discharge through the TX matrix circuit, and then the charge and discharge signals are received by the RX matrix circuit. The capacitance value data of this charge and discharge is communicated through the capacitive chip and the MCU circuit, so that the capacitance value data of the charge and discharge can be displayed on the monitor of the computer connected to the input device.
[0079] It should be noted that when the capacitive switch is connected or not connected to the PCB circuit, the obtained environmental base values during scanning vary greatly. Therefore, it is also possible to determine whether the capacitive switch is normally connected to the PCB circuit based on the magnitude of the environmental base.
[0080] 2. The types of target key switches corresponding to the target key module determined by the input device include:
[0081] Determine the first capacitance value of the capacitive value in the pressed state and the second capacitance value of the capacitive value in the non-pressed state;
[0082] Determine the first capacitance difference between the first capacitance value and the second capacitance value;
[0083] If the first capacitance difference is greater than or equal to a third preset threshold, the target key switch is a capacitive switch.
[0084] In the pressed state and the non-pressed state, there is a relatively obvious change in the capacitance value between the two electrode plates of the capacitive switch. For example, Figure 2 As shown, when the key module 10 is in the pressed state and the two electrode plates 117 are close to each other, the first capacitance value between the two electrode plates is C1. When the key module 10 is in the non-pressed state, the second capacitance value between the two electrode plates 117 is C2. Then the first capacitance difference ΔC = C1 - C2. Since the first capacitance difference ΔC of the capacitive switch is greater than the first capacitance difference ΔC of the non-capacitive switch, therefore, the key switch with the first capacitance difference ΔC greater than or equal to the third preset threshold can be determined as a capacitive switch, otherwise it is determined as a mechanical contact switch. For example, the third preset threshold can be set to be greater than 4000, and the key switch with the first capacitance difference ΔC greater than 4000 is determined as a capacitive switch. Of course, the magnitude of the third preset threshold is not limited and can be adjusted according to actual applications.
[0085] S03. Identify the operation corresponding to the target key module according to the target trigger condition, and the target trigger condition is determined according to the target recognition method.
[0086] In this embodiment, the input device determines the target trigger condition of the target key module according to the target recognition method, including:
[0087] If the target recognition method is contact recognition, the target trigger condition is determined as the first trigger condition, and the first trigger condition is that the two electrode plates of the target key switch are in contact with high and low levels, conducting the circuit of the target key module, and current passes through the target key module;
[0088] If the target recognition method is inductive recognition, the target trigger condition is determined as a second trigger condition, and the second trigger condition is that the capacitance between the two electrode sheets of the target key switch is greater than or equal to a first preset threshold. The value of the first preset threshold is set according to actual needs.
[0089] It can be understood that when the key module meets the trigger condition, the key module is in a working state and generates a corresponding signal input.
[0090] The input device identifies the operation corresponding to the target key module according to the target trigger condition. When the target trigger condition is the first trigger condition, the user presses the target key module, and when the two electrode sheets of the target key switch are in high and low level contact with each other, the current is turned on, and the keyboard recognizes the user's pressing of the target key module and generates an input signal accordingly. When the target trigger condition is the second trigger condition, the user presses the target key module, changes the distance and relative area between the two electrode sheets of the target key switch, and the capacitance value between the two electrode sheets is greater than or equal to the first preset threshold value, and the keyboard 100 recognizes the user's pressing of the target key module and generates an input signal accordingly.
[0091] Combination Figure 8 , taking the keyboard 100 as an example, the method of identifying the operation corresponding to the target key module is described:
[0092] Method 1: on the basis that the user changes the type of the target key switch from a capacitive switch to a mechanical contact switch, the target trigger condition is re-determined as the first trigger condition.
[0093] For example, the trigger condition of the key module 10 in the first zone 81 is the second trigger condition, the key switch is a capacitive switch, and in the first zone 81, the first fixed capacitor 135 is connected to the capacitive detection module 50, and the first diode 137 is disconnected from the control detection module 70. Figure 2 The key unit 11 shown in the figure is unplugged and replaced with a mechanical contact switch. After the replacement, after pressing the "Fn" and "J" keys at the same time, all the keys in the first area 81 are pressed in sequence within one minute, and the triggering conditions of all the key modules 10 in the first area 81 of the keyboard 100 are determined as the first triggering conditions. In the subsequent input process of the key module 10 in the first area 81, it is necessary to press the key module 10 so that the electrode sheet 117 abuts and conducts current. The key module 10 is in a triggered state, recognizes the user's pressing operation, and generates an input signal accordingly.
[0094] Method 2: When the type of the target key switch is a mechanical contact switch and the target trigger condition is the first trigger condition, without replacing the key switch, directly re-determine the trigger condition of the target key module as the second trigger condition.
[0095] For example, the trigger conditions of all the key modules 10 in the three regions of the keyboard 100 are the first trigger condition, the key switches are all mechanical contact switches, the first diode 137 is conducting with the control and detection module 70, and the first fixed capacitor 135 is open with the capacitance detection module 50. After the user directly presses the "Fn", "R", and "A" keys simultaneously, the trigger conditions of all the key modules 10 of the keyboard 100 are re-determined as the second trigger condition. During the process of using the keyboard 100 for input, when the user touches or presses the key module 10, the distance and relative area between the electrode plates 117 change, the capacitance value between the electrode plates 117 increases. When the capacitance value between the electrode plates 117 is greater than or equal to the first preset threshold, the key module 10 is in a triggered state, recognizing the user's pressing operation and generating a corresponding input signal.
[0096] Method 3: When the type of the target key switch is a mechanical contact switch and the target trigger condition is the second trigger condition, without replacing the key switch, directly re-determine the trigger condition of the target key module as the first trigger condition.
[0097] For example, the trigger conditions of all the key modules 10 in the three regions of the keyboard 100 are the second trigger condition, the key switches are all mechanical contact switches, the first diode 137 is open with the control and detection module 70, and the first fixed capacitor 135 is conducting with the capacitance detection module 50. After the user directly presses the "Fn", "J", and "A" keys simultaneously, the trigger conditions of all the key modules 10 of the keyboard 100 are re-determined as the first trigger condition. During the process of using the keyboard 100 for input, it is necessary to press the key module 10 to make the electrode plates 117 contact, conduct the current, and the key module 10 is in a triggered state, recognizing the user's pressing operation and generating a corresponding input signal.
[0098] Method 4: On the basis of replacing the type of the target key switch from a mechanical contact switch to a capacitive switch, determine the target trigger condition as the second trigger condition.
[0099] For example, the triggering conditions for all the key modules 10 in the three regions of the keyboard 100 are the first triggering conditions. The key switches are all mechanical contact switches. The first diode 137 is conducting with the control and detection module 70, and the first fixed capacitor 135 is open with the capacitance detection module 50. The user replaces the key switch in the third region 83 with a capacitive switch. After replacement, when the user presses the "Fn" and "R" keys simultaneously and then presses the keys in the third region 83 in sequence within one minute, the triggering condition for the keys in the third region 83 is determined as the second triggering condition. During subsequent use of the keyboard 100 for input, when the user touches the key module 10 in the third region 83, the distance and relative area between the electrode plates 117 change, the capacitance value between the electrode plates 117 increases, and when it is greater than or equal to the first preset threshold, the key module 10 is in a triggered state, identifying the user's pressing operation and correspondingly generating an input signal.
[0100] Compared with the prior art, the input device control method provided by the present invention determines the key switch type and the target triggering condition of the target key module according to the first operation instruction, and identifies the operation corresponding to the target key module according to the target triggering condition. This enables the user to set the triggering condition of the input device according to their own needs, thereby adjusting the sensitivity and response speed of the input device to meet the personalized needs of the user.
[0101] Please refer to Figure 9 , the schematic diagram of the virtual structure of the input device provided by the embodiment of the present invention.
[0102] In a second aspect of the present invention, an input device is provided. The input device 900 includes a key module, and further includes:
[0103] A first determination unit 901, configured to determine a target key module corresponding to the first operation instruction in the key module;
[0104] A second determination unit 902, configured to determine a target recognition method corresponding to the target key switch according to the type of the target key switch, where the target key switch is the key switch corresponding to the target key module;
[0105] An execution unit 903, configured to identify the operation corresponding to the target key module according to the target triggering condition, where the target triggering condition is determined according to the target recognition method.
[0106] Optionally, the type of the target key switch includes at least one of a capacitive switch and a mechanical contact switch.
[0107] Optionally, the second determination unit 902 is further configured to:
[0108] When the type of the target key switch is a mechanical contact switch, determine the target recognition method as contact recognition or inductive recognition;
[0109] When the type of the target key switch is a capacitive switch, determine the target recognition method as inductive recognition.
[0110] Optionally, the execution unit 903 is further configured to:
[0111] When the target recognition method is contact recognition, determine the trigger condition of the target key module as the high and low levels contacting each other between the two electrode plates of the target key switch;
[0112] When the target recognition method is inductive recognition, determine the trigger condition of the target key module as the capacitance value between the two electrode plates of the target key switch being greater than or equal to a first preset threshold.
[0113] Optionally, the second determination unit 902 is further configured to:
[0114] Determine the environmental base value of the target key switch;
[0115] Determine the type of the target key switch according to the environmental base value. If the environmental base value is greater than or equal to a second preset threshold, the target key switch is a capacitive switch; otherwise, the target key switch is a contact key switch.
[0116] Optionally, the second determination unit 902 is further configured to:
[0117] Determine the first capacitance value in the pressed state and the second capacitance value in the non-pressed state;
[0118] Determine the first capacitance difference between the first capacitance value and the second capacitance value;
[0119] If the first capacitance difference is greater than or equal to a third preset threshold, the target key switch is a capacitive switch.
[0120] Compared with the prior art, the input device control method and input device provided by the present invention determine the target trigger condition of the target key module according to the first operation instruction, and identify the operation corresponding to the target key module according to the target trigger condition, so that the user can set the trigger condition of the input device according to their own needs, thereby adjusting the sensitivity and response speed of the key module, and meeting the personalized needs of the user for the input device.
[0121] The above are only some embodiments of the present invention, and thus do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. An input device, comprising a key module, characterized in that, The input device further includes: A first determination unit that determines a target key module corresponding to a first operation instruction in the key module; A second determination unit that determines a target recognition method corresponding to the target key switch according to the type of the target key switch, where the target key switch is the key switch corresponding to the target key module; An execution unit that recognizes an operation corresponding to the target key module according to a target trigger condition, where the target trigger condition is determined according to the target recognition method; wherein, the second determination unit is further configured to: When the type of the target key switch is a mechanical contact switch, determine the target recognition method as contact recognition or inductive recognition; When the type of the target key switch is a capacitive switch, determine the target recognition method as inductive recognition; The execution unit is further configured to: When the target recognition method is contact recognition, determine the trigger condition of the target key module as the high and low levels coming into contact with each other between two electrode plates of the target key switch; When the target recognition method is inductive recognition, determine the trigger condition of the target key module as the capacitance value between two electrode plates of the target key switch being greater than or equal to a first preset threshold.
2. The input device according to claim 1, wherein The type of the target key switch includes at least one of a capacitive switch and a mechanical contact switch.
3. A control method for an input device, the input device comprising a key module, characterized in that, The control method includes the following steps: S01. Determine a target key module corresponding to a first operation instruction in the key module; S02. Determine a target recognition method corresponding to the target key switch according to the type of the target key switch, where the target key switch is the key switch corresponding to the target key module; S03. Recognize an operation corresponding to the target key module according to a target trigger condition, where the target trigger condition is determined according to the target recognition method; wherein, step S02 includes the following steps: If the type of the target key switch is a mechanical contact switch, determine the target recognition method as contact recognition or inductive recognition; If the type of the target key switch is a capacitive switch, determine the target recognition method as inductive recognition; Step S03 includes the following steps: If the target recognition method is contact recognition, determine the target trigger condition as the high and low levels coming into contact with each other between two electrode plates of the target key switch; If the target recognition method is inductive recognition, determine the trigger condition as the capacitance value between two electrode plates of the target key switch being greater than or equal to a first preset threshold.
4. The method according to claim 3, characterized in that The type of the target key switch includes at least one of a capacitive switch and a mechanical contact switch.
5. The control method according to any one of claims 3 to 4, characterized in that Step S02 includes the following steps: Determine an environmental base value of the target key switch; Determine the type of the target key switch according to the environmental base value. If the environmental base value is greater than or equal to a second preset threshold, the target key switch is a capacitive switch; otherwise, the target key switch is a contact key switch.
6. The control method according to any one of claims 3 to 4, characterized in that Step S02 further includes the following steps: Determine the first capacitance value of the pressed state capacitance and the second capacitance value of the unpressed state capacitance; Determine the first capacitance difference between the first capacitance value and the second capacitance value; If the first capacitance difference is greater than or equal to the third preset threshold, the target key switch is a capacitive switch.
Citation Information
Patent Citations
Input device, input method and keyboard
CN112332827A
Detection system
CN210604839U