Self-capacitance touch screen vertical coordinate calculation method, electronic device and computer readable storage medium

By distinguishing between end and non-end touch points on a self-capacitive touchscreen and employing different calculation formulas and coefficients, the problem of vertical coordinate calculation deviation in existing technologies is solved, achieving higher detection accuracy and efficiency.

CN115185407BActive Publication Date: 2026-01-23ZHUHAI SPACETOUCH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210848879.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2026-01-23
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

Existing self-capacitance touchscreens have significant deviations when calculating vertical coordinates, especially when the touch point is at the top or bottom, affecting the accuracy and efficiency of subsequent adjustment algorithms.

Method used

Different calculation formulas are used to distinguish between cases where the touch point is located at the end and cases where it is not at the end. The first comparison coefficient is set by identifying the target sensor with the largest capacitance value, and the second comparison coefficient is set by combining the capacitance values ​​of the end and adjacent sensors. The first and second calculation formulas are applied to calculate the vertical coordinates respectively.

Benefits of technology

It reduces the deviation in vertical coordinate calculation, improves the accuracy and efficiency of detection, and significantly improves calculation accuracy, especially when the touch point is located at the end.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115185407B_ABST
    Figure CN115185407B_ABST
Patent Text Reader

Abstract

The application provides a self-capacitance touch screen vertical coordinate calculation method, an electronic device and a computer readable storage medium. The method comprises the following steps: obtaining a capacitance sensing value of each sensor in the vertical direction of the self-capacitance touch screen; and calculating a ratio of the sum of the capacitance sensing value of the end sensor and the capacitance sensing value of the non-end sensor in the vertical direction. If the ratio is less than a first comparison coefficient, a first calculation formula is used to calculate the vertical coordinate of the touch point on the self-capacitance touch screen. If the ratio is greater than or equal to the first comparison coefficient, a second calculation formula is used to calculate the vertical coordinate of the touch point on the self-capacitance touch screen. The application also provides an electronic device and a computer readable storage medium for implementing the above method. The application can improve the accuracy of the calculation of the vertical coordinate of the touch point and reduce the calculation amount of the subsequent adjustment algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of touch position calculation for touch screens in electronic devices. Specifically, it relates to a method for calculating the vertical coordinates of a self-capacitance touch screen, as well as an electronic device and a computer-readable storage medium for implementing this method. Background Technology

[0002] Most modern electronic devices feature touchscreens, among which self-capacitance touchscreens are common. When a user taps a self-capacitance touchscreen, its sensors detect changes in capacitance and use this to calculate the touch location. Currently, most self-capacitance touchscreens directly use the basic formula for triangulation sensors to calculate the horizontal and vertical coordinates of the touch area, then adjust these coordinates using algorithms. This approach doesn't account for the inherent biases of the basic formula, posing challenges to subsequent adjustment algorithms.

[0003] See FIG. 1 Existing self-capacitive touchscreens include multiple sensors arranged in k rows along a vertical direction (from top to bottom), with each row including two sub-sensors arranged in a triangle. For example, the sensors in the first row include a sub-sensor S1L on the left and a sub-sensor S1R on the right, the sensors in the second row include a sub-sensor S2L on the left and a sub-sensor S2R on the right, and so on.

[0004] FIG. 1 The formula for calculating the touch points of a self-capacitive touchscreen, as shown in the diagram, is as follows:

[0005]

[0006]

[0007] Where X is the x-coordinate of the touch point (left-right coordinate), and Y is the y-coordinate of the touch point (up-down coordinate). Dsl and Dsr represent the capacitive sensing values ​​obtained by the left and right sub-sensors when a finger touches the screen, respectively. L is the width of the entire self-capacitive touchscreen, and D is the height of each row of sensors. Since the height of each row of sensors is equal, the height D of each row of sensors is 1 / k of the total height of the entire self-capacitive touchscreen. n is a variable, taking values ​​from 1 to k.

[0008] If we only consider the coordinates in the vertical direction, that is, only calculate the coordinates of touch point 11 in the vertical direction, the above formula can be simplified to the following formula:

[0009]

[0010] Where Ds(n) represents the capacitance value of the nth sensor when the user's finger touches the self-capacitive touchscreen.

