CN102339190B - Method for recognizing two-point touch of resistance touch screen on mobile phone - Google Patents

Method for recognizing two-point touch of resistance touch screen on mobile phone Download PDF

Info

Publication number
CN102339190B
CN102339190B CN2010102371239A CN201010237123A CN102339190B CN 102339190 B CN102339190 B CN 102339190B CN 2010102371239 A CN2010102371239 A CN 2010102371239A CN 201010237123 A CN201010237123 A CN 201010237123A CN 102339190 B CN102339190 B CN 102339190B
Authority
CN
China
Prior art keywords
touch
screen
calculate
point
voltage
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.)
Active
Application number
CN2010102371239A
Other languages
Chinese (zh)
Other versions
CN102339190A (en
Inventor
杨恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sanqi Communication Technology Co Ltd
Original Assignee
Shanghai Sanqi Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Sanqi Communication Technology Co Ltd filed Critical Shanghai Sanqi Communication Technology Co Ltd
Priority to CN2010102371239A priority Critical patent/CN102339190B/en
Publication of CN102339190A publication Critical patent/CN102339190A/en
Application granted granted Critical
Publication of CN102339190B publication Critical patent/CN102339190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method for recognizing two-point touch of a resistance touch screen on a mobile phone. By the method, four general purpose input/output (GPIO) interfaces on a processor of the mobile phone can be used for realizing reference voltage and ground input and can be scanned at the same time, and four analog-to-digital converters (ADCs) can be used for inspecting voltage without the increase of cost; and a common resistance touch screen (four wires) with low cost has a two-point touch recognition function. Compared with a multipoint capacitance touch screen, the resistance touch screen has greatly-reduced cost, can have functions of zooming, dragging, rotation and the like of photographs and maps and can provide a low-cost lower-accuracy multipoint experience for a user. The method is easy to realize, makes the cost not increased, is convenient to use, is high in user experience and can be extremely conveniently used by the user.

Description

A kind of method that realizes 2 touch recognition of electric resistance touch screen on mobile phone
Technical field
This practicality invention relates to electronic device field, relates in particular to a kind of method that realizes 2 touch recognition of electric resistance touch screen on mobile phone.
Background technology
Touch-screen is as a kind of up-to-date input equipment, and it is the simplest, convenient, natural at present a kind of man-machine interaction mode.It has given multimedia with brand-new looks, is extremely attractive brand-new multimedia interactive equipment.From know-why, distinguish touch-screen, can be divided into five basic kind: vector pressure sensing technology touch-screen, resistive technologies touch-screen, capacitance technology touch-screen, infrared technology touch-screen, surface acoustic wave technique touch-screen.Main resistance-type and the capacitive touch screen of using on mobile phone.
The major part of electric resistance touch screen is a resistance film screen coordinated very much with display surface, this is a kind of laminated film of multilayer, it usings one deck glass or duroplasts flat board as basic unit, surface scribbles layer of transparent oxidized metal (transparent conductive resistance, the general ITO that adopts, indium oxide) conductive layer, the above is stamped one deck outside surface cure process, smooth anti-friction plastic layer, its inside surface again and also scribbles one deck coating, between them, has the transparent isolating points of many tiny (being less than 1/1000 inch) that two conductive layers is separated to insulation.When the finger touch screen, two conductive layers has just had contact in the position, touch point, and resistance changes, and detects different voltage on X and Y both direction, just can calculate the position of (X, Y), with reference to figure 1.
The capacitance technology touch-screen is to utilize the electric current induction of human body to carry out work.It is four layers of compound glass screen; the inside surface of glass screen and interlayer respectively scribble one deck ITO (indium oxide), and outermost layer is skim silicon soil glassivation, and interlayer ITO coating is as workplace; on four angles, draw four electrodes, internal layer ITO is that screen layer is to guarantee good working environment.When finger touch was on metal level, due to people's bulk electric field, user and touch screen surface formed with a coupling capacitance, and for high-frequency current, electric capacity is direct conductor, so finger siphons away a very little electric current from contact point.This electric current divides the electrode on four jiaos from touch-screen and flows out, and the electric current of these four electrodes of flowing through is directly proportional to the distance of finger to four jiaos, and controller, by the accurate Calculation to these four current ratios, draws the position of touch point.
Electric resistance touch screen is due to dependable performance, and precision is high, and cost is low, in field of mobile phones, has a wide range of applications at present.Capacitance touch screen, owing to supporting multiple point touching, has improved the experience of man-machine interaction greatly on Cell Phone Design of new generation, obtain user's approval, but cost is high, produces yield low, has hindered greatly the application of capacitance touch screen.Current multiple point touching implementation mainly contains:
1. the hardware using capacitance plate, realize multiple point touching by software.Advantage is highly sensitive, stable performance, and counting of support can meet absolute major applications demand; Shortcoming is that cost is high, complex manufacturing, and also there is patent protection in Apple.
2. hardware using numeral touch screens, be actually with the material of touch screens and make a transparent keyboard matrix, by rank scanning, judges the point of pressing.Advantage is that price comparison is cheap, dependable performance, supported counting at most; Deficiency is to need many ranks line interfaces, can not realize handwriting functions, has blind area in multiple spot identification.
3. hardware using artifical resistance screen, calculate multiple point touching by software in special chip.Advantage is to support multiple point touching, keeps again handwriting functions, does not increase cost; Shortcoming is that counting of support is minimum, and performance and stability wait checking.
The present invention adopts cheaply on the four-wire ohm touch-screen, do not increase hardware cost, realizes the touch recognition of 2.
Summary of the invention
For the deficiency of prior art, the object of the invention is to provide a kind of method that realizes 2 touch recognition of electric resistance touch screen on mobile phone.
Equivalent operating circuit model while being as described in Figure 52 touches of touch-screen, X +, X -And Y +, Y -Two conduction workplaces that mean touch-screen, R X1, R X2, R X3And R Y1, R Y2, R Y3The grading resistance produced on X, Y workplace while meaning to touch respectively.K1, K2 mean to press the position of touch-screen.R Z1, R Z2Resistance while meaning 2 contacts.The method that realizes 2 touch recognition is as follows:
Press the first contact, produces and interrupt, and starts to calculate the first point coordinate.
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X1 coordinate of first.
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y1 coordinate of first.
Press the second contact, starts to calculate the second point coordinate.
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X2 coordinate of second point.
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y2 coordinate of second point.
The present invention utilizes 4 GPIO mouths (the General PurposeInput/Output universal input output on the handset processes device, abbreviation IO mouth) realize reference voltage and ground input, can scan simultaneously, use 4 ADC (Analog-to-Digital Converter analog to digital converter) to carry out the detection of voltage.
The accompanying drawing explanation
Fig. 1 is electric resistance touch screen principle schematic of the present invention;
Fig. 2 is electric resistance touch screen single-point identification schematic diagram of the present invention;
Fig. 3 is another embodiment schematic diagram of electric resistance touch screen single-point identification of the present invention;
Fig. 4 is bow and beam bearings schematic diagram of the present invention;
Fig. 5 is 2 identification schematic diagram of electric resistance touch screen of the present invention.
Embodiment
As shown in Figure 2 and Figure 3, the equivalent-circuit model of touch-screen work, X +, X -And Y +, Y -Two conduction workplaces that mean touch-screen, R X1, R X2And R Y1, R Y2The grading resistance produced on X, Y workplace while meaning to touch respectively.Fig. 2 is at X +, X -On add reference voltage, on ADC3, measure dividing potential drop, Fig. 3 is at Y +, Y -On add reference voltage, on ADC1, measure dividing potential drop.Above two steps form a measuring period, can calculate one group of X, Y coordinate.The voltage that ADC1~4 measures is V1~V4, and the width of touch-screen and length are respectively W and L, and the coordinate figure of X, the Y calculated by value method so is:
X = V 3 - V 2 V 1 - V 2 × L
Y = V 1 - V 4 V 3 - V 4 × W
If the employing bow and beam bearings, improve measuring accuracy, as shown in Figure 4, ABCD is the coordinate points on tetra-summits of the corresponding LCD of touch-screen, and this 4 point of striking, obtain four groups of coordinate figures: (X respectively a, Y a), (X b, Y b), (X c, Y c), (X d, Y d).Calculate touch screen center point coordinate (X 0, Y 0) be
X 0 = X a + X b + X c + X d 4
Y 0 = Y a + Y b + Y c + Y d 4
If Δ X=X b-X a+ X d-X c, Δ Y=Y b-Y a+ Y d-Y c, finally can obtain contact coordinate:
X = V 3 - V 2 - X 0 ΔX × L + L 2
Y = V 1 - V 4 - X 0 ΔY × W + W 2
Adopt bow and beam bearings, resulting contact coordinate is more accurate.
When 2 of touch-screens touch, as shown in Figure 5, the equivalent-circuit model when 2 of touch-screens touch, X +, X -And Y +, Y -2 conduction workplaces that mean touch-screen, R X1, R X2, R X3And R Y1, R Y2, R Y3The grading resistance produced on X, Y workplace while meaning to touch respectively.K1, K2 mean to press the position of touch-screen.R Z1, R Z2Resistance while meaning 2 contacts.
Suppose GPIO1 output high level, the GPIO2 output low level, the voltage that ADC1 when single-point is pressed~4 are measured is V1_1~V4_1, the voltage that ADC1 when pressing for 2~4 are measured is V1_2~V4_2.Above voltage meets following relation:
V 3 _ 1 = V 4 _ 1 = ( V 1 _ 1 - V 2 _ 1 ) × ( R x 1 + R x 2 ) R x 1 + R x 2 + R x 3 ;
V1_1-V2_1≥V1_2-V2_2
Introduce now three new argument L1, L2, L3, mean respectively the touch-screen width of same label equivalent resistance, it is wide that three's summation equals touch-screen.Also according to reality, introducing a restrictive condition in addition, when having be pressed at 2, as long as the program detection speed is enough fast, just do not have situation about pressing simultaneously for program, is all press successively or unclamp all the time.
There is not any problem in detection for the single-point position, we process the situation of 2 now, and in conjunction with the restrictive condition of introducing previously, in the middle of program can detect, being arranged a bit of time is that single-point is pressed, namely program first detects K1 and presses, and through a bit of time, K2 just detected and presses.This pilot process can accurately obtain the K1 position, if the proportionate relationship that we change before and after utilizing just can calculate the position that back K2 presses.
K1 presses separately:
L=L1+L2+L3
L 1 = V 1 _ 1 - V 3 _ 1 V 1 _ 1 - V 2 _ 1 × ( L 1 + L 2 + L 3 )
K1 and K2 press simultaneously and (ignore R Z1, R Z2Impact):
V 1 _ 2 - V 3 _ 2 L 1 = V 4 _ 2 - V 2 _ 2 L 3
Because L1+L2+L3 is the width L of known conditions touch-screen, so have:
L 3 = V 4 _ 2 - V 2 _ 2 V 1 _ 2 - V 3 _ 1 × L 1 ;
L 3 = V 4 _ 2 - V 2 _ 2 V 1 _ 2 - V 3 _ 2 × V 1 _ 1 - V 3 _ 1 V 1 _ 1 - V 2 _ 1 × L
X=L-L3
To here we obtained by the particular location of 2, as long as we process respectively X and the Y-axis of touch-screen according to the method, just can on conventional, electric-resistance is shielded, realize the detection of 2 touch locations.
Performing step is as follows:
Press the first contact, produces and interrupt, and starts to calculate the first point coordinate.
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X1 coordinate of first.
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y1 coordinate of first.
Press the second contact, starts to calculate the second point coordinate.
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X2 coordinate of second point.
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y2 coordinate of second point.

Claims (2)

1. method that realizes 2 touch recognition of electric resistance touch screen on mobile phone, use four GPIO mouth GPIO1~GPIO4 to realize reference voltage and ground input, can scan simultaneously, use four ADC analog to digital converter ADC1~ADC4 on the handset processes device to carry out the inspection of voltage, in equivalent-circuit model when 2 of touch-screens touch, X+, X-and Y+, Y-means two conduction workplaces of touch-screen, Rx1, Rx2, Rx3 and Ry1, Ry2, X when Ry3 means to touch respectively, the grading resistance produced on the Y workplace, K1, K2 means to press the position of touch-screen, Rz1, resistance when Rz2 means 2 contacts,
Suppose GPIO1 output high level, the GPIO2 output low level, the voltage that ADC1 when single-point is pressed~4 are measured is V1_1~V4_1, and the voltage that ADC1 when pressing for 2~4 are measured is V1_2~V4_2, and above voltage meets following relation:
Figure FSB0000113995990000011
V1_1-V2_1≥V1_2-V2_2;
Three parameter L 1, L2, L3 mean respectively the touch-screen width of same label equivalent resistance, and three's summation equals the wide L of touch-screen;
According to reality, introducing a restrictive condition, when having be pressed at 2, as long as the program detection speed is enough fast, just do not have situation about pressing simultaneously for program, is all press successively or unclamp all the time; When having press at 2, in the middle of program can detect, being arranged a bit of time is that single-point is pressed, namely program first detects K1 and presses, through a bit of time, K2 just being detected presses, this pilot process can accurately obtain the K1 position, the proportionate relationship changed before and after utilizing, just can calculate the position that back K2 presses;
K1 presses separately:
L=L1+L2+L3;
Figure FSB0000113995990000012
K1 and K2 press simultaneously:
Figure FSB0000113995990000021
Because L1+L2+L3 is the width L of known conditions touch-screen, so have:
Figure FSB0000113995990000022
Figure FSB0000113995990000023
X=L-L3;
According to above-mentioned can be calculated by the particular location of 2, according to the method, X and the Y-axis of touch-screen are processed respectively, just can on the conventional, electric-resistance screen, realize the detection of 2 touch locations;
The method that realizes 2 touch recognition is as follows:
Press the first contact, produces and interrupt, and starts to calculate the first point coordinate;
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X1 coordinate of first;
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y1 coordinate of first;
Press the second contact, starts to calculate the second point coordinate;
GPIO1 exports high level, the GPIO2 output low level, and measuring voltage, calculate the X2 coordinate of second point;
GPIO3 exports high level, the GPIO4 output low level, and measuring voltage, calculate the Y2 coordinate of second point.
2. a kind of method that realizes 2 touch recognition of electric resistance touch screen on mobile phone according to claim 1 is characterized in that: described ADC also can be used as universal input output.
CN2010102371239A 2010-07-27 2010-07-27 Method for recognizing two-point touch of resistance touch screen on mobile phone Active CN102339190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102371239A CN102339190B (en) 2010-07-27 2010-07-27 Method for recognizing two-point touch of resistance touch screen on mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102371239A CN102339190B (en) 2010-07-27 2010-07-27 Method for recognizing two-point touch of resistance touch screen on mobile phone

Publications (2)

Publication Number Publication Date
CN102339190A CN102339190A (en) 2012-02-01
CN102339190B true CN102339190B (en) 2013-11-27

Family

ID=45514946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102371239A Active CN102339190B (en) 2010-07-27 2010-07-27 Method for recognizing two-point touch of resistance touch screen on mobile phone

Country Status (1)

Country Link
CN (1) CN102339190B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591546A (en) * 2012-02-02 2012-07-18 袁海滨 Method for recognizing multi-touch gesture on four-wire resistive touch screen of electronic equipment
CN103294326A (en) * 2012-03-02 2013-09-11 安凯(广州)微电子技术有限公司 Resistance-type touch screen circuit and two-contact touch application method based on resistance-type touch screen
CN103412699B (en) * 2013-06-28 2017-02-15 北京君正集成电路股份有限公司 Method for two-point control gesture recognition of four-wire resistance touch screen

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373416A (en) * 2007-08-23 2009-02-25 介面光电股份有限公司 Resistance type touching control panel controller structure and method for discriminating and operating multi-point coordinates
CN101702110A (en) * 2009-11-25 2010-05-05 松翰科技股份有限公司 Method for detecting multi-touch of resistive touch pad
CN101739188A (en) * 2008-11-14 2010-06-16 胜华科技股份有限公司 Multi-touch resistance-type touch panel and method for detecting multiple pointing sticks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373416A (en) * 2007-08-23 2009-02-25 介面光电股份有限公司 Resistance type touching control panel controller structure and method for discriminating and operating multi-point coordinates
CN101739188A (en) * 2008-11-14 2010-06-16 胜华科技股份有限公司 Multi-touch resistance-type touch panel and method for detecting multiple pointing sticks
CN101702110A (en) * 2009-11-25 2010-05-05 松翰科技股份有限公司 Method for detecting multi-touch of resistive touch pad

Also Published As

Publication number Publication date
CN102339190A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN102929422B (en) Force sensing capacitive hybrid touch sensor
CN104823138B (en) A kind of pressure inductive touch-screen and touch display screen and electronic equipment
US9262008B2 (en) Method of recognizing touch
CN101329608B (en) Touch screen input method
US20150070297A1 (en) Control method for touch panel
US8692802B1 (en) Method and apparatus for calculating coordinates with high noise immunity in touch applications
US9547030B2 (en) Method of recognizing touch
CN202003335U (en) Electronic device and touch screen thereof
US20120105325A1 (en) Capacitive finger navigation input device
US9612704B2 (en) Apparatus and method for sensing touch
US9329740B2 (en) Method of recognizing touch
US9317149B2 (en) Method for detecting touch position of touch screen and touch screen using same
CN102306064A (en) Touch screen control device and control method thereof
CN102339190B (en) Method for recognizing two-point touch of resistance touch screen on mobile phone
TW201203060A (en) Resistive/capacitive integrated touch device and method thereof
CN102819375A (en) Capacitive touch screen
CN102231091A (en) Method and equipment for realizing multi-point recognition based on single-point touch screen
CN201741138U (en) Elliptic bridging type capacitive touch screen
CN103777830B (en) Touch screen and display device
CN201876858U (en) Double-sided staggered capacitive touch screen
CN201757891U (en) High light penetration type capacitor touch-screen
CN102830885A (en) Component of capacitive touch screen sensor
CN202815804U (en) Structure of capacitive touch screen sensor
CN203324956U (en) Capacitive touch screen
CN201837985U (en) Dual-sided straight strip-shaped capacitive touch screen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: 201210, Shanghai, Pudong New Area, China (Shanghai) free trade zone, Lane 399, Lane 1, 907 building, room No.

Patentee after: Shanghai Sanqi Communication Technology Co., Ltd.

Address before: Xuhui District Caohejing New Technology Development Zone of Shanghai City, No. 401 Caobao Road 200233

Patentee before: Shanghai Sanqi Communication Technology Co., Ltd.