Embodiment
The present invention proposes a kind of touch control panel coordinate algorithm and position sensing system; Through telling the interpolation spacing with waiting between each bar line of induction; And be benchmark with the corresponding centre coordinate of peak induction capacitance; Go out the interpolation coordinate figure with proximity sensing line interpolation again and obtain, make contact panel resolution improve and be suitable for hardware and realize by the position of touch points.
The present invention proposes a kind of touch control panel coordinate algorithm, comprises the following steps.The x coordinate range of many x direction inductor lines of corresponding one preset resolution decision contact panel and the y coordinate range of many y direction inductor lines.When contact panel is touched, obtain generation above the p bar x direction inductor line of the inductance capacitance value of a critical value and the inductance capacitance value of q bar y direction inductor line, wherein p and q are positive integer.X centre coordinate with x direction inductor line with peak induction capacitance is an x reference coordinate, and according to the ratio adjustment x reference coordinate of the inductance capacitance value of other (p-1) bar x direction inductor line and peak induction capacitance to obtain an interpolation x coordinate.Y centre coordinate with y direction inductor line with peak induction capacitance is a y reference coordinate, and according to the ratio adjustment y reference coordinate of the inductance capacitance value of other (q-1) bar y direction inductor line and peak induction capacitance to obtain an interpolation y coordinate.
Please with reference to Fig. 1, it illustrates the process flow diagram according to the touch control panel coordinate algorithm of preferred embodiment of the present invention.The coordinate algorithm that this embodiment disclosed is applied to a contact panel, and this contact panel for example is a projected capacitive touch panel.
In step S100, the x coordinate range of many x direction inductor lines of corresponding one preset resolution decision contact panel and the y coordinate range of many y direction inductor lines.Please with reference to Fig. 2, it illustrates the synoptic diagram according to an example of the contact panel of preferred embodiment of the present invention.Next lifting contact panel system now is 3 o'clock panels, has 12 x direction inductor line X1~X12 and 8 y direction inductor line Y1~Y8, and preset resolution is 384 * 256 to do explanation for example, so is not limited thereto.In Fig. 2, each the bar line of induction on the contact panel 200 all has a plurality of rhombus induction points.Because preset resolution is 384 * 256, is gone out 32 rank (M rank) x coordinate by difference between adjacent two x direction inductor lines, is gone out 32 rank (N rank) y coordinate by difference between adjacent two y direction inductor lines.For instance, the x coordinate range of x direction inductor line X3 is 288~320, and its x centre coordinate is 304.The y coordinate range of y direction inductor line Y5 is 128~160, and its y centre coordinate is 144.
In step S110, when contact panel is touched, obtain generation above the p bar x direction inductor line of the inductance capacitance value of a critical value and the inductance capacitance value of q bar y direction inductor line, wherein p and q are positive integer.Please with reference to Fig. 3, it illustrates the induction synoptic diagram according to first example of the contact panel of preferred embodiment of the present invention.In Fig. 3, when human body 300 during near contact panel 310, the transparency electrode of contact panel 310 combines the electric capacity Xc and the Yc that are produced to increase with the static of 300 of human bodies.Wherein, having the line of induction that produces the inductance capacitance value that surpasses critical value Cth only can be selected.
Please with reference to Fig. 4, it illustrates the induction synoptic diagram according to second example of the contact panel of preferred embodiment of the present invention.In Fig. 4, when human body 400 during near contact panel 410, the x direction inductor line that produces the inductance capacitance value that surpasses critical value Cth in the x direction has X2, X3 and X4, and three's inductance capacitance value is respectively D
X2, D
X3And D
X4When human body 400 during near contact panel 410, the y direction inductor line that produces the inductance capacitance value that surpasses critical value Cth in the y direction has Y4, Y5 and Y6, and three's inductance capacitance value is respectively D
Y4, D
Y5And D
Y6
In step S120; X centre coordinate with x direction inductor line with peak induction capacitance is an x reference coordinate, and according to the ratio adjustment x reference coordinate of the inductance capacitance value of other (p-1) bar x direction inductor line and peak induction capacitance to obtain an interpolation x coordinate.With contact panel 400 is example, can know that by Fig. 4 the x direction inductor line with peak induction capacitance is X3, so the peak induction capacitance is D
X3, the x reference coordinate is the x centre coordinate 304 of x direction inductor line X3.Then, according to the inductance capacitance value D of x direction inductor line X2 and X4
X2And D
X4With peak induction capacitance D
X3Ratio, adjustment x reference coordinate 304 is to obtain an interpolation x coordinate x
d, please with reference to formula (1).
x
d=304+ (D
X2/ D
X3) * (M/2)-(D
X4/ D
X3The formula of) * (M/2) (1)
In like manner; In step S125; Y centre coordinate with y direction inductor line with peak induction capacitance is a y reference coordinate, and according to the ratio adjustment y reference coordinate of the inductance capacitance value of other (q-1) bar y direction inductor line and peak induction capacitance to obtain an interpolation y coordinate.With contact panel 400 is example, can know that by Fig. 4 the y direction inductor line with peak induction capacitance is Y5, so the peak induction capacitance is D
Y5, the y reference coordinate is the y centre coordinate 144 of y direction inductor line Y5.Then, according to the inductance capacitance value D of y direction inductor line Y4 and Y6
Y4And D
Y6With peak induction capacitance D
Y5Ratio, adjustment y reference coordinate 144 is to obtain an interpolation y coordinate y
d, please with reference to formula (2).
y
d=144+ (D
Y6/ D
Y5) * (N/2)-(D
Y4/ D
Y5The formula of) * (N/2) (2)
Thus, contain at contact panel 400 under the situation of 12 * 8 matrix lines of induction, contact panel 400 applicable resolution can increase to preset resolution 384 * 256.That is the touch control panel coordinate algorithm that the present invention disclosed can positively improve the resolution of contact panel.In addition; Adopt weight center of gravity or several somes data computings to need complicated addition subtraction multiplication and division arithmetic and floating point arithmetic with the method that increases resolution compared to tradition, coordinate algorithm provided by the present invention only adopts and computing such as moves about easy addition/multiplication and division and value bit and can obtain interpolation x coordinate x
dAnd interpolation y coordinate y
d, realize than the tool advantage in computed in software complexity and hardware, and significantly reduce the integral operation time, improve the reaction velocity of system.
In addition, please with reference to Fig. 5, it illustrates the induction synoptic diagram according to the 3rd example of the contact panel of preferred embodiment of the present invention.When human body 500 during near contact panel 510, the x direction inductor line that produces the inductance capacitance value that surpasses critical value Cth in the x direction has X2, X3 and X4.If human body 500 contact x direction inductor lines have the area equal and opposite in direction of X2, X3 and X4, then three's inductance capacitance value D
X2, D
X3And D
X4Should equate.Yet the RC characteristic of x direction inductor line X2, X3 and X4 maybe be different because of the difference on the processing procedure, makes three's inductance capacitance value D
X2, D
X3And D
X4Difference to some extent.
As shown in Figure 5, inductance capacitance value D
X3Be slightly less than inductance capacitance value D
X2And D
X4Because x direction inductor line X2 and X4 have peak induction capacitance (D
X2=D
X4), the x reference coordinate is the x centre coordinate 304 of x direction inductor line X3.In like manner, this situation also is applicable to that y direction inductor line is with decision y reference coordinate.Thus, the touch control panel coordinate algorithm that the present invention disclosed can compensate because the difference of processing procedure causes the induction point sensing capability inconsistent and cause the influence of position judgment deviation, improves the contact panel yield.
In addition, please with reference to Fig. 6, it illustrates the induction synoptic diagram according to the 4th example of the contact panel of preferred embodiment of the present invention.When human body 600 during near the left side edge of contact panel 610, the x direction inductor line that produces the inductance capacitance value that surpasses critical value Cth in the x direction only has X1.In such cases, the x reference coordinate is the x centre coordinate 368 of x direction inductor line X1, then according to the inductance capacitance value D of x direction inductor line X1
X1With a maximum inductance capacitance value D
MRatio, adjustment x reference coordinate 368 is to obtain an interpolation x coordinate x
d, please with reference to formula (3).Wherein, maximum inductance capacitance value D
MSystem is the inductance capacitance value of the rhombus induction point gained of human body 600 complete contact induction lines.In like manner, this situation also is applicable on the y direction inductor line.
x
d=368-(D
X1/ D
MThe formula of) * (M/2) (3)
In step S 130, judge whether the interpolation x coordinate or the interpolation y coordinate that obtain be effective.Please with reference to Fig. 7, it illustrates the induction synoptic diagram according to the 5th example of the contact panel of preferred embodiment of the present invention.When human body 600 during, possibly only touch single x direction inductor line or single y direction inductor line and obtain single interpolation coordinate near contact panel 610.If only obtain interpolation x coordinate and do not obtain interpolation y coordinate, or only obtain interpolation y coordinate and do not obtain interpolation x coordinate, it is invalid that interpolation x coordinate that then obtains or interpolation y coordinate are regarded as, otherwise interpolation x coordinate and interpolation y coordinate are regarded as effectively.
When being moved continuously of contact panel by touch points; Touch control panel coordinate algorithm of the present invention can obtain a plurality of interpolation x coordinates and a plurality of interpolation y coordinate; If these interpolations x coordinate and interpolation y coordinate are regarded as in step S130 effectively; Then in step S140, a plurality of interpolation x coordinates that obtain continuously and a plurality of interpolation y coordinate are carried out track (Gesture) identification, to obtain a corresponding trace information (gesture information).
In addition; In the process of continuous operation mode; Human body is not linear near the area of rhombus induction point on the contact panel and contact; Therefore difference goes out under the situation of multistage coordinate between with x direction inductor line and y direction inductor line, and the track of the line of induction can produce the problem that presents zigzag (edge).Please with reference to Fig. 8 A, it illustrates the track synoptic diagram according to the line of induction of preferred embodiment of the present invention.In Fig. 8 A, track 810 is unsmooth and present zigzag.Therefore; When being moved continuously of contact panel by touch points; Touch control panel coordinate algorithm of the present invention can obtain a plurality of interpolation x coordinates and a plurality of interpolation y coordinate, if these interpolations x coordinate and interpolation y coordinate are regarded as in step S130 effectively, then in step S150; The a plurality of interpolation x coordinates that obtain continuously and a plurality of interpolation y coordinate are carried out marginal correction (edge correction), to obtain a plurality of correction x coordinates and a plurality of correction y coordinate.Please with reference to Fig. 8 B, it illustrates the correction track synoptic diagram according to the line of induction of preferred embodiment of the present invention.In Fig. 8 B, proofread and correct track 820 and be level and smooth shape.
Marginal correction among the step S150 multiple mode capable of using is implemented, and below to lift two implementation methods now be that example is done explanation, is not limited to this.Please with reference to Fig. 9 A and Fig. 9 B, Fig. 9 A illustrates the synoptic diagram according to first example of the marginal correction of preferred embodiment of the present invention, and Fig. 9 B illustrates the synoptic diagram according to second example of the marginal correction of preferred embodiment of the present invention.In Fig. 9 A, each interpolation x coordinate and previous interpolation x coordinate thereof are made even all and are obtained corresponding correction x coordinate, and each interpolation y coordinate and previous interpolation y coordinate thereof are made even all and obtained corresponding correction y coordinate.For example, interpolation x coordinate x
D5Corresponding correction x coordinate x
C5Be interpolation x coordinate x
D2~x
D5Mean value, interpolation y coordinate y
D5Corresponding correction y coordinate y
C5Be interpolation y coordinate y
D2~y
D5Mean value.
In Fig. 9 B, be that a plurality of interpolation x coordinates that obtain in the set time are made even all and obtained corresponding correction x coordinate, and a plurality of interpolation y coordinates that obtain in the set time are made even all and obtained corresponding correction y coordinate.For example, a plurality of interpolation x coordinate x in the 1st set time Δ t
D1~x
D3Mean value correspond to and proofread and correct x coordinate x
C1, a plurality of interpolation y coordinate y
D1~y
D3Mean value correspond to and proofread and correct y coordinate y
C1Thus, the digital value that induction point is changed on the contact panel is handled through marginal correction more just can obtain the smooth track near the human body operation feeling.
The present invention also provides a kind of position sensing system of contact panel, and please with reference to Figure 10, it illustrates the synoptic diagram according to the display device of preferred embodiment of the present invention.Display device 1000 comprises a contact panel 1100, a position sensing system 1200 and an external piloting control system unit 1300.Contact panel 1100 comprises many x direction inductor line X1~X12 and many y direction inductor line Y1~Y8.Position sensing system 1200 comprises a multitask switch (MUX switch) 1210, one sensing unit (sensing unit) 1220, one judging unit (decisionunit) 1230, a track (gesture) recognition unit 1240, one edge correcting unit 1250 and a communication unit (communication unit) 1260.Multitask switch 1210 is coupled to many x direction inductor line X1~X12 and many y direction inductor line Y1~Y8 to receive signal.
When contact panel 1100 was touched, sensing unit 1220 was obtained generation above the p bar x direction inductor line of the inductance capacitance value of a critical value and the inductance capacitance value of q bar y direction inductor line.Judging unit 1230 is an x reference coordinate and a y reference coordinate in order to the centre coordinate with the line of induction with peak induction capacitance, and adjusts x reference coordinate and y reference coordinate respectively to obtain an interpolation x coordinate x according to the ratio of the inductance capacitance value of other line of induction and peak induction capacitance
dAn and interpolation y coordinate y
dIt is said that the detail operations principle system of sensing unit 1220 and judging unit 1230 is same as Fig. 1~Fig. 6, so no longer repeat in this.
When being moved continuously by touch points of contact panel 1100, judging unit 1230 can obtain a plurality of interpolation x coordinate x
dAnd a plurality of interpolation y coordinate y
dIf judging unit 1230 is with these interpolations x coordinate x
dAnd interpolation y coordinate y
dBe regarded as effectively, then track identification circuit 1240 is with these interpolations x coordinate x
dAnd interpolation y coordinate y
dCarry out track identification, to obtain a corresponding trace information.In addition, marginal correction unit 1250 is also to these interpolations x coordinate x
dAnd interpolation y coordinate y
dCarry out marginal correction to obtain a plurality of correction x coordinate x
cAnd a plurality of correction y coordinate y
cWherein, marginal correction unit 1250 can adopt like the mode of Fig. 9 A and Fig. 9 B and implement, and does not so limit.
The pipeline that communication unit 1260 is got in touch for position sensing system 1200 and external piloting control system unit 1300 can be with the trace information of track identification circuit 1240 outputs and the correction x coordinate x of marginal correction unit 1250 outputs
cAnd correction y coordinate y
cThe external piloting control system of being sent to unit 1300 also can receive the order of being seen off from external piloting control system unit 1300.
Touch control panel coordinate algorithm and position sensing system that the above embodiment of the present invention disclosed have multiple advantages, below just list and lift the explanation of part advantage as follows:
Touch control panel coordinate algorithm provided by the present invention and position sensing system; Through telling the interpolation spacing with waiting between each bar line of induction; And be benchmark with the corresponding centre coordinate of peak induction capacitance; Go out the interpolation coordinate figure with proximity sensing line interpolation again and obtain, make the resolution of contact panel improve by the position of touch points.In addition, coordinate algorithm of the present invention and position sensing system only adopt easy computing, so can realize significantly reducing the integral operation time than the tool advantage in computed in software complexity and hardware, improve the reaction velocity of system.Coordinate algorithm of the present invention and position sensing system also can compensate because the difference of processing procedure causes the induction point sensing capability inconsistent and cause the influence of position judgment deviation, improve the contact panel yield.
In addition; Coordinate algorithm of the present invention and position sensing system carry out marginal correction to resulting interpolation coordinate; So can solve in the process of continuous operation mode; Human body is not linear and line of induction track that cause presents jagged problem near the area of rhombus induction point on the contact panel and contact, makes the digital value that induction point is changed on the contact panel after marginal correction is handled, obtain the smooth track near the human body operation feeling.
In sum, though the present invention with the preferred embodiment exposure as above, yet it is not in order to limit the present invention.Have common knowledge the knowledgeable in the technical field under the present invention, do not breaking away from the spirit and scope of the present invention, when doing various changes that are equal to or replacement.Therefore, protection scope of the present invention is when looking accompanying being as the criterion that the application's claim scope defined.