Touch detection method, touch electrode structure and computer equipment
By obtaining multiple capacitance detection values within the preset period of the capacitive touch button, analyzing whether there is a conductive liquid in the sensing area, and dynamically adjusting the capacitance threshold, the error contact problem of the capacitive touch button when the conductive liquid exists is solved. , improves detection accuracy.
Patent Information
- Application Number
- CN202411420345.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-02-21
AI Technical Summary
Capacitive touch buttons are prone to accidental touch when the conductive liquid exists, and cannot accurately detect the user's touch operation.
By acquiring multiple capacitance detection values within a preset period, analyzing whether there is a conductive liquid in the sensing area, and dynamically adjusting the capacitance threshold in the presence of a conductive liquid to improve the accuracy of touch detection.
It effectively avoids the phenomenon of accidentally touch caused by conductive liquids, improves the accuracy of detection of touch actions, and ensures that non-touch areas will not cause false touch responses.
Smart Images

Figure CN119493493A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of touch technology, and in particular, to a touch detection method, a touch electrode structure, and a computer device. Background Art
[0002] As a commonly used user interaction function device, capacitive touch buttons determine whether there is a touch action by detecting the change in the capacitance of the touch electrode structure. Compared with traditional mechanical buttons, capacitive touch buttons have advantages such as beautiful appearance, low cost, low power consumption and long life, so the demand is constantly rising. However, when conductive liquid is above the capacitive touch button, it will change the capacitance of the electrode, causing the capacitive touch button to be accidentally touched, and it is impossible to accurately detect the user's touch operation. Summary of the invention
[0003] Based on this, it is necessary to provide a touch detection method, a touch electrode structure and a computer device to address the above technical problems.
[0004] In a first aspect, the present application provides a touch detection method, comprising:
[0005] Acquire capacitance detection values corresponding to a plurality of touch output signals sent by the touch electrode structure within a preset period of time, wherein the capacitance detection values are associated with a touch action of a user;
[0006] determining whether there is conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values;
[0007] In the case where the conductive liquid is determined to be present, adjusting the capacitance threshold of the touch detection;
[0008] It is determined whether there is a touch action in the sensing area of the touch electrode structure according to the adjusted capacitance threshold and the capacitance detection value acquired in real time.
[0009] In one embodiment, determining whether there is a conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values includes:
[0010] Obtaining the change rates of a plurality of the capacitance detection values within the preset time period;
[0011] When the change rate is greater than the abnormal rate threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
[0012] In one embodiment, determining whether there is a conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values includes:
[0013] Obtaining the stability of a plurality of the capacitance detection values within the preset time period;
[0014] When the stability is greater than the abnormal stability threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
[0015] In one embodiment, the obtaining the stability of the plurality of capacitance detection values within the preset time period includes:
[0016] Obtaining a variance of a plurality of the capacitance detection values within the preset time period;
[0017] The step of determining that there is a conductive liquid in the sensing area of the touch electrode structure when the stability is greater than an abnormal stability threshold comprises:
[0018] When the variance is greater than the abnormal variance threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
[0019] In one embodiment, adjusting the capacitance threshold of touch detection includes:
[0020] When there is a conductive liquid in the sensing area of the touch electrode structure and there is no touch action, obtaining a current calibration capacitance value;
[0021] Get the difference between the current calibration capacitance value and the initial capacitance value;
[0022] The adjusted capacitance threshold is obtained according to the difference and the initial capacitance threshold.
[0023] In one embodiment, it also includes:
[0024] When there is no conductive liquid in the sensing area of the touch electrode structure and no touch action, obtaining a plurality of capacitance detection values;
[0025] The initial capacitance value is obtained according to the plurality of capacitance detection values after low-pass filtering.
[0026] In one embodiment, it also includes:
[0027] When it is determined that no conductive liquid exists in the sensing area of the touch electrode structure according to the plurality of capacitance detection values, it is determined whether there is a touch action in the sensing area of the touch electrode structure according to an initial capacitance threshold and the capacitance detection values acquired in real time.
[0028] In one embodiment, the touch electrode structure includes a first electrode and a second electrode spaced apart from each other, the second electrode is disposed outside the first electrode, and the touch detection method further includes:
[0029] Providing a touch input signal to the first electrode in a first detection phase, and acquiring a first touch output signal output by the second electrode;
[0030] providing a touch input signal to the second electrode in a second detection phase, and acquiring a second touch output signal output by the first electrode;
[0031] It is determined whether there is conductive liquid in the sensing area of the touch electrode structure according to a first capacitance detection value corresponding to the first touch output signal and a second capacitance detection value corresponding to the second touch output signal.
[0032] In a second aspect, the present application provides a touch electrode structure, including a first electrode layer and a second electrode layer;
[0033] The first electrode layer is provided with a first electrode and a second electrode, the second electrode is arranged outside the first electrode, one of the first electrode and the second electrode is used to receive a touch input signal, and the other is used to send a touch output signal; the capacitance detection value corresponding to the touch output signal is associated with a touch action of a user;
[0034] The second electrode layer is provided with a grounding electrode, and the grounding electrode is connected to the ground to shield interference signals.
[0035] In a third aspect, the present application provides a computer device, comprising:
[0036] The touch electrode structure as described above;
[0037] The controller is connected to the first electrode and the second electrode respectively, and is used to execute the touch detection method as described above.
[0038] The above touch detection method, touch electrode structure and computer device can analyze whether there is conductive liquid in the sensing area of the touch electrode structure according to the change of the capacitance detection value in the preset time period based on the multiple capacitance detection values obtained within the preset time period. Moreover, in the presence of conductive liquid, the capacitance threshold corresponding to the touch electrode structure can be dynamically adjusted to adapt to the new environment under the influence of the conductive liquid. Specifically, under the influence of the conductive liquid, the touch area can recognize the touch operation, and the non-touch area will not produce a false touch response, thereby improving the detection accuracy of the touch action. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is one of the flow charts of a touch detection method according to an embodiment;
[0041] Figure 2 This is a second flowchart of a touch detection method according to an embodiment;
[0042] Figure 3 A sub-flow chart of adjusting the capacitance threshold of touch detection in the steps of an embodiment;
[0043] Figure 4 is a schematic structural diagram of a first electrode and a second electrode of a touch electrode structure in an embodiment;
[0044] Figure 5 is a schematic diagram of a first touch output signal and a second touch output signal according to an embodiment;
[0045] Figure 6 is a schematic structural diagram of a ground electrode of a touch electrode structure in an embodiment;
[0046] Figure 7 is an internal structure diagram of a computer device according to an embodiment;
[0047] Figure 8 FIG. 4 is a structural block diagram of a touch detection device according to an embodiment of the present invention. 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] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first electrode may be referred to as a second electrode, and similarly, a second electrode may be referred to as a first electrode.
[0050] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. "Multiple" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined. "Several" means at least one, such as one, two, etc., unless otherwise clearly and specifically defined.
[0051] In the related art, in order to reduce the impact of conductive liquids on capacitive touch buttons, a self-interconnected solution or a protective electrode solution is usually adopted. Among them, the self-interconnected solution is based on the characteristics that the user's touch action will cause the mutual capacitance button to reduce the coupling capacitance, and the contact of liquids and other conductive liquids will increase the coupling capacitance, and the dynamic scanning of self-capacitance and mutual capacitance is added to achieve the waterproof function. The protective electrode solution is to detect liquid by connecting a circle of electrodes around the sensing electrode. When the outer circle of electrodes detects water, the sensing electrode stops responding. However, the self-interconnected solution has problems such as high cost and complex design, and is not suitable for small computer equipment. The protective electrode solution can only achieve no false response when there is water, and cannot achieve the effect of touch even in the presence of water.
[0052] Therefore, the present application provides a touch detection method. Figure 1 FIG. 1 is a flow chart of a touch detection method according to an embodiment of the present invention. Figure 1 , the touch detection method includes steps 102 to 108.
[0053] Step 102 : acquiring capacitance detection values corresponding to a plurality of touch output signals sent by the touch electrode structure within a preset period of time.
[0054] Among them, the computer device may include a plurality of touch electrode structures respectively arranged at different positions, and the touch electrode structure may be a capacitive touch electrode structure. Specifically, the capacitance detection value is associated with the user's touch action. The touch electrode structure may send a touch output signal cyclically under the control of the controller to characterize the change of the capacitance detection value of each capacitive button in real time, and the memory stores the capacitance detection values corresponding to the plurality of touch output signals within a preset time period as a basis for subsequent analysis. The preset time period may be a time period closest to the current moment, and the duration of the preset time period may be less than 0.5s to ensure the real-time nature of the stored electrical capacitance value. Exemplarily, the duration of the preset time period is 0.05s, 0.1s, 0.2s, 0.5s, etc. It is understandable that the duration of the preset time period can be adaptively adjusted according to the usage scenario of the touch electrode structure.
[0055] Step 104 : determining whether there is conductive liquid in the sensing area of the touch electrode structure according to the multiple capacitance detection values.
[0056] Step 106: When it is determined that there is a conductive liquid, adjust the capacitance threshold of touch detection.
[0057] Step 108 , judging whether there is a touch action in the sensing area of the touch electrode structure according to the adjusted capacitance threshold and the capacitance detection value acquired in real time.
[0058] Among them, when the capacitance detection value is greater than the capacitance threshold, it is judged that there is a touch action. When the capacitance detection value is not greater than the capacitance threshold, it is judged that there is no touch action. Therefore, adjusting the capacitance threshold of touch detection can be to increase the capacitance threshold, so that only when the capacitance detection value is large, it is judged that there is a touch action, so as to avoid false touch when the conductive liquid causes a small fluctuation in the capacitance detection value, and reduce the detection effect of the conductive liquid on the touch action. It can be understood that only the capacitance threshold of the touch electrode structure where there is conductive liquid in the sensing area can be adjusted, and the capacitance thresholds of other touch electrode structures can be kept unchanged, so as to accurately judge the touch action based on the actual situation of each touch electrode structure.
[0059] In the embodiment of the application, based on multiple capacitance detection values obtained within a preset period of time, it is possible to analyze whether there is conductive liquid in the sensing area of the touch electrode structure according to the change of the capacitance detection value within the preset period of time. Moreover, in the presence of conductive liquid, the capacitance threshold corresponding to the touch electrode structure can be dynamically adjusted to adapt to the new environment under the influence of the conductive liquid. Specifically, under the influence of the conductive liquid, the touch area can recognize the touch operation, and the non-touch area will not produce a false touch response, thereby improving the detection accuracy of the touch action.
[0060] In one of the embodiments, after adjusting the capacitance threshold of touch detection, the change of the capacitance detection value of the corresponding touch electrode structure can be continuously monitored, and the capacitance threshold can be adjusted accordingly to form a closed-loop control, thereby maintaining the stability and accuracy of the touch detection method.
[0061] In one embodiment, the touch detection method further includes: when it is determined that there is no conductive liquid in the sensing area of the touch electrode structure according to multiple capacitance detection values, judging whether there is a touch action in the sensing area of the touch electrode structure according to the initial capacitance threshold and the capacitance detection value obtained in real time. Specifically, if there is no conductive liquid in the sensing area of the touch electrode structure for a certain period of time after adjusting the capacitance threshold of the touch detection, the judgment of the touch action based on the initial capacitance threshold can be restored. It can be understood that the initial capacitance threshold is lower than the adjusted capacitance threshold, so touch actions of small area and small touch force can be detected, thereby improving the sensitivity of the touch detection method. Among them, the duration of the absence of conductive liquid can be the same as the duration of the aforementioned preset period, or it can be longer than the duration of the preset period, which is not limited here. Further, in the process of restoring to the initial capacitance threshold, it can be gradually reduced in a smooth transition manner to avoid misjudgment caused by sudden switching of the capacitance threshold.
[0062] In one of the embodiments, the step of determining whether there is conductive liquid in the sensing area of the touch electrode structure based on multiple capacitance detection values includes: obtaining the change rate of multiple capacitance detection values within a preset time period; when the change rate is greater than the abnormal rate threshold, determining that there is conductive liquid in the sensing area of the touch electrode structure. Specifically, the user's touch operation is usually a process from distance to contact, and this touch action is reflected as a relatively gentle change in the rawdata of the capacitance detection value. However, the change rate of the capacitance detection value caused by the occlusion of the conductive liquid is faster, so that the rawdata presents a steeper upward or downward trend. Therefore, by comparing the change rate of the capacitance detection value, it is possible to effectively determine whether it is the user's touch operation or the occlusion of the touch electrode structure by the conductive liquid, so that the situation of the conductive liquid can be intuitively judged.
[0063] In one of the embodiments, the capacitance detection value and the corresponding timestamp can be obtained at a preset sampling frequency, and M sampling points within a preset time period can be recorded. The total amount of capacitance value change ΔC and the corresponding preset time period duration ΔT in the M sampling points are obtained to obtain the change rate S=ΔC / ΔT, where the change rate can also be referred to as the slope of the capacitance detection value. Furthermore, an abnormal rate threshold can be set according to experimental or empirical data, so that when the change rate obtained by the detection is greater than the abnormal rate threshold, it is determined that there is a conductive liquid in the sensing area of the touch electrode structure. In addition, a normal rate range can also be set, and the maximum value in the normal rate range is less than the abnormal rate threshold, and covers the change rate that may be generated when the user touches normally. Therefore, when the change rate is within the normal rate range, the presence of a touch action can be determined in combination with the capacitance detection value obtained in real time.
[0064] In one of the embodiments, the step of determining whether there is a conductive liquid in the sensing area of the touch electrode structure based on multiple capacitance detection values includes: obtaining the stability of multiple capacitance detection values within a preset time period; when the stability is greater than an abnormal stability threshold, determining that there is a conductive liquid in the sensing area of the touch electrode structure. Specifically, the user's touch operation will show higher stability, but when the conductive liquid covers and blocks the touch electrode structure, the size and thickness of the droplets will fluctuate due to the fluidity of the liquid, resulting in greater jitter in the rawdata of the capacitance detection value. Therefore, higher stability is a significant feature of the user's touch operation. By comparing the stability of the capacitance detection value, it is possible to effectively determine whether it is the user's touch operation or the conductive liquid blocking the touch electrode structure, so that the situation of the conductive liquid can be intuitively judged.
[0065] In one embodiment, the step of determining whether there is conductive liquid in the sensing area of the touch electrode structure according to multiple capacitance detection values includes: obtaining the variance of multiple capacitance detection values within a preset time period; and determining that there is conductive liquid in the sensing area of the touch electrode structure when the variance is greater than an abnormal variance threshold. Specifically, the capacitance detection value and the corresponding timestamp can be obtained at a preset sampling frequency, and M sampling points within the preset time period can be recorded. The formula is used Get the variance of M sampling points, where M is the number of sampling points in the preset period, x i is the capacitance value of each sample, and u is the average value of the capacitance detection value within a preset period of time. Furthermore, an abnormal stability threshold can be set based on experimental or empirical data, so that when the change rate of the detection acquisition is greater than the abnormal variance threshold, it is determined that there is a conductive liquid in the sensing area of the touch electrode structure. In addition, when the variance is less than the abnormal variance threshold, it can be determined that there is no shielding of the touch electrode structure by the conductive liquid.
[0066] Figure 2 This is a second flow chart of a touch detection method according to an embodiment, referring to Figure 2 In one embodiment, the touch detection method includes steps 202 to 210.
[0067] Step 202 : acquiring capacitance detection values corresponding to a plurality of touch output signals sent by the touch electrode structure within a preset period of time.
[0068] Step 204 , obtaining the change rate of the plurality of capacitance detection values within a preset period of time, and obtaining the variance of the plurality of capacitance detection values within the preset period of time.
[0069] Step 206 : when the rate of change is greater than the abnormal rate threshold and the variance is greater than the abnormal variance threshold, it is determined that there is a conductive liquid in the sensing area of the touch electrode structure.
[0070] Step 208: When it is determined that there is a conductive liquid, adjust the capacitance threshold of touch detection.
[0071] Step 210 , judging whether there is a touch action in the sensing area of the touch electrode structure according to the adjusted capacitance threshold and the capacitance detection value acquired in real time.
[0072] In the embodiments of the application, the accuracy and reliability of the touch detection method can be further improved by combining the change rate and variance of multiple capacitance detection values within a preset period of time to comprehensively judge whether there is conductive liquid in the sensing area of the touch electrode structure. Furthermore, the abnormal rate threshold and the abnormal variance threshold can be adaptively adjusted according to historical data or environmental changes to better adapt to different usage scenarios and environmental conditions.
[0073] In one embodiment, Figure 3 This is a sub-flow chart of adjusting the capacitance threshold of touch detection in the steps of an embodiment, refer to Figure 3 , adjusting the capacitance threshold of touch detection includes steps 302 to 306.
[0074] Step 302 : When there is conductive liquid in the sensing area of the touch electrode structure and there is no touch action, obtain the current calibration capacitance value.
[0075] Specifically, there may be a conductive liquid in the sensing area of the touch electrode structure, and the capacitance detection value of the computer device in the standby state may be used as the calibration capacitance value rawdata1, thereby reducing the influence of the user operation on the detection result. Moreover, multiple capacitance detection values may be obtained when the computer device is in the standby state, and the average value of the multiple capacitance detection values may be used as the calibration capacitance value rawdata1.
[0076] Step 304: Obtain the difference between the current calibration capacitance value and the initial capacitance value.
[0077] The difference Δrawdata is rawdata1-rawdata0. Specifically, the capacitance detection value of the computer device during the startup phase can be used as the initial capacitance value rawdata0, thereby reducing the impact of user operations on the detection result. Moreover, multiple capacitance detection values can be obtained during the startup phase of the computer device, and the average value of the multiple capacitance detection values can be used as the initial capacitance value rawdata0.
[0078] Step 306: Obtain an adjusted capacitance threshold according to the difference and the initial capacitance threshold.
[0079] Specifically, the difference Δrawdata can be added to the initial capacitance threshold base0 to form the adjusted capacitance threshold base1. It is understandable that, while the conductive liquid is in the sensing area of the touch electrode structure, the change of the calibration capacitance value rawdata1 can be continuously monitored, and the capacitance threshold base1 can be dynamically adjusted to cope with the impact of the change of the conductive liquid on the touch detection, thereby balancing the probability of false touch and missed touch.
[0080] In one of the embodiments, the touch detection method further includes: obtaining multiple capacitance detection values when there is no conductive liquid in the sensing area of the touch electrode structure and no touch action; obtaining the initial capacitance value according to the multiple capacitance detection values after low-pass filtering. Specifically, rawdata0 will change with changes in environmental factors such as temperature and humidity. Therefore, the capacitance detection value after low-pass filtering can continuously track and compensate for the gradual change of the raw data due to the environment, and stop following when there is a touch operation, thereby improving the accuracy of the initial capacitance value.
[0081] In one embodiment, Figure 4 FIG. 1 is a schematic diagram of the structure of the first electrode and the second electrode of the touch electrode structure in an embodiment, referring to FIG. Figure 4 The touch electrode structure includes a first electrode 11 and a second electrode 12 that are spaced apart from each other. The second electrode 12 is disposed outside the first electrode 11, and two detection stages are configured within one detection cycle to further improve the accuracy of conductive liquid judgment.
[0082] Specifically, the touch detection method further includes: providing a touch input signal to the first electrode 11 in the first detection phase, and obtaining a first touch output signal output by the second electrode 12. Providing a touch input signal to the second electrode 12 in the second detection phase, and obtaining a second touch output signal output by the first electrode 11. That is, in different detection phases, the first electrode 11 and the second electrode 12 serve as an input electrode and an output electrode, respectively. According to the first capacitance detection value corresponding to the first touch output signal and the second capacitance detection value corresponding to the second touch output signal output, it can be determined whether there is a conductive liquid in the sensing area of the touch electrode structure. Figure 5 FIG. 1 is a schematic diagram of a first touch output signal and a second touch output signal according to an embodiment of the present invention. Figure 5 When the user performs a touch action, the first capacitance detection value corresponding to the first touch output signal is higher than the second capacitance detection value corresponding to the second touch output signal. When there is a conductive liquid, the first capacitance detection value corresponding to the first touch output signal is lower than the second capacitance detection value corresponding to the second touch output signal. Therefore, the signal characteristics corresponding to the touch operation and the conductive liquid are opposite, so that reliable conductive liquid judgment can be achieved.
[0083] Based on the situation where two detection stages are configured within one detection cycle, the change rate and stability of the first capacitance detection values corresponding to multiple first touch output signals, as well as the change rate and stability of the second capacitance detection values corresponding to multiple second touch output signal outputs can be analyzed separately, and combined with the size relationship between the first capacitance detection value and the second capacitance detection value, a comprehensive judgment can be made to further improve the accuracy of conductive liquid judgment.
[0084] In one of the embodiments, the current waterproof status and operation results can be fed back through LED lights, buzzers or software interfaces, so as to intuitively prompt the user.
[0085] The present application also provides a touch electrode structure, the touch electrode structure comprising a first electrode layer and a second electrode layer. Figure 4 The first electrode layer is provided with a first electrode 11 and a second electrode 12, and the second electrode 12 is arranged outside the first electrode 11, and the first electrode 11 and the second electrode 12 are arranged concentrically. That is, a floating area is provided between the first electrode 11 and the second electrode 12, and the second electrode 12 can also be called an active shielding layer SHD, and the second electrode 12 is used to reduce the coupling capacitance between the conductive liquid and the ground, thereby reducing the influence of the conductive liquid on the capacitance detection value. It should be noted that Figure 4 The first electrode 11 and the second electrode 12 shown as having a square outer contour are only for exemplary description, and the outer contour shape of the first electrode 11 and the second electrode 12 may also be a circle, etc., which is not limited here. Figure 6 FIG. 1 is a schematic diagram of the structure of the ground electrode of the touch electrode structure in an embodiment, referring to FIG. Figure 6 The second electrode layer is provided with a grounding electrode 13, the outer contour of the grounding electrode 13 matches the shape and size of the outer contour of the first electrode 11, and the grounding electrode 13 is connected to the ground to shield interference signals in the isolation environment and prevent false touches.
[0086] Furthermore, one of the first electrode 11 and the second electrode 12 is used to receive a touch input signal, and the other is used to send a touch output signal, and the capacitance detection value corresponding to the touch output signal is associated with the user's touch action. Specifically, in different detection stages, the first electrode 11 and the second electrode 12 can be used as input electrodes respectively, that is, in the first detection stage, a touch input signal is provided to the first electrode 11, and the first touch output signal output by the second electrode 12 is obtained. In the second detection stage, a touch input signal is provided to the second electrode 12, and the second touch output signal output by the first electrode 11 is obtained. Therefore, by setting the first electrode 11 and the second electrode 12 in the first electrode layer, and the ground electrode 13 in the second electrode layer, the interference of the conductive liquid and environmental factors on the capacitance detection value can be reduced to a certain extent through the hardware structure. Moreover, combined with the driving logic of the touch input signal, more touch output signals can be obtained, thereby realizing further detection of whether there is conductive liquid in the sensing area of the touch electrode structure.
[0087] It should be understood that, although the steps in each flowchart are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in each flowchart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0088] The embodiment of the present application also provides a computer device, including a controller and a touch electrode structure as described above, the controller is respectively connected to the first electrode and the second electrode, and is used to execute the touch detection method as described above. Specifically, during the startup phase, the computer device can load necessary configuration parameters and algorithm models such as slope algorithm and stability algorithm parameters, and initialize the hardware interface of the capacitive button to ensure that all sensors are in a state to be detected. Under the current hardware design framework, the interference of some conductive liquids on the capacitance detection value can be preliminarily filtered out, and for the touch output signal corresponding to the conductive liquid with a signal strength similar to the user's touch operation, a software algorithm can be further used to accurately identify whether there is a conductive liquid, and in the presence of a conductive liquid, dynamically adjust the capacitance threshold, so that the user's touch operation can be accurately identified and responded to in the presence of a conductive liquid, so as to achieve a more complex touch function.
[0089] The computer device may be a terminal. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Figure 7 The figure is an internal structure diagram of a computer device of an embodiment. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer 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. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a touch detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse.
[0090] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0091] Figure 8 is a structural block diagram of a touch detection device according to an embodiment, Figure 8 The touch detection device includes a capacitance acquisition module, a foreign matter judgment module, a threshold adjustment module and a touch judgment module.
[0092] Among them, the capacitance acquisition module is used to obtain the capacitance detection value corresponding to the multiple touch output signals sent by the touch electrode structure within a preset time period, and the capacitance detection value is associated with the user's touch action. The foreign matter judgment module is used to determine whether there is a conductive liquid in the sensing area of the touch electrode structure according to the multiple capacitance detection values. The threshold adjustment module is used to adjust the capacitance threshold of touch detection when it is determined that there is a conductive liquid. The touch judgment module is used to determine whether there is a touch action in the sensing area of the touch electrode structure according to the adjusted capacitance threshold and the capacitance detection value obtained in real time.
[0093] In one of the embodiments, the foreign matter determination module is used to obtain the change rate of multiple capacitance detection values within a preset time period; when the change rate is greater than an abnormal rate threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
[0094] In one of the embodiments, the foreign matter determination module is used to obtain the stability of multiple capacitance detection values within a preset time period; when the stability is greater than an abnormal stability threshold, it is determined that there is a conductive liquid in the sensing area of the touch electrode structure.
[0095] In one of the embodiments, the foreign matter determination module is used to obtain the variance of multiple capacitance detection values within a preset time period; when the variance is greater than an abnormal variance threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
[0096] In one of the embodiments, the threshold adjustment module is used to obtain the current calibration capacitance value when there is a conductive liquid in the sensing area of the touch electrode structure and there is no touch action; obtain the difference between the current calibration capacitance value and the initial capacitance value; and obtain the adjusted capacitance threshold based on the difference and the initial capacitance threshold.
[0097] In one of the embodiments, the touch detection device also includes an initial acquisition module, which is used to obtain multiple capacitance detection values when there is no conductive liquid in the sensing area of the touch electrode structure and no touch action; and obtain the initial capacitance value based on the multiple capacitance detection values after low-pass filtering.
[0098] In one of the embodiments, the touch judgment module is also used to judge whether there is a touch action in the sensing area of the touch electrode structure according to the initial capacitance threshold and the capacitance detection value obtained in real time when it is determined that there is no conductive liquid in the sensing area of the touch electrode structure according to multiple capacitance detection values.
[0099] In one embodiment, the touch electrode structure includes a first electrode 11 and a second electrode 12 spaced apart from each other, and the second electrode 12 is arranged outside the first electrode 11. The touch judgment module is also used to provide a touch input signal to the first electrode 11 in a first detection phase, and obtain a first touch output signal output by the second electrode 12; provide a touch input signal to the second electrode 12 in a second detection phase, and obtain a second touch output signal output by the first electrode 11; determine whether there is a conductive liquid in the sensing area of the touch electrode structure according to a first capacitance detection value corresponding to the first touch output signal and a second capacitance detection value corresponding to the second touch output signal.
[0100] The division of each module in the above-mentioned touch detection device is only for illustration. In other embodiments, the touch detection device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned touch detection device. For the specific definition of the touch detection device, please refer to the definition of the touch detection method above, which will not be repeated here. The various modules in the above-mentioned touch detection 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 computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0101] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0102] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[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 embodiments only express several implementation methods of the embodiments 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 those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the embodiments of the present application, and these all belong to the protection scope of the embodiments of the present application. Therefore, the protection scope of the patent of the embodiments of the present application shall be subject to the attached claims.
Claims
1. A touch detection method, characterized in that: include: Acquire capacitance detection values corresponding to a plurality of touch output signals sent by the touch electrode structure within a preset period of time, wherein the capacitance detection values are associated with a touch action of a user; determining whether there is conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values; In the case where the conductive liquid is determined to be present, adjusting the capacitance threshold of the touch detection; It is determined whether there is a touch action in the sensing area of the touch electrode structure according to the adjusted capacitance threshold and the capacitance detection value acquired in real time.
2. The touch detection method according to claim 1, characterized in that: The step of determining whether there is a conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values comprises: Obtaining the change rates of the plurality of capacitance detection values within the preset time period; When the change rate is greater than the abnormal rate threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
3. The touch detection method according to claim 1 or 2, characterized in that: The step of determining whether there is a conductive liquid in the sensing area of the touch electrode structure according to the plurality of capacitance detection values comprises: Obtaining the stability of a plurality of the capacitance detection values within the preset time period; When the stability is greater than the abnormal stability threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
4. The touch detection method according to claim 3, characterized in that: The obtaining the stability of the plurality of capacitance detection values within the preset time period includes: Obtaining a variance of a plurality of the capacitance detection values within the preset time period; The step of determining that there is a conductive liquid in the sensing area of the touch electrode structure when the stability is greater than an abnormal stability threshold comprises: When the variance is greater than the abnormal variance threshold, it is determined that there is conductive liquid in the sensing area of the touch electrode structure.
5. The touch detection method according to claim 1, characterized in that: The adjusting the capacitance threshold of touch detection includes: When there is a conductive liquid in the sensing area of the touch electrode structure and there is no touch action, obtaining a current calibration capacitance value; Get the difference between the current calibration capacitance value and the initial capacitance value; The adjusted capacitance threshold is obtained according to the difference and the initial capacitance threshold.
6. The touch detection method according to claim 5, characterized in that: Also includes: When there is no conductive liquid in the sensing area of the touch electrode structure and no touch action, obtaining a plurality of capacitance detection values; The initial capacitance value is obtained according to the plurality of capacitance detection values after low-pass filtering.
7. The touch detection method according to claim 1, characterized in that: Also includes: When it is determined that no conductive liquid exists in the sensing area of the touch electrode structure according to the plurality of capacitance detection values, it is determined whether there is a touch action in the sensing area of the touch electrode structure according to an initial capacitance threshold and the capacitance detection values acquired in real time.
8. The touch detection method according to claim 1, characterized in that: The touch electrode structure includes a first electrode and a second electrode spaced apart from each other, the second electrode is disposed outside the first electrode, and the touch detection method further includes: Providing a touch input signal to the first electrode in a first detection phase, and acquiring a first touch output signal output by the second electrode; providing a touch input signal to the second electrode in a second detection phase, and acquiring a second touch output signal output by the first electrode; It is determined whether there is conductive liquid in the sensing area of the touch electrode structure according to a first capacitance detection value corresponding to the first touch output signal and a second capacitance detection value corresponding to the second touch output signal.
9. A touch electrode structure, characterized in that: comprising a first electrode layer and a second electrode layer; The first electrode layer is provided with a first electrode and a second electrode, the second electrode is arranged outside the first electrode, one of the first electrode and the second electrode is used to receive a touch input signal, and the other is used to send a touch output signal; the capacitance detection value corresponding to the touch output signal is associated with a touch action of a user; The second electrode layer is provided with a grounding electrode, and the grounding electrode is connected to the ground to shield interference signals.
10. A computer device, characterized in that: include: The touch electrode structure as claimed in claim 9; A controller is connected to the first electrode and the second electrode respectively, and is used to execute the touch detection method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Electronic circuit with capacitive switching ability
CN101253688A
Touch type input device and method for detecting touching of touch panel
CN104142768A
Systems, methods, and devices for touch event and hover event detection
CN107430471A
Method and device for reminding state of touch control key of cooking utensil
CN108266765A
Touch panel wet state detection method and capacitive touch apparatus
CN108271418A
Cited By
Touch device and touch signal detection method
CN120415410A