CN102591546A - Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment - Google Patents
Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment Download PDFInfo
- Publication number
- CN102591546A CN102591546A CN2012100236551A CN201210023655A CN102591546A CN 102591546 A CN102591546 A CN 102591546A CN 2012100236551 A CN2012100236551 A CN 2012100236551A CN 201210023655 A CN201210023655 A CN 201210023655A CN 102591546 A CN102591546 A CN 102591546A
- Authority
- CN
- China
- Prior art keywords
- directions
- negative pole
- pole end
- touch screen
- vcc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention relates to a method for recognizing and detecting multi-touch gesture based on a four-wire resistive touch screen of electronic equipment. The method comprises loading voltage in different manners to obtain a first voltage and a second voltage, respectively; detecting and calculating the coordinates of the center points of two touch points; calculating the distance factor between the two touch points; and determining the gesture action of multi-touch according to the magnitude and change trend of the distance factor. The method provided by invention can determine and detect the double-finger touch operation and the gesture type, and can directly realize touch gesture determination by use of the low-cost four-wire resistive screen without the need of the complex scheme for determining the gesture action. The method is simple and quick in processing, accurate in recognition and detection, stable in work performance, and has the advantages of less consumption of system resources, low cost and wide application range, thereby bringing great convenience to people's work and life.
Description
Technical field
The present invention relates to electronic device field, particularly the touch-control input technology field in the electronic equipment specifically is meant in a kind of electronic equipment and realizes the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen.
Background technology
Along with the continuous development of science and technology and the continuous progress of society; Bring into use the touch-control input mode on the increasing electronic equipment; And four-wire resistance type touch screen is modal on the market touch-control input equipment; But only can realize single contact identification in its most of solutions, and can't carry out the identification of a plurality of contacts.
In the prior art, the single-point positioning principle of generally general four-wire ohm screen is as depicted in figs. 1 and 2, wherein, holds direct making alive at Y+ and Y-, measured X-voltage, can know:
Can calculate R thus
Y1And R
Y2Proportionate relationship, and then calculate the Y value coordinate of contact, in like manner also can calculate X value coordinate.
Simultaneously, in the prior art, such as apple iphone, ipad, ipod last realize two refer to slide become under the situation of the big/gesture that diminishes; What it adopted is the variation that scanning capacitance shields the slip gesture of judging that multiconductor brings, therefore quite high to the technological requirement of touch-screen, and also very high to the requirement of processor; Not only cost an arm and a leg; And system resources consumption is bigger, is difficult to extensive popularization and application in cheap electronic equipment, thereby has all brought inconvenience for people's work and life.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of and can judge effectively detection is the gesture motion that becomes big or the gesture motion that diminishes, processing procedure simple and fast after whether having two touch screens operations that refer to and two to refer to touching, system resources consumption is less, identification detects accurately and reliably, cost is lower, stable work in work, the scope of application realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment comparatively widely.
In order to realize above-mentioned purpose, realize that based on four-wire resistance type touch screen the method for multi-point touch gesture identification detection is following in the electronic equipment of the present invention:
Realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-); And described directions X and Y direction are perpendicular; Its principal feature is that described method can may further comprise the steps:
(1) goes up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(2) at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc, Yc);
(4) calculate the distance factor DX on the Y direction between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX.
Realize the detection in the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment and calculate the coordinate figure (Xc of central point under directions X and the formed coordinate system of Y direction of two contacts of described four-wire resistance type touch screen; Yc), may further comprise the steps:
(31) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(32) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(33) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(34) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
The gesture motion that size and variation tendency according to distance factor DX in the method that detects based on four-wire resistance type touch screen realization multi-point touch gesture identification in this electronic equipment judged multi-point touch may further comprise the steps:
(51) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition;
(52) if not, then discern accordingly testing result on the Y direction for singly referring to touch-control, and end;
(53) if then discerning testing result accordingly is on the Y direction, to refer to touch-controls for two, and continues following step (54);
(54) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(55) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(56) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
Distance factor threshold value DX1 in the method that detects based on four-wire resistance type touch screen realization multi-point touch gesture identification in this electronic equipment obtains through the following steps in the touch screen calibration process:
(511) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(512) at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0;
The coordinate figure of the single contact that (513) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs, Ys);
(514) calculate described distance factor threshold value DX1 according to following formula:
Realize the detection in the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment and calculate the coordinate figure (Xs of single contact under directions X and the formed coordinate system of Y direction of four-wire resistance type touch screen; Ys), may further comprise the steps:
(5131) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(5132) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(5133) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(5134) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
Realize also comprising in the method that the multi-point touch gesture identification detects that based on four-wire resistance type touch screen disappearing of systemic presupposition tremble coefficient in this electronic equipment, described step (51) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing.
Realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-); And described directions X and Y direction are perpendicular; Its principal feature is that described method also can may further comprise the steps:
(1) goes up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(2) at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at Y direction negative pole end (Y-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc, Yc);
(4) calculate the distance factor DX on directions X between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX.
Realize the detection in the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment and calculate the coordinate figure (Xc of central point under directions X and the formed coordinate system of Y direction of two contacts of described four-wire resistance type touch screen; Yc), may further comprise the steps:
(31) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(32) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(33) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(34) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
The gesture motion that size and variation tendency according to distance factor DX in the method that detects based on four-wire resistance type touch screen realization multi-point touch gesture identification in this electronic equipment judged multi-point touch may further comprise the steps:
(51) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition;
(52) if not, then discern accordingly testing result on directions X for singly referring to touch-control, and end;
(53) if then discerning testing result accordingly is on directions X, to refer to touch-controls for two, and continues following step (54);
(54) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(55) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(56) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
Distance factor threshold value DX1 in the method that detects based on four-wire resistance type touch screen realization multi-point touch gesture identification in this electronic equipment obtains through the following steps in the touch screen calibration process:
(511) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(512) at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at directions X negative pole end (Y-) on-load voltage 0;
The coordinate figure of the single contact that (513) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs, Ys);
(514) calculate described distance factor threshold value DX1 according to following formula:
Realize the detection in the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment and calculate the coordinate figure (Xs of single contact under directions X and the formed coordinate system of Y direction of four-wire resistance type touch screen; Ys), may further comprise the steps:
(5131) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(5132) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(5133) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(5134) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
Realize also comprising in the method that the multi-point touch gesture identification detects that based on four-wire resistance type touch screen disappearing of systemic presupposition tremble coefficient in this electronic equipment, described step (51) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing.
Adopted in the electronic equipment of this invention and realized the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen; Because wherein to the ingenious equivalent transformation that has carried out star resistor network and triangle resistor network of the screen circuit of the resistance behind the touch-control; And according to the size and the variation tendency of the distance factor that calculates, whether have the two touch screens operations that refer to and two refer to touching after be the gesture motion that become big or the gesture motion that diminish, thereby abandoned the lengthy and tedious solution of judging the required use scanning capacitance screen of gesture motion in the prior art if effectively judging to detect; Directly utilize the extremely cheap four-wire ohm screen of cost promptly to realize the differentiation of touch-control gesture motion; The processing procedure simple and fast, system resources consumption is less, and identification detects accurately and reliably; Cost is lower; Stable work in work, the scope of application are comparatively extensive, all bring great convenience for people's work and life.
Description of drawings
Fig. 1 is a four-wire resistance type touch screen circuit theory synoptic diagram in the prior art.
Fig. 2 is the equivalent circuit theory figure of four-wire resistance type touch screen under the single contact situation in the prior art.
Fig. 3 is the equivalent circuit theory figure of four-wire resistance type touch screen under the multiconductor situation in the method that detects based on four-wire resistance type touch screen realization multi-point touch gesture identification in the electronic equipment of the present invention.
Fig. 4 carries out the circuit theory diagrams behind the equivalent transformation of star resistor network and triangle resistor network for the circuit among Fig. 3.
Embodiment
In order more to be expressly understood technology contents of the present invention, the special following examples of lifting specify.
See also Fig. 3 and shown in Figure 4; Realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-), and described directions X and Y direction are perpendicular, wherein; As first kind of embodiment, described method can may further comprise the steps:
(1) goes up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(2) at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc Yc), may further comprise the steps:
(a) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(b) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(c) go up on-load voltage Vcc at described directions X positive terminal (X+), (X-) adds at the directions X negative pole end
(d) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X;
(4) calculate the distance factor DX on the Y direction between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX may further comprise the steps:
(a) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition, wherein, this distance factor threshold value DX1 obtains through the following steps in the touch screen calibration process:
(i) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(ii),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0 at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-);
The coordinate figure of the single contact that (iii) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs Ys), may further comprise the steps:
(A) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(B) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(C) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(D) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X;
(iv) calculate described distance factor threshold value DX1 according to following formula:
Comprise also that wherein disappearing of systemic presupposition tremble coefficient, described above-mentioned steps (a) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing;
(b) if not, then discern accordingly testing result on the Y direction for singly referring to touch-control, and end;
(c) if then discerning testing result accordingly is on the Y direction, to refer to touch-controls for two, and continues following step (d);
(d) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(e) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(f) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
As other a kind of embodiment of the present invention; Realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in this electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-); And described directions X and Y direction are perpendicular, and wherein this method may further comprise the steps:
(1) goes up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(2) at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at Y direction negative pole end (Y-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc Yc), may further comprise the steps:
(a) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(b) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(c) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(d) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X;
(4) calculate the distance factor DX on directions X between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX may further comprise the steps:
(a) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition, wherein, this distance factor threshold value DX1 obtains through the following steps in the touch screen calibration process:
(i) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(ii),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at directions X negative pole end (Y-) on-load voltage 0 at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-);
The coordinate figure of the single contact that (iii) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs Ys), may further comprise the steps:
(A) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(B) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(C) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(D) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X;
(iv) calculate described distance factor threshold value DX1 according to following formula:
Comprise also that wherein disappearing of systemic presupposition tremble coefficient, described above-mentioned steps (a) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing;
(b) if not, then discern accordingly testing result on directions X for singly referring to touch-control, and end;
(c) if then discerning testing result accordingly is on directions X, to refer to touch-controls for two, and continues following step (d);
(d) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(e) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(f) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
In the middle of practical application, under two contact points in, method of the present invention is at Y+, Y-end making alive VCC, and at X-making alive 0, measured X+point then.Corresponding equivalent electrical circuit sees also shown in Figure 3.
Wherein, circuit is carried out the equivalent transformation of star resistor network and triangle resistor network, R4, R5 can ignore for very big other resistance of input impedance simultaneously, and conversion of circuits is circuit theory diagrams shown in Figure 4.
According to following formula:
In most cases, R
5Be approximately equal to R
6, so R
5≈ R
6=R
X1(seeing also shown in Figure 2), hence one can see that R
8, R
9Approximately equal.
R
1+R
8=R
y1,R
9+R
3=R
y2;
Can calculate through top two formula:
Obtain corresponding results, it then representes R greater than zero the time
2>0, just two finger operations, otherwise for singly referring to operation.
When DX is big more, R is described
2Big more, the Y direction distance between two corresponding contacts is far away more.
When calculating DX, the value of Rx1, Ry1 can be defaulted as single-point with user's operation earlier, calculates X, the Y coordinate of central point.
Concrete Calculation Method is following:
Y+ adds Vcc, and Y-adds 0V, measured X-magnitude of voltage, so just can obtain a magnitude of voltage VY, same X+ adds Vcc, X-adds 0v, through measuring Y-, can obtain VX.Just can calculate the position of single-point or perhaps the center position of two point through these two values.R
X1, R
Y1Be to calculate with respect to the central point of two contacts.
Wherein: X, Y be not for representing the coordinate position of two contact mid points, and what M represented is the resistance value of resistance screen unit distance, generally is constant, need not calculate, and that is to say R
X1=X * M.
If
Then:
That only need assess DX ' just can estimate two distances between the Y direction of contact, on engineering, the value of a DX1 is set usually, and as thresholding, the DX ' that surpasses this value is regarded as twoly referring to operation, otherwise thinks that two points are 0 in the distance of this direction.
In general, touch-screen all needs calibration, in calibration, can measure the DX1 value when singly referring to, on this basis, when DX '>DX1, think two fingers (in fact for eliminate shake can be provided with DX '>DX1+ disappear tremble coefficient).So only need judge the variation of DX, be amplification or dwindle with regard to the gesture motion of knowing the operator.
In like manner can calculate the distance between 2 contacts of directions X, not give unnecessary details at this.
Adopted in the above-mentioned electronic equipment and realized the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen; Because wherein to the ingenious equivalent transformation that has carried out star resistor network and triangle resistor network of the screen circuit of the resistance behind the touch-control; And according to the size and the variation tendency of the distance factor that calculates, whether have the two touch screens operations that refer to and two refer to touching after be the gesture motion that become big or the gesture motion that diminish, thereby abandoned the lengthy and tedious solution of judging the required use scanning capacitance screen of gesture motion in the prior art if effectively judging to detect; Directly utilize the extremely cheap four-wire ohm screen of cost promptly to realize the differentiation of touch-control gesture motion; The processing procedure simple and fast, system resources consumption is less, and identification detects accurately and reliably; Cost is lower; Stable work in work, the scope of application are comparatively extensive, all bring great convenience for people's work and life.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.
Claims (12)
1. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in an electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-); And described directions X and Y direction are perpendicular; It is characterized in that described method may further comprise the steps:
(1) goes up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(2) at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc, Yc);
(4) calculate the distance factor DX on the Y direction between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX.
2. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 1; It is characterized in that; Described detection also calculates the coordinate figure (Xc of central point under directions X and the formed coordinate system of Y direction of two contacts of described four-wire resistance type touch screen; Yc), may further comprise the steps:
(31) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(32) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(33) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(34) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
3. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 1 and 2; It is characterized in that; The described gesture motion of judging multi-point touch according to size and the variation tendency of distance factor DX may further comprise the steps:
(51) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition;
(52) if not, then discern accordingly testing result on the Y direction for singly referring to touch-control, and end;
(53) if then discerning testing result accordingly is on the Y direction, to refer to touch-controls for two, and continues following step (54);
(54) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(55) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(56) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
4. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 3, it is characterized in that described distance factor threshold value DX1 obtains through the following steps in the touch screen calibration process:
(511) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the first voltage V1 that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(512) at described Y direction positive terminal (Y+) and the equal on-load voltage Vcc of Y direction negative pole end (Y-),, detect and obtain the second voltage V2 that described directions X positive terminal (X+) is had at directions X negative pole end (X-) on-load voltage 0;
The coordinate figure of the single contact that (513) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs, Ys);
(514) calculate described distance factor threshold value DX1 according to following formula:
5. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 4; It is characterized in that; Described detection also calculates the coordinate figure (Xs of single contact under directions X and the formed coordinate system of Y direction of four-wire resistance type touch screen; Ys), may further comprise the steps:
(5131) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(5132) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(5133) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(5134) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
6. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 3, it is characterized in that comprise also in the described method that disappearing of systemic presupposition tremble coefficient, described step (51) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing.
7. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in an electronic equipment; Described four-wire resistance type touch screen periphery is connected with directions X positive terminal (X+), directions X negative pole end (X-), Y direction positive terminal (Y+) and Y direction negative pole end (Y-); And described directions X and Y direction are perpendicular; It is characterized in that described method may further comprise the steps:
(1) goes up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(2) at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at Y direction negative pole end (Y-) on-load voltage 0;
The coordinate figure of the central point of two contacts that (3) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xc, Yc);
(4) calculate the distance factor DX on directions X between described two contacts according to following formula:
(5) gesture motion of judging multi-point touch according to size and the variation tendency of described distance factor DX.
8. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 7; It is characterized in that; Described detection also calculates the coordinate figure (Xc of central point under directions X and the formed coordinate system of Y direction of two contacts of described four-wire resistance type touch screen; Yc), may further comprise the steps:
(31) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(32) calculate the Y direction coordinate figure Yc of the central point of described two contacts according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(33) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(34) calculate the directions X coordinate figure Xc of the central point of described two contacts according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
9. according to realizing the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in claim 7 or the 8 described electronic equipments; It is characterized in that; The described gesture motion of judging multi-point touch according to size and the variation tendency of distance factor DX may further comprise the steps:
(51) judge whether this distance factor DX has surpassed the distance factor threshold value DX1 of systemic presupposition;
(52) if not, then discern accordingly testing result on directions X for singly referring to touch-control, and end;
(53) if then discerning testing result accordingly is on directions X, to refer to touch-controls for two, and continues following step (54);
(54) periodically repeat above-mentioned steps (1) to (4), and continue to judge size and the variation tendency of this distance factor DX;
(55) if this distance factor DX increases gradually, the gesture motion of then corresponding gesture identification testing result for amplifying;
(56) if this distance factor DX reduces gradually, then corresponding gesture identification testing result is the gesture motion of dwindling.
10. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 9, it is characterized in that described distance factor threshold value DX1 obtains through the following steps in the touch screen calibration process:
(511) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the first voltage V1 that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(512) at described directions X positive terminal (X+) and the equal on-load voltage Vcc of directions X negative pole end (X-),, detect and obtain the second voltage V2 that described Y direction positive terminal (Y+) is had at directions X negative pole end (Y-) on-load voltage 0;
The coordinate figure of the single contact that (513) detects and calculate described four-wire resistance type touch screen under directions X and the formed coordinate system of Y direction (Xs, Ys);
(514) calculate described distance factor threshold value DX1 according to following formula:
11. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 10; It is characterized in that; Described detection also calculates the coordinate figure (Xs of single contact under directions X and the formed coordinate system of Y direction of four-wire resistance type touch screen; Ys), may further comprise the steps:
(5131) go up on-load voltage Vcc at described Y direction positive terminal (Y+),, detect and obtain the Y direction voltage Vy that described directions X negative pole end (X-) is had at Y direction negative pole end (Y-) on-load voltage 0;
(5132) calculate described single-contact Y direction coordinate figure Ys according to following relational expression:
Wherein, described Ly is the total length of four-wire resistance type touch screen in the Y direction;
(5133) go up on-load voltage Vcc at described directions X positive terminal (X+),, detect and obtain the directions X voltage Vx that described Y direction negative pole end (Y-) is had at directions X negative pole end (X-) on-load voltage 0;
(5134) calculate described single-contact directions X coordinate figure Xs according to following relational expression:
Wherein, described Lx is the total length of four-wire resistance type touch screen at directions X.
12. realize the method that the multi-point touch gesture identification detects based on four-wire resistance type touch screen in the electronic equipment according to claim 9, it is characterized in that comprise also in the described method that disappearing of systemic presupposition tremble coefficient, described step (51) is specially:
Judge that distance factor threshold value DX1 that whether this distance factor DX surpassed systemic presupposition trembles the coefficient sum with disappearing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100236551A CN102591546A (en) | 2012-02-02 | 2012-02-02 | Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100236551A CN102591546A (en) | 2012-02-02 | 2012-02-02 | Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102591546A true CN102591546A (en) | 2012-07-18 |
Family
ID=46480315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100236551A Pending CN102591546A (en) | 2012-02-02 | 2012-02-02 | Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102591546A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014161156A1 (en) * | 2013-04-02 | 2014-10-09 | Motorola Solutions, Inc. | Method and apparatus for controlling a touch-screen device |
CN112214132A (en) * | 2020-10-19 | 2021-01-12 | 深圳市捷诚技术服务有限公司 | False touch correction method and device, computer readable medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271375A (en) * | 2008-05-19 | 2008-09-24 | 北京中星微电子有限公司 | Method and device for detecting touch panel |
US20100164905A1 (en) * | 2008-12-29 | 2010-07-01 | Stmicroelectronics Asia Pacific Pte, Ltd. | Method of improved computation of touch coordinates for four-wire resistive touch screens |
CN102339190A (en) * | 2010-07-27 | 2012-02-01 | 上海三旗通信科技有限公司 | Method for recognizing two-point touch of resistance touch screen on mobile phone |
-
2012
- 2012-02-02 CN CN2012100236551A patent/CN102591546A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271375A (en) * | 2008-05-19 | 2008-09-24 | 北京中星微电子有限公司 | Method and device for detecting touch panel |
US20100164905A1 (en) * | 2008-12-29 | 2010-07-01 | Stmicroelectronics Asia Pacific Pte, Ltd. | Method of improved computation of touch coordinates for four-wire resistive touch screens |
CN102339190A (en) * | 2010-07-27 | 2012-02-01 | 上海三旗通信科技有限公司 | Method for recognizing two-point touch of resistance touch screen on mobile phone |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014161156A1 (en) * | 2013-04-02 | 2014-10-09 | Motorola Solutions, Inc. | Method and apparatus for controlling a touch-screen device |
CN112214132A (en) * | 2020-10-19 | 2021-01-12 | 深圳市捷诚技术服务有限公司 | False touch correction method and device, computer readable medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI400646B (en) | Method for detecting pressure of touch sensing element and electronic device using the same | |
CN102902404B (en) | Touch panel | |
TWI397006B (en) | Touch display device and a method of determining touch mode thereof | |
TWI509531B (en) | Apparatus for identifying touch signal and method thereof | |
US20150062063A1 (en) | Method of recognizing touch | |
US20150070297A1 (en) | Control method for touch panel | |
US20150015535A1 (en) | Method of recognizing touch | |
KR20130047790A (en) | Device and method for determinating a touch input of terminal having a touch panel | |
CN104423741A (en) | Touch point and touch pressure detection method | |
CN104375730A (en) | Touch panel and touch display device | |
EP2482173A2 (en) | Minute impedance variation detection device | |
US20140375599A1 (en) | Touch input system and method | |
WO2016183796A1 (en) | Method for identifying user operating mode and mobile terminal | |
US9329740B2 (en) | Method of recognizing touch | |
US9612704B2 (en) | Apparatus and method for sensing touch | |
US9965053B2 (en) | Touchpen for capacitive touch panel and method of detecting a position of a touchpen | |
KR102206051B1 (en) | Touch apparatus and touch detection method thereof | |
CN102760003A (en) | Method for detecting touch point of touch screen | |
CN102591546A (en) | Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment | |
CN104615345B (en) | Method and device for automatically adjusting position of virtual keyboard | |
CN105224153A (en) | The electric property pick-up unit of touch control electrode and detection method | |
KR20180020696A (en) | Touch system, touch sensing controller and stylus pen adapted thereto | |
CN102339190B (en) | Method for recognizing two-point touch of resistance touch screen on mobile phone | |
US9569051B2 (en) | Method for detecting touch points on a touch panel | |
KR102170298B1 (en) | Touch device and touch detection method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120718 |