[0011] Based on the linear characteristics of self-capacitance measurement, assuming touch point 11 completely covers a sensor, the capacitance value detected by that sensor should be 100% (let's assume 100 corresponds to a value of 100). If touch point 11 partially covers a sensor, the capacitance value detected by that sensor will be 50. Assuming the total height of the self-capacitance touchscreen is 60, and there are 6 rows of sensors, with each row having a height of 10, we can apply Formula 3 above to calculate the position of the touch point under different conditions.

[0012] like FIGS. 2 to 4 As shown, FIG. 2 In the middle, touch point 12 is located at a non-end position of the self-capacitive touch screen, for example, at sensor S2 in the second row; FIG. 3 In the middle, touch point 13 is located at the end of the self-capacitive touch screen, for example, at the top, i.e. at the sensor S1 in the first row; FIG. 4 In the middle, touch point 14 is located at the end of the self-capacitive touch screen, for example, at the bottom, i.e., at sensor S6 in the sixth row.

[0013] If we use formula 3 above to calculate... FIGS. 2 to 4 The calculated coordinates of the vertical direction of each touch point 12, 13, and 14, and the actual coordinates of the vertical direction of each touch point 12, 13, and 14 are shown in Table 1 below.

[0014] Table 1

[0015] Touch point 12 13 14 Calculated coordinate value of touch point in vertical direction 20 13.3 56.7 Actual coordinate value of touch point in vertical direction 15 5 55

[0016] As can be seen from Table 1, there is a certain deviation between the calculated coordinates of each touch point 12, 13, and 14 in the vertical direction and the actual coordinates of each touch point 12, 13, and 14 in the vertical direction. In particular, when the touch point is located at the top or bottom, there is a large deviation between the calculated coordinate values ​​and the actual coordinate values. This adds additional adjustment requirements to the subsequent adjustment algorithm. Therefore, it is necessary to optimize the above basic formula to reduce the calculation deviation in the vertical direction. Summary of the Invention

[0017] The primary objective of this invention is to provide a method for calculating the vertical coordinates of a self-capacitance touchscreen that can effectively reduce calculation errors.

[0018] A second objective of this invention is to provide an electronic device that implements the above-described method for calculating the vertical coordinates of a self-capacitance touchscreen.

[0019] The third object of the present application is to provide a computer readable storage medium for implementing the above-mentioned method for calculating the vertical coordinate of a self-capacitance touch screen.

[0020] To achieve the first object of the present application, the present application provides a method for calculating the vertical coordinate of a self-capacitance touch screen, which comprises obtaining the capacitance sensing value of each sensor in the vertical direction of the self-capacitance touch screen; and calculating the ratio of the sum of the capacitance sensing value of the end sensor and the capacitance sensing value of the non-end sensor in the vertical direction, and if the ratio is less than a first comparison coefficient, a first calculation formula is used to calculate the vertical coordinate of the touch point on the self-capacitance touch screen, and if the ratio is greater than or equal to the first comparison coefficient, a second calculation formula is used to calculate the vertical coordinate of the touch point on the self-capacitance touch screen.

[0021] As can be seen from the above-mentioned solution, for the case that the touch point is located at the top end or the bottom end, a calculation formula different from the case that the touch point is located on the non-end sensor is used to calculate the vertical coordinate, which can improve the accuracy of the calculation of the vertical coordinate, reduce the calculation deviation, and reduce the subsequent adjustment calculation amount, thereby improving the detection accuracy and efficiency.

[0022] A preferred solution is that the first comparison coefficient is calculated as follows: identifying a target sensor with the largest capacitance sensing value among the plurality of sensors, and obtaining a target capacitance sensing value of the target sensor, and using the ratio of the target capacitance sensing value and the sum of the capacitance sensing values of the other sensors as the first comparison coefficient.

[0023] As can be seen from the above-mentioned solution, for the case that the touch point is located at the top end or the bottom end, a calculation formula different from the case that the touch point is located on the non-end sensor is used to calculate the vertical coordinate, which can improve the accuracy of the calculation of the vertical coordinate, reduce the calculation deviation, and reduce the subsequent adjustment calculation amount, thereby improving the detection accuracy and efficiency.

[0024] A further solution is that the application of the second calculation formula to calculate the vertical coordinate of the touch point on the self-capacitance touch screen comprises: using the capacitance sensing value of the end sensor, the capacitance sensing value of the adjacent sensor adjacent to the end sensor, the capacitance sensing values of the plurality of sensors, the height of each sensor in the vertical direction, and a second comparison coefficient as parameters of the second calculation formula to calculate the vertical coordinate of the touch point on the self-capacitance touch screen.

[0025] As can be seen from the above-mentioned solution, for the case that the touch point is located at the top end or the bottom end, a calculation formula different from the case that the touch point is located on the non-end sensor is used to calculate the vertical coordinate, which can improve the accuracy of the calculation of the vertical coordinate, reduce the calculation deviation, and reduce the subsequent adjustment calculation amount, thereby improving the detection accuracy and efficiency.

[0026] Further, the second comparison coefficient is calculated as follows: identifying a target sensor with the largest capacitive sensing value among the plurality of sensors, obtaining a target capacitive sensing value of the target sensor, obtaining capacitive sensing values of adjacent sensors adjacent to the target sensor, and using a ratio of the sum of the target capacitive sensing value and the capacitive sensing values of the adjacent sensors as the second comparison coefficient.

[0027] Therefore, the second comparison coefficient is a ratio of the capacitive sensing value of the target sensor and the capacitive sensing values of the two adjacent sensors, and the second comparison coefficient can reflect the overlapping degree of the touch point and the target sensor, which is beneficial to improve the accuracy of the vertical coordinate calculation of the touch point.

[0028] Further, the first comparison coefficient is a first preset value, and / or the second comparison coefficient is a second preset value.

[0029] Setting the first comparison coefficient and the second comparison coefficient as preset values can reduce the calculation amount and improve the calculation efficiency of the vertical coordinate.

[0030] Further, the second comparison coefficient is inversely proportional to the first comparison coefficient. In this way, after the first comparison coefficient is determined, the second comparison coefficient can be calculated by a simple calculation formula, thereby reducing the calculation amount of the second comparison coefficient.

[0031] Further, the application of the first calculation formula to calculate the vertical coordinate of the touch point on the self-capacitive touch screen includes: using the capacitive sensing values of the plurality of sensors and the height of each sensor in the vertical direction as parameters of the first calculation formula to calculate the vertical coordinate of the touch point on the self-capacitive touch screen.

[0032] It can be seen that, compared with the second calculation formula, the first calculation formula uses fewer parameters, and for the case that the touch point is not at the end, using a simpler calculation formula can reduce the calculation amount of the vertical coordinate and improve the detection efficiency.

[0033] To achieve the second purpose, the electronic device provided by the application includes a processor, a memory, and a self-capacitive touch screen, wherein the memory stores a computer program, and the computer program is executed by the processor to implement each step of the self-capacitive touch screen vertical coordinate calculation method.

[0034] To achieve the third purpose, the application provides a computer readable storage medium storing a computer program, and the computer program is executed by the processor to implement each step of the self-capacitive touch screen vertical coordinate calculation method. BRIEF DESCRIPTION OF DRAWINGS

[0035] FIG. 1 is a schematic view of a plurality of sensors and a touch point on a self-capacitive touch screen.

[0036] FIG. 2 is a schematic diagram of a plurality of sensors on a self-capacitance touch screen and a touch point in a first position.

[0037] FIG. 3 is a schematic diagram of a plurality of sensors on a self-capacitance touch screen and a touch point in a second position.

[0038] FIG. 4 is a schematic diagram of a plurality of sensors on a self-capacitance touch screen and a touch point in a third position.

[0039] FIG. 5 is a flow chart of an embodiment of the method for calculating the vertical coordinate of a self-capacitance touch screen.

[0040] The present application is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0041] The method for calculating the vertical coordinate of a self-capacitance touch screen is used to calculate the vertical coordinate of a touch point on a self-capacitance touch screen. The method is applied to an electronic device having a touch screen. Preferably, the electronic device is provided with a processor and a memory. The memory stores a computer program. The processor implements the above-mentioned method for calculating the vertical coordinate of a self-capacitance touch screen by executing the computer program.

