Summary of the invention
The purpose of the embodiment of the invention is to be intended to the capacitance plate algorithm that provides a kind of efficient higher solve prior art and to have " terrible point " phenomenon and the high problem of complexity when a plurality of touch points are positioned.
The embodiment of the invention is achieved in that a kind of touch point localization method, may further comprise the steps:
Inductor in the capacitance touch screen is carried out self-capacitance detect, described inductor comprises capable inductor and row inductor, obtains the coarse positioning result;
Carry out mutual capacitance according to described coarse positioning result and detect, obtain the fine positioning result;
Determine the position of touch point according to described fine positioning result;
Wherein, describedly inductor in the capacitance touch screen is carried out self-capacitance detect, the step of obtaining the coarse positioning result comprises:
When each the row inductor in the capacitance touch screen being applied when excitation, detect the influence value of described row inductor, if the influence value of described row inductor greater than preset value, the behavior coarse positioning that described row inductor is corresponding is capable;
When each the row inductor to capacitance touch screen applies when excitation, detect the influence value of described row inductor, if the influence value of described row inductor greater than preset value, described row inductor is corresponding classifies the coarse positioning row as;
Describedly carry out mutual capacitance according to the coarse positioning result and detect, the step of obtaining the fine positioning result is specially:
The capable corresponding capable inductor of each coarse positioning is applied excitation, detect the influence value of row inductor corresponding to all coarse positioning row, when the influence value of row inductor corresponding to described coarse positioning row during greater than preset value, described coarse positioning is classified the fine positioning row as, and described coarse positioning behavior fine positioning is capable; Perhaps
The capable corresponding capable inductor of each coarse positioning is applied excitation, detect the influence value of all row inductors of described capacitance touch screen, when the influence value of described row inductor during greater than preset value, described row inductor is corresponding classifies the fine positioning row as, and described coarse positioning behavior fine positioning is capable; Perhaps
Row inductor corresponding to each coarse positioning row applied excitation, detect the influence value of the capable corresponding capable inductor of all coarse positionings, when the influence value of the capable corresponding capable inductor of described coarse positioning during greater than preset value, described coarse positioning behavior fine positioning is capable, and described coarse positioning is classified the fine positioning row as; Perhaps
Row inductor corresponding to each coarse positioning row applied excitation, detect the influence value of all row inductors of described capacitance touch screen, when the influence value of described row inductor during greater than preset value, the behavior fine positioning that described row inductor is corresponding is capable, and described coarse positioning is classified the fine positioning row as.
Another purpose of the embodiment of the invention is to provide a kind of touch point positioning system, and system comprises:
The coarse positioning unit is used for the inductor of capacitance touch screen is carried out the self-capacitance detection, obtains the coarse positioning result;
The fine positioning unit is used for carrying out mutual capacitance according to the coarse positioning result that described coarse positioning unit obtains and detects, and obtains the fine positioning result;
The touch point positioning unit is used for determining according to the fine positioning result that described fine positioning unit obtains the position of touch point;
Wherein, described coarse positioning unit comprises:
The first stimulating module is used for all row inductors or the row inductor of capacitance touch screen are applied respectively excitation;
Row coarse positioning module is used for when the first stimulating module applies excitation to each row inductor, detects to go the influence value of inductor, and when the influence value of described row inductor during greater than preset value, the behavior coarse positioning that described row inductor is corresponding is capable;
Row coarse positioning module is used for detecting the influence value of row inductor when the first stimulating module applies excitation to each row inductor, and when the influence value of described row inductor during greater than preset value, the coarse positioning of classifying as that described row inductor is corresponding is listed as;
Described fine positioning unit comprises:
The second stimulating module, the capable corresponding capable inductor of all coarse positionings that is used for described row coarse positioning module is obtained applies respectively excitation;
The second fine positioning module, be used for when the second stimulating module applies excitation to the capable corresponding capable inductor of each coarse positioning, the influence value of the row inductor that all coarse positionings row that detection row coarse positioning module is obtained are corresponding, when the influence value of row inductor corresponding to described coarse positioning row during greater than preset value, described coarse positioning is classified the fine positioning row as, and described coarse positioning behavior fine positioning is capable; Perhaps comprise
The 3rd stimulating module, row inductor corresponding to all coarse positioning row that is used for described row coarse positioning module is obtained applies respectively excitation;
The 3rd fine positioning module, be used for when the 3rd stimulating module applies excitation to row inductor corresponding to each coarse positioning row, detect the influence value of the capable corresponding capable inductor of all coarse positionings that row coarse positioning module obtains, when the influence value of the capable corresponding capable inductor of described coarse positioning during greater than preset value, described coarse positioning behavior fine positioning is capable, and described coarse positioning is classified the fine positioning row as.The embodiment of the invention detects by the inductor in the capacitance touch screen being carried out self-capacitance, obtain the coarse positioning result, carrying out mutual capacitance according to the coarse positioning result detects, obtain the fine positioning result, determine the position of touch point according to the fine positioning result, realized the accurate location of a plurality of touch points, efficiently solve the problem of " terrible point ", and time complexity has been low.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, detect by the inductor in the capacitance touch screen being carried out self-capacitance, obtain the coarse positioning result, carrying out mutual capacitance according to the coarse positioning result detects, obtain the fine positioning result, determine the position of touch point according to the fine positioning result, realized the accurately quick location of a plurality of touch points.
Fig. 3 is the process flow diagram of the touch point localization process that provides of the embodiment of the invention.
In step S301, the inductor in the capacitance touch screen is carried out self-capacitance detect, obtain the coarse positioning result.
In embodiments of the present invention, the inductor in the capacitance touch screen comprises capable inductor and row inductor, and the capable inductor of capacitance touch screen and the intersection point of row inductor have consisted of all touch sensible points.
Step S301 specifically comprises: when each the row inductor in the capacitance touch screen being applied when excitation, detect the influence value of row inductor, if the influence value of row inductor greater than preset value, the behavior coarse positioning that the row inductor is corresponding is capable;
Step S301 specifically also comprises: when each the row inductor to capacitance touch screen applies when excitation, detect the influence value of row inductor, if the influence value of row inductor greater than preset value, the row inductor is corresponding classifies the coarse positioning row as.
In step S302, carry out mutual capacitance according to the coarse positioning result and detect, obtain the fine positioning result.
In first embodiment of the invention, the realization of step S302 is to carry out mutual capacitance according to capable all the row inductors to capacitance touch screen of the coarse positioning that obtains among the step S301 to detect, obtain the fine positioning result, be specially: the capable corresponding capable inductor of each coarse positioning is applied excitation, the influence value of all row inductors of Detection capacitance touch-screen, when the influence value of row inductor during greater than preset value, the row inductor is corresponding classifies the fine positioning row as, and coarse positioning behavior fine positioning is capable.
In second embodiment of the invention, step S302 carries out the mutual capacitance detection according to all row inductors that the coarse positioning that step S301 obtains is listed as capacitance touch screen, obtain the fine positioning result, be specially: row inductor corresponding to each coarse positioning row applied excitation, the influence value of all row inductors of Detection capacitance touch-screen, when the influence value of row inductor during greater than preset value, the behavior fine positioning that the row inductor is corresponding is capable, and it is capable that coarse positioning is classified fine positioning as.
In third embodiment of the invention, the realization of step S302 is capable according to the coarse positioning that obtains among the step S301 and the coarse positioning row, row inductor corresponding to coarse positioning row carried out mutual capacitance to be detected, obtain the fine positioning result, be specially: the capable corresponding capable inductor of each coarse positioning is applied excitation, detect the influence value of row inductor corresponding to all coarse positionings row, when the influence value of row inductor corresponding to coarse positioning row during greater than preset value, coarse positioning is classified the fine positioning row as, and coarse positioning behavior fine positioning is capable.
In fourth embodiment of the invention, the realization of step S302 is capable according to the coarse positioning that obtains among the step S301 and the coarse positioning row, the capable corresponding row inductor of coarse positioning is carried out mutual capacitance to be detected, obtain the fine positioning result, be specially: row inductor corresponding to each coarse positioning row applied excitation, detect the influence value of the capable corresponding capable inductor of all coarse positionings, when the influence value of the capable corresponding capable inductor of coarse positioning during greater than preset value, coarse positioning behavior fine positioning is capable, and coarse positioning is classified the fine positioning row as.
In step S303, determine the position of touch point according to the fine positioning result.
Step S303 is the position of touch point with fine positioning intersection point corresponding positions on capacitance touch screen capable and the fine positioning row that step S302 obtains.
When realizing the location of a plurality of touch points, the size of supposing the projection capacitance plate is 8*8, positioning result according to first, second and third touch point that obtains with four embodiment location of the present invention is identical, if the touch point number is 5, be distributed in 3 row, 3 row, for first embodiment of the invention and the second embodiment, complexity is 8+3*8=32, for third embodiment of the invention and the 4th embodiment, complexity is 8+8+3*3=25; If the touch point number is 5, be distributed in two row, three row, for first embodiment of the invention, complexity is 8+2*8=24, for second embodiment of the invention, complexity is 8+3*8=32, and for third embodiment of the invention and the 4th embodiment, complexity is 8+8+2*3=22, as from the foregoing, the complexity of third embodiment of the invention and the 4th embodiment is lower than first embodiment of the invention and the second embodiment, in concrete the application, is more excellent embodiment.
In embodiments of the present invention, influence value is specially the changing value of inductor capacitance before and after being touched, and capacitance obtains by the relaxor method.
Fig. 4 is the synoptic diagram of the location, a plurality of touch points that provides of example of the present invention.
Capable inductor and row inductor to capacitance plate carry out respectively the self-capacitance detection, and the signal that control circuit detects is shown in x and y direction upper curve.Can see, curve on the y direction, corresponding first, the third and fourth row, a peak value is arranged respectively, curve on the x direction, corresponding second, the the 4th and the 5th row have respectively a peak value, in other words, row (1), row (3), row (4) is that coarse positioning is capable, column (2), column (4), column (5) is the coarse positioning row, then capable to coarse positioning of 9 nodes corresponding to coarse positioning row carry out the mutual capacitance detection, finally 4 among definite 9 nodes obtain the position of 4 inductors of being expert in the touch point and row inductor, shown in black round dot among Fig. 4 as the touch point.
Fig. 5 is the process flow diagram of the touch point localization process that provides of example of the present invention.
In this example of the present invention, capacitance plate comprises m capable inductor, a n row inductor.I, j, m, n, M, N, S are integer, the minimum unit of transverse and longitudinal coordinate is 1.Wherein, R, Y, C, X, A, T represents array.
In step S501, the controller initialization makes i=0, j=0;
In step S502, the capable inductor of i is applied excitation successively, store the capacitance of the capable inductor that detects into array R[i], and make i=i+1;
In step S503, whether judge i greater than m, i.e. whether line scanning is finished, and is execution in step S504 then, otherwise execution in step S502;
In step S504, judge R[m] in whether have element to surpass threshold value, be execution in step S505 then, otherwise execution in step S517;
In step S505, preserve ordinate corresponding to capable inductor corresponding to this element to Y[M];
In step S506, n row inductor applied excitation successively, store the capacitance of the row inductor that detects into array C[j], and make j=j+1;
In step S507, whether judge j greater than n, i.e. whether column scan is finished, and is execution in step S508 then, otherwise execution in step S506;
In step S508, judge C[n] whether there is element to surpass threshold value, be execution in step S509 then, otherwise execution in step S514;
In step S509, preserve horizontal ordinate corresponding to row inductor corresponding to this element to X[N], and make i=0, j=0;
In step S510, whether judge i greater than M, be execution in step S515 then, otherwise execution in step S511;
In step S511, to Y[i] corresponding capable inductor applies excitation successively;
In step S512, detect X[j] capacitance of corresponding row inductor, store the capacitance that detects among the A (Y[i], X[j]) into, and make j=j+1;
In step S513, whether judge j greater than N, i.e. whether column scan is finished, and is execution in step S514 then, otherwise execution in step S512;
In step S514, make i=i+1, j=0;
In step S515, judge array A[M] whether there is element to surpass threshold value in [N], be execution in step S516 then, otherwise execution in step S517;
In step S516, preserve ordinate corresponding to this element and horizontal ordinate to T[s] [2];
In step S517, finish the location, touch point.
Wherein, step S501~S509 carries out mutual capacitance and detects, finish just location, step S509~S516 utilizes mutual capacitance to detect and finishes fine positioning, step S517 determines concrete touch point coordinate, in addition, and in step S513, the coordinate figure of preserving also can be saved in array T[s] in [2], be the position of effective touch.
The projection capacitance plate capable for m, that n is listed as, when realizing multiple point touching, the complexity of existing mutual capacitance method is m*n, the complexity of the embodiment of the invention is m+n+M*N.Take Fig. 4 as example, existing mutual capacitance algorithm complex is 8*8=64, and the complexity of the embodiment of the invention is 8+8+3*3=25.If touch-screen resolution is very high, the complexity of the embodiment of the invention can be lower than existing mutual capacitance method complexity, and " terrible point " phenomenon of having avoided the self-capacitance method to occur.
Fig. 6 is the process flow diagram of the touch point positioning system that provides of the embodiment of the invention, for convenience of explanation, only show the part relevant with the embodiment of the invention, this system is built in the unit that software unit, hardware cell or the software and hardware of display terminal or portable terminal or other-end equipment combine.
In embodiments of the present invention, the touch point positioning system mainly comprises coarse positioning unit 61, fine positioning unit 62 and touch point positioning unit 63.
Inductor in the 61 pairs of capacitance touch screens in coarse positioning unit carries out self-capacitance and detects, obtain the coarse positioning result, the coarse positioning result that fine positioning unit 62 obtains according to coarse positioning unit 61 carries out mutual capacitance and detects, obtain the fine positioning result, the fine positioning result that touch point positioning unit 63 obtains according to fine positioning unit 62 determines the position of touch point.
Wherein, the coarse positioning unit comprises:
The first stimulating module is used for all row inductors or the row inductor of capacitance touch screen are applied respectively excitation,
Row coarse positioning module is used for detecting the influence value of row inductor when the first stimulating module applies excitation to each row inductor, and when the influence value of row inductor during greater than preset value, behavior coarse positioning corresponding to inductor of going is capable;
Row coarse positioning module is used for detecting the influence value of row inductor when the first stimulating module applies excitation to each row inductor, and when the influence value of row inductor during greater than preset value, the coarse positioning of classifying as that the row inductor is corresponding is listed as.
As preferred embodiment of the present invention, the fine positioning unit comprises:
The second stimulating module is used for the capable corresponding capable inductor of all coarse positionings that row coarse positioning module is obtained is applied respectively excitation;
The second fine positioning module, be used for when the second stimulating module applies excitation to the capable corresponding capable inductor of each coarse positioning, the influence value of the row inductor that all coarse positionings row that detection row coarse positioning module is obtained are corresponding, when the influence value of row inductor corresponding to coarse positioning row during greater than preset value, coarse positioning is classified the fine positioning row as, and coarse positioning behavior fine positioning is capable.
As another preferred embodiment of the present invention, the fine positioning unit comprises:
The 3rd stimulating module, row inductor corresponding to all coarse positioning row that is used for row coarse positioning module is obtained applies respectively excitation;
The 3rd fine positioning module, be used for when the 3rd stimulating module applies excitation to row inductor corresponding to each coarse positioning row, detect the influence value of the capable corresponding capable inductor of all coarse positionings that row coarse positioning module obtains, when the influence value of the capable corresponding capable inductor of coarse positioning during greater than preset value, coarse positioning behavior fine positioning is capable, and coarse positioning is classified the fine positioning row as.
In embodiments of the present invention, influence value is specially the changing value of inductor capacitance before and after being touched, and capacitance obtains by the relaxor method.
System architecture about other non-preferred embodiments of the present invention is no longer enumerated, and its specific implementation does not repeat them here as mentioned above.
In embodiments of the present invention, detect by the inductor in the capacitance touch screen being carried out self-capacitance, obtain the coarse positioning result, carrying out mutual capacitance according to the coarse positioning result detects, obtain the fine positioning result, determine the position of touch point according to the fine positioning result, realized the accurately quick location of a plurality of touch points.The present invention adopts overall self-capacitance method to detect the mode that combines with local mutual capacitance method detection, and the location of having realized multiple point touching efficiently solves the problem of " terrible point ".Simultaneously, on algorithm complex, compare with existing mutual capacitance method detection, time complexity is low.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.