Touch key equipment, capacitive touch key identification method and device and medium
By introducing a noise detection sensor into the capacitive touch key device, calculating and correcting the sampling value, the problem of capacitive touch keys being prone to key jumps and key cancellation in a noisy environment is solved, and the anti-interference and recognition accuracy of the keys are significantly improved.
Patent Information
- Application Number
- CN202411609735.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
AI Technical Summary
Existing capacitive touch buttons are prone to key jumps and key cancellation under the influence of environmental noise, and the existing processing methods have not effectively solved this problem.
A capacitive touch key device is designed, including a noise detection sensor. By simultaneously obtaining the sampling values of the key recognition sensor and the noise detection sensor, calculating the bottoming value and correcting the sampling values of the key recognition sensor, in order to improve the anti-interference of the key.
It effectively improves the anti-interference of capacitive touch buttons, reduces the key cancellation and key jump caused by environmental noise, and improves the accuracy of key recognition.
Smart Images

Figure CN119483576A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch screen technology, and in particular to a touch button device, a capacitive touch button recognition method, a device and a medium. Background Art
[0002] Capacitive touch buttons are commonly used in existing home appliances. Since home appliances are often affected by the power grid and have large power ripples, capacitive buttons are easily affected during use, resulting in key skipping (keys are recognized as buttons when no finger touches them) and key cancellation (keys are not recognized when there are fingers touching them). Existing processing methods mainly improve power quality through hardware and add filtering algorithms to software, but they fail to fundamentally solve the problem of noise interference in some working environments.
[0003] In summary, there is an urgent need for a capacitive touch key recognition method that can effectively improve the key anti-interference performance and improve the key cancellation and key skipping phenomena caused by environmental noise. Summary of the invention
[0004] Based on this, it is necessary to provide a touch button device, a capacitive touch button recognition method, device and medium that can effectively improve the anti-interference ability of the buttons and improve the key cancellation and key jumping phenomena caused by environmental noise to address the above technical problems.
[0005] A capacitive touch device, the touch key device comprising a noise detection sensor.
[0006] In one embodiment, the noise detection sensor is arranged around the key recognition sensor or placed at any position adjacent to the key recognition sensor.
[0007] A method for identifying a capacitive touch button, the method comprising:
[0008] Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0009] Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0010] According to the clipping value, correct the sampling value of the key recognition sensor;
[0011] The button recognition is performed using the corrected sampling value of the button recognition sensor.
[0012] In one embodiment, the calculation of the clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor is specifically:
[0013] The bottoming value is calculated according to whether the sampling value of the key recognition sensor is close to the sampling value of the noise detection sensor.
[0014] In one embodiment, the calculating the clipping value according to whether the sampling value of the key recognition sensor is close to the sampling value of the noise detection sensor comprises:
[0015] Calculating the ratio of the sampling value of the key recognition sensor to the sampling value of the noise detection sensor;
[0016] If the ratio is less than the reference parameter, the clipping value is equal to the average of the sampling value of the key recognition sensor and the sampling value of the noise detection sensor.
[0017] N=(S1+S2) / 2
[0018] Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S2 is the sampling value of the noise detection sensor;
[0019] If the ratio is greater than or equal to the reference parameter, the clipping value is equal to the average of the sampling value of the noise detection sensor and the reference noise amount.
[0020] N=(1+F)S2 / 2
[0021] Here, the reference noise amount is equal to F*S2.
[0022] In one embodiment, F is less than or equal to 2.
[0023] In one embodiment, the modifying the sampling value of the key recognition sensor according to the clipping value includes:
[0024] S1_n=S1-N
[0025] Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S1_n is the corrected sampling value of the key recognition sensor.
[0026] A device for identifying a capacitive touch button, the device comprising:
[0027] A sampling value acquisition unit, used to simultaneously acquire the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0028] A clipping value calculation unit, used to calculate the clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0029] A sampling value correction unit, used for correcting the sampling value of the key recognition sensor according to the bottom clipping value;
[0030] The key recognition unit is used to perform key recognition using the corrected sampling value of the key recognition sensor.
[0031] A touch key device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0032] Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0033] Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0034] According to the clipping value, correct the sampling value of the key recognition sensor;
[0035] The button recognition is performed using the corrected sampling value of the button recognition sensor.
[0036] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0037] Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0038] Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0039] According to the clipping value, correct the sampling value of the key recognition sensor;
[0040] The button recognition is performed using the corrected sampling value of the button recognition sensor.
[0041] The above-mentioned touch key device, capacitive touch key recognition method, apparatus and medium simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; calculate the clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; correct the sampling value of the key recognition sensor according to the clipping value; and perform key recognition with the corrected sampling value of the key recognition sensor. Since the key recognition sensor and the noise detection sensor are located in a similar area and have the same area, the interferences received by the two sensors when sampling at the same time are basically the same, and the noise detection sensor is not in the key touch position, and is not affected by the user's touch, but only by noise. Therefore, the sampling value of the key recognition sensor minus the sampling value of the noise detection sensor is the real detection touch change value of the key recognition sensor. Recognition according to the real detection touch change value can effectively improve the anti-interference ability of the key and improve the key elimination and key skipping problems caused by environmental noise. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 FIG. 1 is a schematic diagram of a first setting of a noise detection sensor in an embodiment.
[0043] Figure 2 FIG. 4 is a schematic diagram of a second configuration of a noise detection sensor in an embodiment.
[0044] Figure 3 FIG. 4 is a schematic diagram of a third configuration of a noise detection sensor in an embodiment.
[0045] Figure 4 FIG. 4 is a schematic diagram of a method for identifying a capacitive touch button in an embodiment.
[0046] Figure 5 FIG. 4 is a structural block diagram of a device for identifying a capacitive touch button in an embodiment.
[0047] Figure 6 FIG. 4 is a diagram showing the internal structure of a touch key device in an embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.
[0049] The capacitive touch button recognition method provided in the present application can be applied to devices including capacitive touch buttons, wherein the capacitive touch button devices can be but are not limited to various personal computers, laptops, smart phones, tablet computers, portable wearable devices and touch button home appliances. Figure 1-3 As shown, the touch key device includes a noise detection sensor. The noise detection sensor is arranged around the key recognition sensor or placed at any position adjacent to the key recognition sensor. Specifically, the specific arrangement of the noise detection sensor and the key recognition sensor includes:
[0050] like Figure 1 As shown, the shadowed square in the middle is the key recognition sensor, and the hollow squares surrounding it are noise detection sensors. The key recognition sensor and the noise detection sensor have the same area. The routing of the two sensors can be placed at any position, and the routing from the top in the figure is only an example.
[0051] like Figure 2 As shown in the figure, the circle shadow in the middle is the key recognition sensor, and the hollow circle surrounding it is the noise detection sensor. The key recognition sensor and the noise detection sensor have the same area. The two sensor traces can be placed at any position. Figure 2 Routing from the top is just an example.
[0052] like Figure 3As shown, the lower square shadow is the key recognition sensor, and the upper transparent square is the noise detection sensor. The key recognition sensor and the noise detection sensor have the same area. The noise detection sensor can be placed at any position adjacent to the key recognition sensor. Figure 3 This is just an example.
[0053] Among them, Figure 4 As shown, the method for identifying a capacitive touch button includes: simultaneously acquiring a sampling value of a button identification sensor and a sampling value of a noise detection sensor; calculating a clipping value according to the sampling value of the button identification sensor and the sampling value of the noise detection sensor; correcting the sampling value of the button identification sensor according to the clipping value; and performing button identification with the corrected sampling value of the button identification sensor.
[0054] In one embodiment, Figure 4 As shown, a method for identifying a capacitive touch button is provided, and the method is applied to a touch button device as an example for explanation. The touch button device includes a noise detection sensor, and the noise detection sensor is arranged around a button identification sensor or is placed at any position adjacent to the button identification sensor. The method includes the following steps:
[0055] Step S401, simultaneously acquiring the sampling value of the key recognition sensor and the sampling value of the noise detection sensor.
[0056] In this embodiment, the key recognition sensor and the noise detection sensor are sampled simultaneously to obtain the sampling value S1 of the key recognition sensor and the sampling value S2 of the noise detection sensor respectively. Since the key recognition sensor and the noise detection sensor are located in a similar area and have the same area, the interferences received by the two sensors when sampling simultaneously are basically the same, and the noise detection sensor is not in the key touch position, and is not affected by the user touch, but only by the noise.
[0057] Step S402: Calculate the clipping value according to the sampling value of the button recognition sensor and the sampling value of the noise detection sensor.
[0058] In this embodiment, the clipping value is the average of two reference noise values. Specifically, the clipping value is calculated based on whether the sampling value of the key recognition sensor and the sampling value of the noise detection sensor are close. The ratio of the sampling value of the key recognition sensor and the sampling value of the noise detection sensor is calculated; if the ratio is less than the reference parameter F, the clipping value is equal to the average of the sampling value of the key recognition sensor and the sampling value of the noise detection sensor.
[0059] N=(S1+S2) / 2
[0060] Wherein, N is the bottom-cut value, S1 is the sampling value of the key recognition sensor, and S2 is the sampling value of the noise detection sensor; when S1 / S2 < F, it indicates that the two sampling values are relatively close, and the key recognition sensor is greatly affected by noise. The reference noise amounts are both their own sampling values, and the bottom-cut value is the average of the two reference noise amounts.
[0061] If the ratio is greater than or equal to the reference parameter F, the bottom-cut value is equal to the average of the sampling value of the noise detection sensor and the reference noise amount.
[0062] N = (1 + F)S2 / 2
[0063] Wherein, the reference noise amount is equal to F*S2. When S1 / S2 >= F, it indicates that the two sampling values are quite different, and the key recognition sensor may be greatly affected by the user's touch. Taking F*S2 as the reference noise amount of S1, and the S1 reference noise amount is its own sampling value, then the bottom-cut value is the average of the two reference noise amounts.
[0064] Wherein, the reference parameter F is less than or equal to 2. When F is equal to 2, that is, the noise amount contained in S1 does not exceed 2 times that of S2, and the reference parameter can be increased or decreased according to the actual situation.
[0065] Step S403, correct the sampling value of the key recognition sensor according to the bottom-cut value.
[0066] In this embodiment, correcting the sampling value of the key recognition sensor according to the bottom-cut value includes:
[0067] S1_n = S1 - N
[0068] Wherein, N is the bottom-cut value, S1 is the sampling value of the key recognition sensor, and S1_n is the corrected sampling value of the key recognition sensor.
[0069] Step S204, perform key recognition with the corrected sampling value of the key recognition sensor.
[0070] In this embodiment, subtracting the sampling value of the noise detection sensor from the sampling value of the key recognition sensor is the true detected touch change value of the key recognition sensor. Identifying according to the true detected touch change value can effectively improve the anti-interference ability of the key and improve the problems of key cancellation and key jumping caused by environmental noise.
[0071] In the above-mentioned capacitive touch key recognition method, the sampling value of the key recognition sensor and the sampling value of the noise detection sensor are obtained simultaneously; the clipping value is calculated according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; the sampling value of the key recognition sensor is corrected according to the clipping value; and the key recognition is performed with the corrected sampling value of the key recognition sensor. Since the key recognition sensor and the noise detection sensor are located in a similar area and have the same area, the interferences received by the two sensors when sampling at the same time are basically the same, and the noise detection sensor is not in the key touch position, and is not affected by the user's touch, but only by noise. Therefore, the sampling value of the key recognition sensor minus the sampling value of the noise detection sensor is the real detection touch change value of the key recognition sensor. Recognition is performed according to the real detection touch change value, which can effectively improve the anti-interference performance of the key and improve the key elimination and key skipping problems caused by environmental noise.
[0072] It should be understood that although Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0073] In one embodiment, Figure 5 As shown, a device for identifying a capacitive touch button is provided, comprising: a sampling value acquisition unit 51, a bottoming value calculation unit 52, a sampling value correction unit 53 and a button identification unit 54, wherein:
[0074] A sampling value acquisition unit 51, used to simultaneously acquire the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0075] A clipping value calculation unit 52, used to calculate a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0076] A sampling value correction unit 53, used to correct the sampling value of the key recognition sensor according to the bottom clipping value;
[0077] The key recognition unit 54 is used to perform key recognition using the corrected sampling value of the key recognition sensor.
[0078] The clipping value calculation unit 52 is specifically used to calculate the clipping value according to whether the sampling value of the key recognition sensor is close to the sampling value of the noise detection sensor.
[0079] Furthermore, the bottom clipping value calculation unit 52 is specifically used to calculate the ratio of the sampling value of the key recognition sensor to the sampling value of the noise detection sensor;
[0080] If the ratio is less than the reference parameter, the clipping value is equal to the average of the sampling value of the key recognition sensor and the sampling value of the noise detection sensor.
[0081] N=(S1+S2) / 2
[0082] Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S2 is the sampling value of the noise detection sensor;
[0083] If the ratio is greater than or equal to the reference parameter, the clipping value is equal to the average of the sampling value of the noise detection sensor and the reference noise amount.
[0084] N=(1+F)S2 / 2
[0085] Here, the reference noise amount is equal to F*S2.
[0086] Furthermore, F is less than or equal to 2.
[0087] Furthermore, the sampling value correction unit 53 is specifically used to correct the sampling value of the key recognition sensor according to the bottom clipping value:
[0088] S1_n=S1-N
[0089] Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S1_n is the corrected sampling value of the key recognition sensor.
[0090] The specific definition of the capacitive touch button recognition device can be found in the definition of the capacitive touch button recognition method mentioned above, which will not be repeated here. Each module in the above-mentioned capacitive touch button recognition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the touch button device in the form of hardware, or can be stored in the memory in the touch button device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0091] In one embodiment, a touch key device is provided. The touch key device may be a smart terminal, and its internal structure diagram may be as follows: Figure 6As shown. The touch key device includes a processor and a memory connected via a system bus. The processor of the touch key device is used to provide computing and control capabilities. The memory of the touch key device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for identifying a capacitive touch key is implemented. The display screen of the touch key device can be a capacitive touch screen.
[0092] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the touch button device to which the scheme of the present application is applied. The specific touch button device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0093] In one embodiment, a touch key device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0094] Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0095] Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0096] According to the clipping value, correct the sampling value of the key recognition sensor;
[0097] The key recognition is performed using the corrected sampling value of the key recognition sensor.
[0098] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0099] Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0100] Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor;
[0101] According to the clipping value, correct the sampling value of the key recognition sensor;
[0102] The key recognition is performed using the corrected sampling value of the key recognition sensor.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0104] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A touch key device, characterized in that: The touch key device includes a noise detection sensor.
2. The device according to claim 1, characterized in that The noise detection sensor is arranged around the key recognition sensor or placed at any position adjacent to the key recognition sensor.
3. A method for identifying a capacitive touch button, characterized in that: The method is applicable to the touch key device according to any one of claims 1 to 2 above, and the method comprises: Simultaneously obtain the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; Calculating a clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; According to the clipping value, correct the sampling value of the key recognition sensor; The key recognition is performed using the corrected sampling value of the key recognition sensor.
4. The method according to claim 3, characterized in that The calculation of the clipping value according to the sampling value of the button identification sensor and the sampling value of the noise detection sensor is specifically: The bottoming value is calculated according to whether the sampling value of the key recognition sensor is close to the sampling value of the noise detection sensor.
5. The method according to claim 4, characterized in that The calculating of the clipping value according to whether the sampling value of the key recognition sensor is close to the sampling value of the noise detection sensor comprises: Calculating a ratio of a sampling value of the key recognition sensor to a sampling value of the noise detection sensor; If the ratio is less than the reference parameter, the clipping value is equal to the average of the sampling value of the key recognition sensor and the sampling value of the noise detection sensor. N=(S1+S2) / 2 Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S2 is the sampling value of the noise detection sensor; If the ratio is greater than or equal to the reference parameter, the clipping value is equal to the average of the sampling value of the noise detection sensor and the reference noise amount. N=(1+F)S2 / 2 Here, the reference noise amount is equal to F*S2.
6. The method according to claim 5, characterized in that The F is less than or equal to 2.
7. The method according to claim 5, characterized in that The step of correcting the sampling value of the key recognition sensor according to the clipping value includes: S1_n=S1-N Wherein, N is the clipping value, S1 is the sampling value of the key recognition sensor, and S1_n is the corrected sampling value of the key recognition sensor.
8. A capacitive touch button recognition device, characterized in that: The device comprises: A sampling value acquisition unit, used to simultaneously acquire the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; A clipping value calculation unit, used to calculate the clipping value according to the sampling value of the key recognition sensor and the sampling value of the noise detection sensor; A sampling value correction unit, used for correcting the sampling value of the key recognition sensor according to the bottom clipping value; The key recognition unit is used to perform key recognition using the corrected sampling value of the key recognition sensor.
9. A touch key device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 3 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 3 to 7 are implemented.