The present invention relates to an object detection method for a capacitive touchpad, specifically related to a method of detecting liquid on a capacitive touchpad and controller thereof.
Touch information of a capacitive touchpad, such as a type of touch object, is determined according to change in capacitance. When a liquid (for example water) is present on the capacitive touchpad and is touched by a user's finger, a conventional touch controller is not able to identify the liquid.
To overcome the shortcomings, the present invention provides a method of detecting liquid on a capacitive touchpad and a controller thereof to mitigate or obviate the aforementioned problems.
An objective of the present invention provides a method of detecting liquid on a capacitive touchpad and a controller thereof.
According to an embodiment of the present invention, the capacitive touchpad comprises multiple first sensing electrodes and multiple second sensing electrodes to form multiple sensing points located at crossings of the first electrodes and the second electrodes. The method of detecting the liquid on the capacitive touchpad, wherein the method comprises steps of:
(a) obtaining first sensing information by performing a self-capacitance measurement to the first sensing electrodes, wherein the first sensing information comprises a first sensing value of each first sensing electrode;
(b) obtaining a second sensing value of each sensing point by performing a mutual-capacitance measurement to the multiple sensing points;
(c) obtaining second sensing information by respectively accumulating the second sensing values of the sensing points corresponding to each first sensing electrode; and
(d) determining whether liquid is present on the capacitive touchpad according to the first sensing information and the second sensing information. According to another embodiment of the present invention, a controller is adapted to determine whether liquid is present on a capacitive touchpad. The capacitive touchpad comprises multiple first sensing electrodes and multiple second sensing electrodes to form multiple sensing points located at crossings of the first electrodes and the second electrodes. The controller comprises:
a storage medium adapted to store a firmware program; and
a processor coupled to the storage medium and executing the firmware program to execute following steps of:
(a) obtaining first sensing information by performing a self-capacitance measurement to the first sensing electrodes, wherein the first sensing information comprises a first sensing value of each first sensing electrode;
(b) obtaining a second sensing value of each sensing point by performing a mutual-capacitance measurement to the multiple sensing points;
(c) obtaining second sensing information by respectively accumulating the second sensing values of the sensing points corresponding to each first sensing electrodes; and
(d) determining whether liquid is present on the capacitive touchpad according to the first sensing information and the second sensing information.
According to another embodiment of the present invention, a capacitive touchpad has multiple first sensing electrodes in X direction and multiple second sensing electrodes in Y direction to form multiple sensing points located at crossings of the first electrodes and the second electrodes. The method of detecting liquid on the capacitive touchpad comprises steps of:
(a) obtaining first X-axis sensing information and first Y-axis sensing information by performing a self-capacitance measurement to the first sensing electrodes and the second sensing electrodes, wherein the first X-axis sensing information comprises a first sensing value of each first sensing electrode and the first Y-axis sensing information comprises a first sensing value of each first Y-axis sensing electrode;
(b) obtaining a second sensing value of each sensing point by performing a mutual-capacitance measurement to the multiple sensing points;
(c) obtaining second X-axis sensing information by respectively accumulating the second sensing values of the sensing points corresponding to each first sensing electrodes and obtaining second Y-axis sensing information by respectively accumulating the second sensing values of the sensing points corresponding to each second sensing electrodes; and
(d) determining whether the liquid is present on the capacitive touchpad according to the first X-axis sensing information, the first Y-axis sensing information, the second X-axis sensing information and the second Y-axis sensing information.
By the method and the controller according to the present invention, liquid on the capacitive touchpad can be identified.
Other objectives, advantages and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
Several embodiments are provided in following descriptions to explain the concept of the present invention. Please note the components in each embodiment can be implemented by hardware (e.g. circuit or device), and can implemented by firmware
With reference to
To conveniently describe the present invention, in the embodiments shown in
With further reference to
In the step S10, the controller performs a self-capacitance measurement to the first sensing electrodes X1˜X7 in the X direction and the second sensing electrodes Y1˜Y12 in the Y direction to obtain first X-axis sensing information dV_Self_X and first Y-axis sensing information dV_Self_Y as shown in
The self-capacitance measurement mentioned above comprises simultaneously driving multiple sensing electrodes. In an embodiment, when driving and reading one of the first and second sensing electrodes, the controller 20 also outputs driving signal with the same phase to the first or second sensing electrode adjacent to the driven first or second sensing electrode. For example, when measuring the first sensing value of the first sensing electrode X3, the controller 20 outputs the driving signal to the first sensing electrode X3 and two first sensing electrodes X2 and X4 adjacent to the first sensing electrode X3. When measuring the first sensing value of the second sensing electrode Y3, the controller 20 outputs the driving signal to the first sensing electrode X3 and two second sensing electrodes Y2 and Y4 adjacent to the second sensing electrode Y3.
In another embodiment, the self-capacitance measurement comprises providing the driving signal to all of the first sensing electrodes X1˜X7 at the same time and then receive multiple signals of the first sensing electrodes X1˜X7, and providing driving signal with the same phase to all of the second sensing electrodes Y1˜Y12 at the same time and then receive multiple signals of the second sensing electrodes Y1˜Y12.
In the step S20, the controller 20 performs the mutual-capacitance measurement to the multiple sensing points 100 to obtain multiple second sensing values of the sensing points 100 as shown in
After the second sensing values of the sensing points 100 are obtained, the step S30 is proceeded. In the step S30, second X-axis sensing information dVsum_Mutual_X is obtained by respectively calculate a sum of the second sensing values of the sensing points 100 corresponding to each of the first sensing electrodes X1˜X7, and second Y-axis sensing information dVsum_Mutual_Y is obtained by respectively calculate a sum of the second sensing values of the sensing points 100 corresponding to each of the second sensing electrodes Y1˜Y1.
Step S40 is to determine whether liquid is present on the capacitive touchpad 10 according to the first X-axis sensing information dV_Self_X, the second X-axis sensing information dVsum_Mutual_X, the first Y-axis sensing information dV_Self_Y and the second Y-axis sensing information dVsum_Mutual_Y.
One embodiment of the step S40 comprises determining an X-axis difference information dV_diff_X according to the first X-axis sensing information dV_Self_X and the second X-axis sensing information dVsum_Mutual_X, determining Y-axis difference information dV_diff_Y according to the first Y-axis sensing information dV_Self_Y and the second Y-axis sensing information dVsum_Mutual_Y and determining whether the liquid is present on the capacitive touchpad 10 according to the X-axis difference information dV_diff_X and/or the Y-axis difference information dV_diff_Y. More details of the step S40 are shown in
In the step S401, third X-axis sensing information Normalized_dVsum_Mutual_X is obtained by normalizing the second X-axis sensing information dVsum_Mutual_X according to the first X-axis sensing information dV_Self_X. In an embodiment of step S401, the third X-axis sensing information Normalized_dVsum_Mutual_X shown in
In the step S402, third Y-axis sensing information Normalized_dVsum_Mutual_Y is obtained by normalizing the second Y-axis sensing information dVsum_Mutual_Y according to the first Y-axis sensing information dV_Self_Y. In an embodiment of step S402, the third Y-axis sensing information Normalized_dVsum_Mutual_Y shown in
In the step S403, X-axis difference information comprising multiple X-axis differences is obtained by subtracting the third X-axis sensing information Normalized_dVsum_Mutual_X from the first X-axis sensing information dV_Self_X. The multiple X-axis differences are shown in X-axis difference information dV_diff_X of
In the act S404, Y-axis difference information comprising multiple Y-axis differences is obtained by subtracting the third Y-axis sensing information Normalized_dVsum_Mutual_Y from the first Y-axis sensing information dV_Self_Y. The multiple Y-axis differences are shown in Y-axis difference information dV_diff_Y of
In the step S405, the number of the differences greater than a threshold is determined by comparing the differences in the X-axis difference information dV_diff_X and the Y-axis difference information dV_diff_Y with a threshold. If the threshold is “50”, for example, by comparing the multiple X-axis differences in the X-axis difference information dV_diff_X, the number of the X-axis differences greater than the threshold is determined as “2”, and by comparing the multiple Y-axis differences in the Y-axis difference information dV_diff_Y with “50”, the number of the Y-axis differences greater than the threshold is determined as “2”.
Step S406 is to determine whether liquid is present on the capacitive touchpad 10 according to the number of the differences greater than the threshold obtained in the step S405. In an embodiment of the step S406, when the number of the differences greater than the threshold is greater than “0” (no matter on X direction or Y direction), it is determined that liquid is present on the capacitive touchpad. According to the comparison result of the step S405, the number of the differences greater than the threshold is “4”, so that step S406 determined that liquid is present on the capacitive touchpad 10.
Changing the sequence of the above-mentioned steps is possible. Based on the foregoing embodiment, the controller 20 may determine whether liquid is present on the capacitive touchpad 10 according one of X-axis difference information and Y-axis difference information. Therefore, some steps in
Based on the foregoing description, it is appreciated that the present invention provides the method for detecting liquid on the capacitive touchpad. The capacitive touchpad has multiple first sensing electrodes in X direction and multiple second sensing electrodes in Y direction. Multiple sensing points are formed at crossings of the first electrodes and the second electrodes. The liquid detection method comprises:
(a) obtaining first sensing information by performing a self-capacitance measurement to the first sensing electrodes, wherein the first sensing information comprises a first sensing value of each first sensing electrode;
(b) obtaining a first sensing value of each sensing point by performing a mutual-capacitance measurement to the multiple sensing points;
(c) obtaining second sensing information by respectively accumulating the second sensing values of the sensing points corresponding to each first sensing electrode; and
(d) determining whether liquid is present on the capacitive touchpad according to the first sensing information and the second sensing information.
In an embodiment, the sensing unit 22 has at least one sensing circuit 221 and at least one sample and hold circuit 222.
Following describes operation of the sensing circuit 221. In a first phase, the switch SW1 is turned on to cause the charge amount of the sensing capacitor C1 to be zero. In a second phase, the switch SW1 is turned off and the switch SW2 is turned on, and the first input terminal IN1 of the of the operational amplifier OP is connected to a target to be sensed (such as sensing point 100, a first sensing electrode or a second sensing electrode) to perform sensing. When the switch SW2 is turned on, the output voltage of the operational amplifier OP charges the sampling capacitor C2. The voltage of the sampling capacitor C2 is equal to the output voltage of the operational amplifier OP.
The voltage of the sampling capacitor C2 is related to a time period RT that the switch SW2 is turned on. In an embodiment, the time period RT is determined according to the time required for the output voltage of the operational amplifier OP reaches a steady state. In different embodiments, the length of time period RT may be controlled to have the switch SW2 turned off before the output voltage of the operational amplifier OP reaches the steady state. After the switch SW2 is turned off, the voltage value of the sampling capacitor C2 is used to determine a sensing value.
The voltage of the sampling capacitor C2 is converted to a digital value by an analog to digital converter (not shown). In one embodiment, the sensing value is calculated by subtracting a base value from the digital value. The base value is the output value of the analog to digital converter when no object touches the capacitive touchpad. The base values of each sensing point, each first sensing electrode and each second sensing electrode are not the same. In addition, in response to different driving signals, the base values are not the same.
In an embodiment, in the self-capacitance measurement of the step S10, a first driving signal TX1 as shown in
In another embodiment, the first frequency f1 may be greater, equal or less than second frequency f2. The first period RT1 may be greater, equal or less than the second period RT2. In an embodiment, the second frequency f2 is 1 MHz or more, such as any frequency in the range of 1 MHz-2 MHz. The second period RT2 may be less than or equal to 0.28125 μ/s, such as between 0.28125 μ/s˜0.09375 μ/s. In general, when the frequency of the driving signal is higher, the corresponding sensing time is shorter. In the mutual-capacitance measurement, when the frequency of the second driving signal TX2 is higher or the length of the second period RT2 is shorter, a mutual sensing value caused by liquid is smaller, which resulted in a larger difference between the self-sensing value of the first or second sensing electrode and the sum of the mutual sensing values. The present invention uses this characteristic to determine whether the liquid is present on the touchpad.
In other embodiment, when it is determined that liquid is present on the capacitive touchpad, the controller 20 provides the second driving signal TX2 or another driving signal with a higher frequency to perform the mutual-capacitance measurement for the capacitive touchpad 10 and calculates a position of a touch object according to the sensing information obtained from the mutual-capacitance measurement. The above-mentioned liquid detection method is periodically executed to confirm whether there is liquid still present on the capacitive touchpad 10.
Based on foregoing description, when the finger touches the liquid on the capacitive touchpad, the method provided by the present invention can still identify the liquid.
Even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with the details of the structure and features of the invention, the disclosure is illustrative only. Changes may be made in the details, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
107132695 | Sep 2018 | TW | national |
This application claims the benefit of United States provisional application filed on Jun. 5, 2018 and having application Ser. No. 62/680,591, the entire contents of which are hereby incorporated herein by reference. This application is based upon and claims priority under 35 U.S.C. 119 from Taiwan Patent Application No. 107132695 filed on Sep. 17, 2018, which is hereby specifically incorporated herein by this reference thereto.
Number | Date | Country | |
---|---|---|---|
62680591 | Jun 2018 | US |