Summary of the invention
The present invention proposes a kind of touch point localization method of infrared touch panel and uses the infrared touch panel of the method, to solve when current infrared touch panel is located in touch point, has complicated structure and realizes the technical matters that cost is higher.
The present invention adopts following technical scheme to realize: a kind of touch point localization method of infrared touch panel, and described method comprises step:
Start infrared touch panel, the successively all default infrared light paths of gating;
Judged whether that infrared light path is blocked, if any, the corresponding infrared transmitting tube of infrared light path that record is blocked and the coordinate of infrared receiving tube;
The coordinate of the intersection point between the infrared light path that calculating is blocked, the coordinate of this intersection point is the coordinate of touch point;
Wherein, described infrared touch panel only arranges respectively one group of infrared transmitting tube and one group of infrared receiving tube on limit, two opposite sides, the infrared light that each infrared transmitting tube is launched is received by least one infrared receiving tube and launches with the infrared light receiving and formed the infrared light array intersecting in touching surveyed area.
Wherein, if the infrared light path between the infrared light path between the first infrared transmitting tube and the second infrared receiving tube, the second infrared transmitting tube and the first infrared receiving tube, these two infrared light paths are blocked at described intersection point, and the coordinate of the intersection point between the infrared light path that described calculating is blocked specifically comprises:
Control each infrared transmitting tube and carry out respectively vertical scanning, the infrared receiving tube that while finding out vertical scanning, infrared light path is blocked, the horizontal ordinate that the horizontal ordinate of this infrared receiving tube is described intersection point;
Utilize AQ=QO*ST/TO to calculate the ordinate AQ of described intersection point, wherein, QO is the distance between the horizontal ordinate of described intersection point and the horizontal ordinate of the first infrared receiving tube, ST be the second infrared transmitting tube and the second infrared receiving tube in the distance of Y-direction, TO is that the second infrared receiving tube and the first infrared receiving tube are in the distance of directions X.
Wherein, the straight line at the straight line at described one group of infrared transmitting tube place or described one group of infrared receiving tube place is set to directions X.
A kind of infrared touch panel, comprise infrared transmitting tube, infrared receiving tube, touch surveyed area and processing unit, described infrared touch panel only arranges respectively one group of infrared transmitting tube and one group of infrared receiving tube on limit, two opposite sides, the infrared light that each infrared transmitting tube is launched is received by least one infrared receiving tube and launches with the infrared light receiving and formed the infrared light array intersecting in touching surveyed area;
When infrared light path touched point is blocked, the corresponding infrared transmitting tube of infrared light path that record is blocked and the coordinate of infrared receiving tube, the coordinate of the intersection point between the infrared light path that calculating is blocked, the coordinate of this intersection point is the coordinate of touch point.
Compared with prior art, the present invention has following beneficial effect:
The present invention only need to arrange respectively one group of infrared transmitting tube and infrared receiving tube on the relative side of infrared touch panel, just can realize and touch location, has reduced greatly the quantity of electronic component, not only simplifies the structure but also reduced production cost.
Embodiment
As shown in Figure 2, on the limit, two opposite sides of infrared touch panel, wherein a side evenly arranges one group of infrared transmitting tube, and another side evenly arranges one group of infrared receiving tube.Take directions X as example, in AB, the CD section of infrared touch panel upper side edge, infrared transmitting tube is set respectively, wherein the infrared transmitting tube in AB section is along counterclockwise deflection one acute angle of Y-direction, and the infrared transmitting tube in CD section is along clockwise deflection one acute angle of Y-direction; In infrared touch panel lower side EF, GH section, infrared receiving tube is set, wherein the infrared receiving tube in GH section is along counterclockwise deflection one acute angle of Y-direction, for receiving the Infrared that AB section infrared transmitting tube is launched, infrared receiving tube in EF section is along clockwise deflection one acute angle of Y-direction, the Infrared of launching for receiving CD section infrared transmitting tube.
The infrared light that each infrared transmitting tube is launched is received by least one infrared receiving tube and launches with the infrared light receiving and formed at touch surveyed area the infrared light array (or being called as infrared light grid) intersecting.When touch objects (as user's finger, writing pencil etc.) is touching striking in surveyed area, will block at least two infrared light paths (infrared light path as shown in phantom in Figure 2), and the position of every corresponding infrared transmitting tube of infrared light path and infrared receiving tube is fixed, according to similar triangles theorem, processing unit is easy to just to calculate the position of the intersection point of the different infrared light path being blocked of any two slopes, and the position of this intersection point is the position of touch objects.
The infrared touch panel of this structure only needs one group of infrared transmitting tube and one group of infrared receiving tube just can realize touch location, has reduced greatly the quantity of electronic component, not only simplifies the structure but also reduced production cost.Infrared light path in this infrared touch panel only need to construct the infrared light array of the intersection of abundant intersection point in touching surveyed area, arranging of infrared light path can be unordered intersection infrared array, the distribution of infrared light path also can be arranged to orderly, for example, infrared light path can be arranged to two groups of parallel infrared light paths and this two groups of parallel infrared light paths intersect between two
The region of infrared light array on infrared touch panel, effective touch area of formation, as seen in Figure 2, its formed effective touch area is positioned at the centre of screen.Can certainly adjust by adjusting infrared transmitting tube, the position of receiving tube on screen the position of the relative screen in effective touch area meets consumers' demand; Also can adjust by increasing or reduce the mode of infrared transmitting tube, receiving tube the scope of effective touch area simultaneously.
Shown in Fig. 3, in one embodiment, realize touch point localization method and comprise step:
Step S1, startup infrared touch panel, the successively all default infrared light paths of gating.
Under the control of processing unit, the infrared light path between all infrared transmitting tubes of gating and its corresponding infraluminescence pipe has formed the infrared light array (or being called as infrared light grid) intersecting in touching surveyed area successively.
Wherein the numbering of infrared transmitting tube is followed successively by I1, I2, I3... and In, infrared receiving tube be numbered R1, R2, R3... and Rn, gating infrared light path I successively1-Rp, R2-Rp+1, I3-Rp+2... and In+1-p-Rn, and gating infrared light path Iq-R1, Iq+1-R2, Iq+2-R3... and In-Rn+1-q, in touching surveyed area, formed the infrared light array intersecting.Wherein, n, p, q are natural number and p < n, q < n.
Step S2, judged whether that infrared light path is blocked, as being blocked without infrared light path, illustrate in touching surveyed area and do not have touch objects, return to step S1, under the control of processing unit, all infrared light paths of gating successively, detect whole touch surveyed area again, otherwise, proceed to step S3.
Step S3, if any infrared light path, be blocked, illustrate in touching surveyed area and have touch objects, the corresponding infrared transmitting tube of infrared light path that processing unit record is blocked and the coordinate of infrared receiving tube.Such as, with infrared receiving tube R1position is defined as true origin, and directions X is X-axis, and Y-direction is Y-axis.
The coordinate of intersection point A between two infrared light paths that step S4, calculating are blocked, the coordinate of this intersection point is the coordinate of touch objects, and coordinate data is delivered in computing machine and processed.For sake of convenience, suppose the infrared light path between infrared light path, the second infrared transmitting tube and the first infrared receiving tube between the first infrared transmitting tube and the second infrared receiving tube, these two infrared light paths are blocked at intersection point A.
Shown in Fig. 4, determine that the coordinate that calculates the intersection point A between the infrared light path being blocked specifically comprises:
First, determine the horizontal ordinate of intersection point A.By under the control of processing unit, from infrared transmitting tube I1start to carry out successively vertical scanning, i.e. infrared transmitting tube I1to infrared receiving tube R1transmitting infrared ray, if can gating infrared light path I1-R1, and then judge whether energy gating infrared light path I2-R2, by that analogy, know when cannot gating infrared light path Ix-Rxtime, now, infrared receiving tube Rxor the infrared power valve R that connectsxhorizontal ordinate be exactly that intersection point A is at the horizontal ordinate of directions X.Wherein, x is natural number and 1≤x≤n.
Secondly, according to similar triangles theorem, processing unit calculates the intersection point A of two infrared light paths that are blocked at the ordinate of Y-direction.Triangle OQA and triangle OTS are similar triangles, according to leg-of-mutton formula, can obtain: QO/TO=AQ/ST, that is, and AQ=QO*ST/TO.Wherein, AQ is the ordinate of intersection point A, QO is the distance between the horizontal ordinate of intersection point A and the horizontal ordinate of the first infrared receiving tube, ST be the second infrared transmitting tube and the second infrared receiving tube in the distance of Y-direction, TO is that the second infrared receiving tube and the first infrared receiving tube are in the distance of directions X.Because the coordinate of each infrared transmitting tube and each infrared receiving tube is known, so processing unit is very easy to calculate the ordinate of intersection point A.
Step S5, by the coordinate data of the intersection point A calculating namely the coordinate data of touch objects deliver in computing machine and process, and touch operation is made to response.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.