[0042] Embodiment of the method for calculating the vertical coordinate of a self-capacitance touch screen:

[0043] The main idea of the embodiment is as follows. In a first aspect, the existing coordinate calculation formula is fine-tuned to obtain a basic calculation formula. In a second aspect, different calculation formulas are used to calculate the two cases where the touch point is located at the end and non-end of the self-capacitance touch screen. For example, for the case where the touch point is located at the non-end, the basic calculation formula is used for calculation. For the case where the touch point is located at the end, i.e., the touch point is located at the top or bottom end, a second calculation formula is used for calculation.

[0044] For the first aspect, the existing basic formula needs to be adjusted, i.e., the above formula 3 is adjusted. The adjusted basic formula is as follows:

[0045] Formula 4

[0046]

[0047] where Y is the calculated value of the vertical coordinate of the touch point, k is the number of rows of the self-capacitance touch screen sensors, n is a variable, which is a positive integer between 1 and k, D is the height of each row of sensors, and Ds(n) is the capacitance sensing value obtained by the nth sensor. Compared with formula 3, formula 4 adds the calculation of subtracting D, which is half the height of each row of sensors, based on formula 3.

[0048] According to the above-mentioned formula 4, the calculated coordinate value in the vertical direction of the touch point is shown in Table 2 for the three cases of FIGS. 2 to 4 .

