CN103246395A - Touch screen calibration method based on mini2440 development board - Google Patents
Touch screen calibration method based on mini2440 development board Download PDFInfo
- Publication number
- CN103246395A CN103246395A CN2013101226763A CN201310122676A CN103246395A CN 103246395 A CN103246395 A CN 103246395A CN 2013101226763 A CN2013101226763 A CN 2013101226763A CN 201310122676 A CN201310122676 A CN 201310122676A CN 103246395 A CN103246395 A CN 103246395A
- Authority
- CN
- China
- Prior art keywords
- touch
- screen
- touch screen
- coordinate
- development board
- 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 provides a touch screen calibration method based on a mini2440 development board. The touch screen calibration method includes: step 1, proposing a 9-point calibration algorithm based on a reason of generated errors of a four-wire resistance-type touch screen of the mini2440 development board, and providing an algorithm deducing process; step 2, explaining a basic thought of a calibration procedure of the touch screen according to working mode of the touch screen on the development board and the 9-point calibration algorithm, and providing a flow diagram for the calibration procedure of the touch screen of the mini2440 development board; and step 3, acquiring corresponding parameters according to results of procedure running, and providing a calibration formula. The innovation point of the touch screen calibration method is that the calibration method is small in errors and has better robustness as compared with other touch screen calibration methods.
Description
Technical field
The present invention relates to a kind of touch screen correction method, at be the mini2440 development board, loading be built-in Linux operating system, belong to the Embedded Application field.
Background technology
Touch-screen is simple, convenient, the most natural present a kind of man-machine interaction mode, and it has given multimedia brand-new looks, is extremely attractive multimedia interactive equipment, is widely used in Industry Control, and electronic game is in the various electronic products such as multimedia teaching.Divide by the principle of work of touch-screen and the medium of transmission information, can be divided into resistive touch screen, capacitor induction type touch-screen, infrared-type touch-screen and surface acoustic wave type touch-screen.
Touch-screen on the Mini2440 development board belongs to the four-wire ohm screen, and the principle of resistive touch screen is by measuring the coordinate that horizontal and vertical resistance value obtains the contact.This touch-screen utilizes pressure sensitive to control, major part is an electric thin screen that cooperates very much with display surface, but when the electric thin screen is installed, inevitably has certain error, as rotation and translation, therefore at this moment need touch-screen is proofreaied and correct.And As time goes on the material of resistive touch screen also can cause parameter to change, and therefore needs regular correction.
Traditional touch screen correction method has two point method, three point method, five-spot etc., but since timing count less, and if certain point when touching careless point wrong, then can make last correction result produce very big error.Therefore the present invention proposes 9 point calibration methods based on the mini2440 development board, can well reduce error, have good robustness.
Summary of the invention
The present invention proposes a kind of touch screen correction method based on the mini2440 development board.
May further comprise the steps:
Step 1: the 9 point calibration algorithm principle that proposed touch-screen;
Step 2: the basic ideas of touch-screen correction program have been described and have provided program flow diagram;
Step 3: according to experimental result, provided updating formula.
In step 1: at first, because touch-screen is two different physical devices with LCD, when touch-screen is installed, inevitably have certain error, as rotation or translation; Secondly, LCD resolution on the mini2440 development board is 240 * 320, the width that refers to every row is 240 pixels, highly be 320 pixels, but because the data that touch-screen is handled are physical coordinates of point, this coordinate is come by touch screen controller conversion, wants to realize that the physical coordinates of touch-screen is corresponding one by one with pixel on the LCD, then needs between the two by correction; At last, updating formula is:
X
L=AX
C+BY
C+C (1)
Y
L=DX
C+EY
C+F (2)
(X wherein
L, Y
L) expression LCD coordinate, (X
C, Y
C) expression touch-screen coordinate, A, B, C, D, E, F represent 6 parameters;
Further formula being derived, to obtain 9 point calibration formula as follows:
ΣX
L=AΣX
C+BΣY
C+nC (3)
Σ(X
LX
C)=AΣ(X
C)
2+BΣ(X
CY
C)+CΣXc (4)
Σ(X
LY
C)=AΣ(X
CY
C)+BΣ(Y
C)
2+CΣY
C (5)
ΣY
L=DΣX
C+EΣY
C+nF (6)
Σ(Y
LX
C)=DΣ(X
C)
2+EΣX
CY
C+FΣX
C (7)
Σ(Y
LY
C)=DΣ(X
CY
C)+EΣ(Y
C)
2+FΣY
C (8)
The wherein number of n denotation coordination, n=9 in the present invention.
In step 2: what the mini2440 development board adopted is the touch screen interface of four-wire system resistance-type, and the detection of contact coordinate is changed to realize by A/D, touch screen interface at first is set for waiting for interrupt mode, having no progeny in to be generated is set to automatic XY coordinate conversion pattern again, reads the coordinate of contact successively, then coordinate figure is write register-stored, selecting physical address in this method is (50,50), (120,50), (190,50), (50,160), (120,160), (190,160), (50,270), (120,270), (190,270) 9 points touch successively, and the logical address that obtains is deposited in the register.
In step 3: the logical address substitution updating formula of 9 points that will obtain, according to Cramer's rule, obtain parameter A, B, C, D, E, F.
Description of drawings
Fig. 1 touch-screen correction program process flow diagram
Embodiment
Below the present invention is described further, the present invention is a kind of touch screen correction method based on the mini2440 development board.Main contents are: according to the principle of touch-screen, the reason that touch-screen need be proofreaied and correct has been described, has proposed 9 point calibration methods of touch-screen; According to the basic ideas that touch-screen is proofreaied and correct, provided the program flow diagram of touch-screen correction as shown in Figure 1; Move correction program at development board, obtained logical coordinates and the correlation parameter of 9 calibration points, obtained updating formula at last.Concrete steps are as follows:
Step 1: at first, because touch-screen is two different physical devices with LCD, when touch-screen is installed, inevitably have certain error, as rotation or translation; Secondly, LCD resolution on the mini2440 development board is 240 * 320, the width that refers to every row is 240 pixels, highly be 320 pixels, but because the data that touch-screen is handled are physical coordinates of point, this coordinate is come by touch screen controller conversion, wants to realize that the physical coordinates of touch-screen is corresponding one by one with pixel on the LCD, then needs between the two by correction; At last, updating formula is:
X
L=AX
C+BY
C+C (1)
Y
L=DX
C+EY
C+F (2)
(X wherein
L, Y
L) expression LCD coordinate, (X
C, Y
C) expression touch-screen coordinate, A, B, C, D, E, F represent 6 parameters;
Further formula being derived, to obtain 9 point calibration formula as follows:
ΣX
L=AΣX
C+BΣY
C+nC (3)
Σ(X
LX
C)=AΣ(X
C)
2+BΣ(X
CY
C)+CΣX
C (4)
Σ(X
LY
C)=AΣ(X
CY
C)+BΣ(Y
C)
2+CΣY
C (5)
ΣY
L=DΣX
C+EΣY
C+nF (6)
Σ(Y
LX
C)=DΣ(X
C)
2+EΣX
CY
C+FΣX
C (7)
Σ(Y
LY
C)=DΣ(X
CY
C)+EΣ(Y
C)
2+FΣY
C (8)
The wherein number of n denotation coordination, n=9 in the present invention.
Step 2: what the mini2440 development board adopted is the touch screen interface of four-wire system resistance-type, and the detection of contact coordinate is changed to realize by A/D, touch screen interface at first is set for waiting for interrupt mode, having no progeny in to be generated is set to automatic XY coordinate conversion pattern again, reads the coordinate of contact successively, then coordinate figure is write register-stored, selecting physical address in this method is (50,50), (120,50), (190,50), (50,160), (120,160), (190,160), (50,270), (120,270), 9 of (190,270) points.As shown in Figure 1, touch each point successively, obtain that logical coordinates is kept in the register and output on screen, the logical coordinates of 9 points that obtain is respectively (258,764), (241,522), (255,256), (537,756), (530,519), (524,264), (805,754), (809,508), (811,270).
Step 3: in the logical coordinates and physical coordinates substitution formula 9 point calibration formula with 9 points, according to Cramer's rule, calculate A=265.862305, B=-0.001750, C=-0.282769, D=-47.902710, E=0.394744, F=-0.002558.The substitution parameter value then can obtain last updating formula to (1) and (2).
Claims (4)
1. for solving touch-screen calibration problem on the mini2440 development board, the present invention proposes a kind of touch-screen 9 point calibration methods based on the mini2440 development board, may further comprise the steps:
Step 1: the 9 point calibration algorithm principle that proposed touch-screen;
Step 2: the basic ideas of touch-screen correction program have been described and have provided program flow diagram;
Step 3: according to experimental result, provided updating formula.
2. according to claim 1, the principal character in its step 1 is: at first, because touch-screen is two different physical devices with LCD, inevitably have certain error when touch-screen is installed, as rotation or translation; Secondly, LCD resolution on the mini2440 development board is 240 * 320, the width that refers to every row is 240 pixels, highly be 320 pixels, but because the data that touch-screen is handled are physical coordinates of point, this coordinate is come by touch screen controller conversion, wants to realize that the physical coordinates of touch-screen is corresponding one by one with pixel on the LCD, then needs between the two by correction; At last, updating formula is:
X
L=AX
C+BY
C+C (1)
Y
L=DX
C+EY
C+F (2)
(X wherein
L, Y
L) expression LCD coordinate, (X
C, Y
C) expression touch-screen coordinate, A, B, C, D, E, F represent 6 parameters;
Further formula being derived, to obtain 9 point calibration formula as follows:
ΣX
L=AΣX
C+BΣY
C+nC (3)
Σ(X
LX
C)=AΣ(X
C)
2+BΣ(X
CY
C)+CΣX
C (4)
Σ(X
LY
C)=AΣ(X
CY
C)+BΣ(Y
C)
2+CΣY
C (5)
ΣY
L=DΣX
C+EΣY
C+nF (6)
Σ(Y
LX
C)=DΣ(X
C)
2+EΣX
CY
C+FΣX
C (7)
Σ(Y
LY
C)=DΣ(X
CY
C)+EΣ(Y
C)
2+FΣY
C (8)
The wherein number of n denotation coordination, n=9 in the present invention.
3. according to claim 2, the principal character of its step 2 is: what the mini2440 development board adopted is the touch screen interface of four-wire system resistance-type, and the detection of contact coordinate is changed to realize by A/D, touch screen interface at first is set for waiting for interrupt mode, having no progeny in to be generated is set to automatic XY coordinate conversion pattern again, reads the coordinate of contact successively, then coordinate figure is write register-stored, selecting physical address in this method is (50,50), (120,50), (190,50), (50,160), (120,160), (190,160), (50,270), (120,270), 9 of (190,270) points, touch successively, the logical address that obtains is deposited in the register.
4. according to claim 3, the principal character of its step 3 is: the logical address substitution updating formula of 9 points that will obtain, according to Cramer's rule, obtain parameter A, B, C, D, E, F.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101226763A CN103246395A (en) | 2013-04-10 | 2013-04-10 | Touch screen calibration method based on mini2440 development board |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101226763A CN103246395A (en) | 2013-04-10 | 2013-04-10 | Touch screen calibration method based on mini2440 development board |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103246395A true CN103246395A (en) | 2013-08-14 |
Family
ID=48925944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101226763A Pending CN103246395A (en) | 2013-04-10 | 2013-04-10 | Touch screen calibration method based on mini2440 development board |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103246395A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015176376A1 (en) * | 2014-05-23 | 2015-11-26 | 中兴通讯股份有限公司 | Method and device for automatically adjusting valid touch point, and computer storage medium |
CN106371657A (en) * | 2016-08-18 | 2017-02-01 | 苏州触动电子科技有限公司 | Cross-platform software correction realization method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005134992A (en) * | 2003-10-28 | 2005-05-26 | Gunze Ltd | Touch panel device |
CN101477258A (en) * | 2009-02-18 | 2009-07-08 | 南京航程科技有限公司 | Touch type water-proof wide-temperature LCD |
-
2013
- 2013-04-10 CN CN2013101226763A patent/CN103246395A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005134992A (en) * | 2003-10-28 | 2005-05-26 | Gunze Ltd | Touch panel device |
CN101477258A (en) * | 2009-02-18 | 2009-07-08 | 南京航程科技有限公司 | Touch type water-proof wide-temperature LCD |
Non-Patent Citations (2)
Title |
---|
王永利: "基于Android平台的电阻式触摸屏校正算法的研究与实现", <<中国优秀硕士学位论文全文数据库信息科技辑>> * |
罗勇刚等: "电阻式触摸屏的校正与应用研究", <<武汉科技学院学报>> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015176376A1 (en) * | 2014-05-23 | 2015-11-26 | 中兴通讯股份有限公司 | Method and device for automatically adjusting valid touch point, and computer storage medium |
CN106371657A (en) * | 2016-08-18 | 2017-02-01 | 苏州触动电子科技有限公司 | Cross-platform software correction realization method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8749512B2 (en) | Negative pixel compensation | |
TWI584164B (en) | Emulating pressure sensitivity on multi-touch devices | |
TW201510847A (en) | Display, touch, and stylus synchronization | |
US8823655B2 (en) | Touch-point coordinate detecting method | |
US20120249440A1 (en) | method of identifying a multi-touch rotation gesture and device using the same | |
US20120249599A1 (en) | Method of identifying a multi-touch scaling gesture and device using the same | |
US9703428B2 (en) | Touch panel and touch detecting method therefor | |
US9465456B2 (en) | Reduce stylus tip wobble when coupled to capacitive sensor | |
CN105335069A (en) | Method and device for generating sliding track in touch screen equipment | |
CN112215914B (en) | System and method for interactive image caricature generation by an electronic device | |
CN103324332B (en) | Method for correcting different touch systems | |
CN106131533A (en) | A kind of method for displaying image and terminal | |
CN103246395A (en) | Touch screen calibration method based on mini2440 development board | |
WO2015176376A1 (en) | Method and device for automatically adjusting valid touch point, and computer storage medium | |
CN107229407B (en) | Information processing method and electronic equipment | |
TWI475433B (en) | Touch system for increasing a report rate and method for increasing a report rate of a touch system | |
CN103176671B (en) | Touch electronic device and touch track correction method | |
JP2014175012A (en) | Mouse pointer control method | |
CN104965620B (en) | A kind of touch-screen failure error correction method and system | |
AU2014208225B2 (en) | Negative pixel compensation | |
CN113362418A (en) | Curve smoothing method, system, equipment and storage medium based on Bezier curve | |
CN101833407B (en) | Contact point correcting method | |
WO2014187419A1 (en) | Method and device for simulating mouse operations for touch screen terminal | |
CN104077064A (en) | Information processing method and electronic equipment |
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: 20130814 |