[0049] Table 2

[0050] Touch point 12 13 14 Calculated coordinate value of touch point in vertical direction 15 8.3 51.7 Actual coordinate value of touch point in vertical direction 15 5 55

[0051] As can be seen from Table 2, for the case that the touch point is located at a non-end portion, such as the case shown in FIG. 2 , the application of formula 4 can obtain a relatively accurate calculation result, but for the case that the touch point is located at an end portion, such as the case shown in FIG. 3 , FIG. 4 , the calculated result obtained by applying formula 4 still has a certain gap from the actual value. In order to further reduce the calculation deviation, the second aspect of the embodiment is to adopt different calculation formulas for calculation for the two cases that the touch point is located at the end portion and the non-end portion of the self-capacitance touch screen.

[0052] Referring to FIG. 5 , the embodiment first performs step S11 to obtain the capacitance sensing values of each row of sensors in the vertical direction of the self-capacitance touch screen. For example, there are k rows of sensors in the vertical direction of the self-capacitance touch screen, and the capacitance sensing values of the k rows of sensors are obtained respectively.

[0053] Then, step S12 is performed to calculate the ratio of the sum of the capacitance sensing values of the end portion sensors to the sum of the capacitance sensing values of the non-end portion sensors in the vertical direction. Specifically, for the top end sensor, i.e., the first row of sensors, the capacitance sensing value of the first row of sensors is obtained, and the sum of the capacitance sensing values of the second row to the kth row of sensors is obtained, and then the sum of the capacitance sensing values of the first row of sensors and the other rows of sensors is calculated. The ratio can be calculated by the following formula:

[0054]

[0055] For the bottom end sensor, i.e., the kth row of sensors, the capacitance sensing value of the kth row of sensors is obtained, and the sum of the capacitance sensing values of the first row to the k-1th row of sensors is obtained, and then the sum of the capacitance sensing values of the kth row of sensors and the other rows of sensors is calculated. The ratio can be calculated by the following formula:

[0056]

[0057] Next, step S3 is performed to compare the values calculated by formula 5 and formula 6 with the first comparison coefficient a to determine whether the ratio calculated in step S12 is greater than the first comparison coefficient a.

[0058] The first comparison coefficient a can be calculated by the following steps: identifying the sensor with the largest capacitive sensing value among the plurality of sensors, determining the sensor as a target sensor, then obtaining a target capacitive sensing value of the target sensor, and using the ratio of the target capacitive sensing value to the sum of the capacitive sensing values of the other sensors as the first comparison coefficient a. For example, the target sensor is the sensor in the second row, and the other sensors are the sensors in the first row, the third row to the kth row. The sum of the capacitive sensing values of the other sensors is the sum of the capacitive sensing values of the sensors in the first row, the third row to the kth row. Generally, the first comparison coefficient a is related to the size of the finger touch area and the actual size of the sensor, and can be obtained by multiple measurements according to the specific structure of the self-capacitance touch screen.

[0059] Of course, in order to avoid complex calculations, an approximate coefficient can be obtained by simple calculation, for example, the first comparison coefficient a is set to a first preset value, and preferably the first preset value is greater than or equal to 1.5.

[0060] If the ratio calculated in step S12 is less than the first coefficient, step S14 is performed to calculate the coordinate of the touch point in the vertical direction using a first calculation formula. When the ratio calculated in step S12 is less than the first coefficient, it indicates that the touch point is likely not located at the end of the self-capacitance touch screen, i.e., on the middle sensor, and therefore the above formula 4 can be used as the first calculation formula to calculate the coordinate of the touch point in the vertical direction. It can be seen that the parameters of the first calculation formula include the capacitive sensing values of the plurality of sensors and the height of each sensor in the vertical direction.

[0061] If the ratio calculated in step S12 is greater than or equal to the first coefficient, step S15 is performed to calculate the coordinate of the touch point in the vertical direction using a second calculation formula. When the ratio calculated in step S12 is greater than or equal to the first coefficient, it indicates that the touch point is likely located at the end of the self-capacitance touch screen, for example, at the top end or the bottom end of the self-capacitance touch screen, and different formulas are used for calculation for the two cases respectively.

[0062] Specifically, when the touch point is located at the top end of the self-capacitance touch screen, i.e., the following conditions are met:

[0063]

[0064] The following formula 7 is used as the second calculation formula to calculate the coordinate value of the touch point in the vertical direction:

[0065]

[0066] Wherein, β is a second comparison coefficient, and Ds(n) is the capacitive sensing value detected by the nth sensor.

[0067] When the touch point is located at the bottom end of the self-capacitance touch screen, i.e. when the following condition is met:

[0068]

[0069] The following formula 8 is used as the second calculation formula to calculate the coordinate value of the touch point in the vertical direction:

[0070]

[0071] The second comparison coefficient β can be calculated or be a second preset value. If calculated, the second comparison coefficient β can be calculated using the following steps: identifying the sensor with the largest capacitance sensing value in the plurality of sensors as a target sensor, obtaining a target capacitance sensing value of the target sensor, obtaining the capacitance sensing values of the adjacent sensors adjacent to the target sensor, and using the ratio of the sum of the target capacitance sensing value and the capacitance sensing values of the adjacent sensors as the second comparison coefficient β. Generally, the adjacent sensors are the sensors in the row above and the row below the target sensor. For example, assuming that the second row of sensors is the target sensor, the adjacent sensors are the first row of sensors and the third row of sensors. If the target sensor is an end sensor, there is only one row of adjacent sensors. If the target sensor is the first row of sensors, the adjacent sensors are the second row of sensors. If the target sensor is the kth row of sensors, the adjacent sensors are the (k-1)th row of sensors.

[0072] Of course, the second comparison coefficient β can also be obtained by measuring the actual results of the self-capacitance touch screen multiple times, or by simple calculation to obtain an approximate coefficient, for example, approximately equal to 2 / α, so that the second comparison coefficient β is inversely proportional to the first comparison coefficient α.

[0073] As can be known from the above second calculation formula, the parameters used in the second calculation formula include: the capacitance sensing value of the end sensor, the capacitance sensing values of the adjacent sensors adjacent to the end sensor, the capacitance sensing values of the plurality of sensors, the height of each sensor in the vertical direction, and the second comparison coefficient.

[0074] When the first comparison coefficient α and the second comparison coefficient β are set to α=2 and β=1, respectively, the calculated coordinate values of the touch point in the vertical direction for the three cases are as shown in Table 3. FIGS. 2 to 4

[0075] Table 3

[0076] Touch point 12 13 14 Calculated coordinate value of touch point in vertical direction 15 5 55 Actual coordinate value of touch point in vertical direction 15 5 55

[0077] ​As can be seen from Table 3, the calculated coordinate values of the touch point in the vertical direction obtained by applying the method of the embodiment are basically consistent with the actual coordinate values, so that the workload of the subsequent adjustment algorithm is reduced, and the calculation of the coordinate values of the touch point in the vertical direction is more accurate.

[0078] Electronic device embodiment:

[0079] The electronic device of the embodiment is an electronic device with a display screen, the display screen is a self-capacitance display screen, and the electronic device is provided with a processor and a memory, the memory stores a computer program capable of running on the processor, and the processor implements each step of the self-capacitance touch screen vertical coordinate calculation method when executing the computer program.

[0080] For example, the computer program can be divided into one or more modules, one or more modules are stored in the memory and executed by the processor to complete each module of the present application. One or more modules can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the electronic device.

[0081] The processor of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and connects each part of the entire electronic device through various interfaces and lines.

[0082] The memory can be used to store computer programs and / or modules, and the processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc.; and the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage device.

[0083] Computer readable storage medium embodiment:

[0084] The computer program stored in the above electronic device, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be instructed by a computer program to related hardware to complete, and the computer program can be stored in a computer readable storage medium. When the processor executes the computer program, each step of the above-mentioned self-capacitance touch screen vertical coordinate calculation method can be realized.

[0085] The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium can include any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0086] Finally, it should be emphasized that the present application is not limited to the above-mentioned embodiments, for example, changes in the specific calculation methods of the first comparison coefficient and the second comparison coefficient, or changes in the number of sensors of the self-capacitance touch screen, etc. Such changes should also be included in the protection scope of the claims of the present application.

Claims

1. A method for calculating the vertical coordinates of a self-capacitive touchscreen, comprising: Acquire the capacitance sensing value of each sensor in the vertical direction of the capacitive touchscreen; Its features are: Calculate a first ratio in the vertical direction of the sum of the capacitive sensing values ​​of the top sensor and the non-top sensors; calculate a second ratio in the vertical direction of the sum of the capacitive sensing values ​​of the bottom sensor and the non-bottom sensors. If both the first and second ratios are less than a first comparison coefficient, then the first calculation formula is used to calculate the vertical coordinates of the touch point on the self-capacitive touchscreen. If either the first or second ratio is greater than or equal to the first comparison coefficient, then the second calculation formula is used to calculate the vertical coordinates of the touch point on the self-capacitive touchscreen. The calculation steps for the first comparison coefficient are as follows: identify the target sensor with the largest capacitance sensing value among the multiple sensors, obtain the target capacitance sensing value of the target sensor, and use the ratio of the target capacitance sensing value to the sum of the capacitance sensing values ​​of the other sensors as the first comparison coefficient. The first comparison coefficient is obtained by multiple measurements based on the structure of the self-capacitive touch screen.

2. The method for calculating the vertical coordinates of a self-capacitive touchscreen according to claim 1, characterized in that: Calculating the vertical coordinates of the touch point on the self-capacitance touchscreen using the second calculation formula includes: The vertical coordinates of the touch point on the self-capacitive touchscreen are calculated using the capacitive sensing value of a certain end sensor, the capacitive sensing value of the adjacent sensor adjacent to the end sensor, the capacitive sensing values ​​of all sensors, the vertical height of each sensor, and a second comparison coefficient as parameters of the second calculation formula.

3. The method for calculating the vertical coordinates of a self-capacitive touchscreen according to claim 2, characterized in that: The calculation steps for the second comparison coefficient are as follows: identify the target sensor with the largest capacitance sensing value among the multiple sensors, obtain the target capacitance sensing value of the target sensor, obtain the capacitance sensing values ​​of the adjacent sensors adjacent to the target sensor, and use the ratio of the sum of the capacitance sensing values ​​of the adjacent sensors to the target capacitance sensing value as the second comparison coefficient.

4. The method for calculating the vertical coordinates of a self-capacitive touchscreen according to any one of claims 1 to 3, characterized in that: Calculating the vertical coordinates of the touch point on the self-capacitance touchscreen using the first calculation formula includes: The vertical coordinates of the touch point on the self-capacitive touchscreen are calculated using the capacitance values ​​of all the sensors and the vertical height of each sensor as parameters of the first calculation formula.

5. An electronic device, comprising a processor, a memory, and a self-capacitive touchscreen, characterized in that, The memory stores a computer program that, when executed by a processor, implements the steps of the self-capacitive touchscreen vertical coordinate calculation method as described in any one of claims 1 to 4.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements each step of the self-capacitance touchscreen vertical coordinate calculation method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for improving accuracy of edge coordinates of projection-type capacitive touch panel

    CN104777948A

  • Positioning method, positioning device and electronic device

    CN110262705A