CN104866144B - A kind of recognition methods of touch points of infrared touch screen - Google Patents
A kind of recognition methods of touch points of infrared touch screen Download PDFInfo
- Publication number
- CN104866144B CN104866144B CN201510326787.5A CN201510326787A CN104866144B CN 104866144 B CN104866144 B CN 104866144B CN 201510326787 A CN201510326787 A CN 201510326787A CN 104866144 B CN104866144 B CN 104866144B
- Authority
- CN
- China
- Prior art keywords
- microcontroller
- axis
- host
- infrared
- scanning information
- 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
Links
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention discloses a kind of recognition methods of touch points of infrared touch screen, comprise the following steps:A, control signal is sent to from microcontroller by host microcontroller, makes host microcontroller when controlling X-axis infrared emission unit to be scanned, also control Y-axis infrared emission unit to be scanned simultaneously from microcontroller;B, after single pass is completed from microcontroller driving Y-axis infrared emission unit, host microcontroller is passed to from microcontroller by the scanning information in the Y-axis, after host microcontroller driving X-axis infrared emission unit completes single pass, host microcontroller obtains the scanning information in X-axis;C, the scanning information on the scanning information and Y-axis in X-axis is identified host microcontroller, and after the completion of identification, host microcontroller sends control signal to from microcontroller again, starts to scan next time.The present invention is by controlling X-axis infrared emission unit and Y-axis infrared emission unit to be scanned to reach the quick purpose for confirming to touch point coordinates simultaneously.
Description
Technical field
The present invention relates to touch-screen, more particularly to a kind of recognition methods of touch points of infrared touch screen.
Background technology
In the prior art, infrared touch panel is mainly by microcontroller, light-guiding pillar, touch-screen body, X-axis infrared emission unit, X
Axle infrared receiver, Y-axis infrared emission unit, Y-axis infrared receiver and infrared transmitting circuit composition.Such as China Patent No.
" 201220662044.7 " disclosed a kind of infrared touch panel on June 19th, 2013, and its technical scheme is the infrared touch
Screen includes touch-screen body, light-guiding pillar, circuit board, and infrared transmitting tube and infrared receiving tube are installed with circuit board, described to touch
Touch screen body to be located above the cushion cap of light-guiding pillar, the circuit board is located at below the cushion cap of light-guiding pillar, and the infrared hair on circuit board
Penetrate pipe and infrared receiving tube is respectively positioned on the inside of cushion cap.At work, the microcontroller of infrared touch panel passes through the infrared touch panel
Infrared transmitting circuit controls X-axis infrared emission unit and Y-axis infrared emission unit transmitting infrared ray, the corresponding shape on touch-screen body
The infrared ray matrix intersected anyhow into X-direction and Y direction, when having, when touching body touch, touch cognition is blocked by the point
X-direction and Y direction infrared ray, and then by infrared receiving circuit and microcontroller judge touch body in touch-screen
Position on body.
In actual use, the prior art using above-mentioned patent document as representative, it is by single at work
The infrared transmitting tube of microprocessor control X-axis and the infrared transmitting tube of Y-axis launch infrared ray successively, that is, treat X-axis infrared emission list
After the completion of infrared transmitting tube in member scans successively, then the infrared transmitting tube in Y-axis infrared emission unit is controlled to scan successively;But
With the development of society and the progress of infrared touch technology, the applicable industry of infrared touch panel is more and more, infrared touch panel
Size is also increasing, single microprocessor control X-axis and Y-axis infrared transmitting tube launch successively infrared ray structure will cause it is red
The single sweep operation time increase of outer touch-screen, for infrared touch panel of the size more than 42 cun, this will cause red
There is the defects of touching delay and setting-out broken string in outer touch-screen, seriously reduces the touch precision of infrared touch panel.
The content of the invention
It is an object of the invention to solve the above-mentioned problems in the prior art, there is provided a kind of touch points of infrared touch screen
Recognition methods, present invention solves the technical problem that be by and meanwhile control X-axis infrared emission unit and Y-axis infrared emission unit
It is scanned to reach the quick purpose for confirming to touch point coordinates.
To achieve the above object, the technical solution adopted by the present invention is as follows:
A kind of recognition methods of touch points of infrared touch screen, it is characterised in that comprise the following steps:
A, control signal is sent to from microcontroller by host microcontroller, makes host microcontroller in the control infrared hair of X-axis
When penetrating unit and being scanned, also Y-axis infrared emission unit is controlled to be scanned simultaneously from microcontroller;
B, it is infrared by Y-axis from microcontroller after single pass is completed from microcontroller driving Y-axis infrared emission unit
Receiving unit obtains the scanning information in Y-axis, and the scanning information in the Y-axis is passed into host microcontroller, when main microcontroller
After device driving X-axis infrared emission unit completes single pass, host microcontroller is obtained in X-axis by X-axis infrared receiver
Scanning information;
C, the scanning information on the scanning information and Y-axis in X-axis is identified host microcontroller, main after the completion of identification
Microcontroller sends control signal to from microcontroller again, starts to scan next time.
When there is touch point, determine the touch point in Y-axis from microcontroller according to the scanning information in Y-axis in step b
On coordinate, host microcontroller determines coordinate of the touch point in X-axis according to the scanning information in X-axis, then in step c
Coordinate of the touch point in X-axis and the coordinate in Y-axis are identified host microcontroller, determine the two-dimensional coordinate of touch point.
The host microcontroller and from being provided with data line and synchronous signal line between microcontroller, the synchronous letter
The both ends of number line are connected with the I/O interfaces of host microcontroller and the I/O interfaces from microcontroller respectively, for host microcontroller to
Control signal is sent from microcontroller;The both ends of the data line are respectively with the UART interface of host microcontroller and from micro-control
The UART interface connection of device processed, for transmitting scanning information from microcontroller to host microcontroller.
Using the advantage of the invention is that:
First, in the present invention, the cooperation by host microcontroller and from microcontroller is infrared in host microcontroller control X-axis
While infrared transmitting tube scans successively in transmitter unit, the infrared hair in Y-axis infrared emission unit is also controlled from microcontroller
Pipe is penetrated to scan successively;And the scan mode of prior art be single microcontroller first control it is infrared in X-axis infrared emission unit
Transmitting tube scans successively, after the completion for the treatment of the infrared transmitting tube scanning in X-axis infrared emission unit, then controls Y-axis infrared emission list
Infrared transmitting tube in member scans successively;Compared with prior art, the present invention makes the scanning of Y direction and the scanning of X-direction
It is synchronous to carry out, the sweep time of Y direction is eliminated, coordinate of the touch point in X-axis and Y-axis can be identified simultaneously, not only greatly
Width reduces the single sweep operation time of whole infrared touch panel, also to touch the recognition speed of point coordinates faster, particularly pair
For infrared touch panel of the size more than 42 cun, infrared touch panel can be avoided touch delay and setting-out broken string etc. occur and lacked
Fall into, the touch precision of infrared touch panel greatly improved.
2nd, in the present invention, host microcontroller is connected with microcontroller by UART interface, have data transmission bauds fast with
The advantages of data transfer is more stable.
Brief description of the drawings
Fig. 1 is the FB(flow block) of the present invention.
Embodiment
A kind of recognition methods of touch points of infrared touch screen, comprises the following steps:
A, control signal is sent to from microcontroller by host microcontroller, makes host microcontroller in the control infrared hair of X-axis
When penetrating unit and being scanned, also Y-axis infrared emission unit is controlled to be scanned simultaneously from microcontroller;
B, it is infrared by Y-axis from microcontroller after single pass is completed from microcontroller driving Y-axis infrared emission unit
Receiving unit obtains the scanning information in Y-axis, and the scanning information in the Y-axis is passed into host microcontroller, when main microcontroller
After device driving X-axis infrared emission unit completes single pass, host microcontroller is obtained in X-axis by X-axis infrared receiver
Scanning information;
C, the scanning information on the scanning information and Y-axis in X-axis is identified host microcontroller, main after the completion of identification
Microcontroller sends control signal to from microcontroller again, starts to scan next time.
In the present invention, when there is touch point, determine that this is touched from microcontroller according to the scanning information in Y-axis in step b
The coordinate a little in Y-axis is touched, host microcontroller determines coordinate of the touch point in X-axis according to the scanning information in X-axis, then
Coordinate of the touch point in X-axis and the coordinate in Y-axis are identified host microcontroller in step c, determine touch point
Two-dimensional coordinate.
In the present invention, the host microcontroller and from being provided with data line and synchronous signal line between microcontroller,
The both ends of the synchronous signal line are connected with the I/O interfaces of host microcontroller and the I/O interfaces from microcontroller respectively, for leading
Microcontroller sends control signal to from microcontroller;The both ends of the data line connect with the UART of host microcontroller respectively
Mouth connects with the UART interface from microcontroller, for transmitting scanning information from microcontroller to host microcontroller.
In the present invention, the host microcontroller drives X-axis infrared emission unit to launch infrared ray by X-axis radiating circuit,
The host microcontroller obtains the scanning that X-axis infrared receiver receives by the sampling module being integrated on host microcontroller
Information;It is described to drive Y-axis infrared emission unit to launch infrared ray by Y-axis radiating circuit from microcontroller, it is described from microcontroller
Device is by being integrated in the scanning information for obtaining Y-axis infrared receiver from the sampling module on microcontroller and receiving.
The present invention specific implementation process be:Host microcontroller sends synchronous letter by synchronous signal line to from microcontroller
Number, make host microcontroller and drive X-axis infrared emission unit and Y-axis infrared emission unit respectively from microcontroller while launch red
Outside line is scanned, i.e., in X-axis infrared emission unit while first infrared transmitting tube transmitting infrared ray, the infrared hair of Y-axis
First infrared transmitting tube penetrated in unit also launches infrared ray.After Y-axis infrared emission unit completes single pass, from micro-control
Device processed by sampling module collect Y direction scanning information, and by data line by the scanning information pass to master it is micro-
Control.Because existing infrared touch panel is generally rectangular parallelepiped structure, i.e., the quantity one of infrared transmitting tube in X-axis infrared emission unit
As be more than Y-axis infrared emission unit in infrared transmitting tube quantity, therefore, when from microcontroller drive Y-axis infrared emission unit
In all infrared transmitting tubes complete single pass after, the scanning of X-axis infrared emission unit is still continuing, and treats X-axis infrared emission
After unit completes single pass, host microcontroller collects the scanning information of X-direction by sampling module, now host microcontroller
Have been received by since the scanning information of the Y direction of microcontroller.When there is touch point, the scanning that is collected into from microcontroller
Information can determine coordinate of the touch point in Y-axis, and the scanning information that host microcontroller is collected into can determine touch point in X-axis
On coordinate, pairing is identified in the coordinate of X-direction and Y direction in touch point, you can determine the final seat of touch point
Mark.Finally, host microcontroller sends control signal to from microcontroller again, starts to scan next time.
Claims (1)
1. a kind of recognition methods of touch points of infrared touch screen, it is characterised in that comprise the following steps:
A, control signal is sent to from microcontroller by host microcontroller, makes host microcontroller in control X-axis infrared emission list
When member is scanned, also Y-axis infrared emission unit is controlled to be scanned simultaneously from microcontroller;
B, after single pass is completed from microcontroller driving Y-axis infrared emission unit, Y-axis infrared receiver is passed through from microcontroller
Unit obtains the scanning information in Y-axis, and the scanning information in the Y-axis is passed into host microcontroller, when host microcontroller drives
After dynamic X-axis infrared emission unit completes single pass, host microcontroller obtains the scanning in X-axis by X-axis infrared receiver
Information;
C, the scanning information on the scanning information and Y-axis in X-axis is identified host microcontroller, after the completion of identification, main micro-control
Device processed sends control signal to from microcontroller again, starts to scan next time;
When there is touch point, determine the touch point in Y-axis from microcontroller according to the scanning information in Y-axis in step b
Coordinate, host microcontroller determine coordinate of the touch point in X-axis according to the scanning information in X-axis, and then the master in step c is micro-
Coordinate of the touch point in X-axis and the coordinate in Y-axis are identified controller, determine the two-dimensional coordinate of touch point;
The host microcontroller and from being provided with data line and synchronous signal line, the synchronous signal line between microcontroller
Both ends be connected respectively with the I/O interfaces of host microcontroller and the I/O interfaces from microcontroller, for host microcontroller to from micro-
Controller sends control signal;The both ends of the data line are respectively with the UART interface of host microcontroller and from microcontroller
UART interface connection, for from microcontroller to host microcontroller transmit scanning information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510326787.5A CN104866144B (en) | 2015-06-15 | 2015-06-15 | A kind of recognition methods of touch points of infrared touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510326787.5A CN104866144B (en) | 2015-06-15 | 2015-06-15 | A kind of recognition methods of touch points of infrared touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104866144A CN104866144A (en) | 2015-08-26 |
CN104866144B true CN104866144B (en) | 2018-03-20 |
Family
ID=53912018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510326787.5A Active CN104866144B (en) | 2015-06-15 | 2015-06-15 | A kind of recognition methods of touch points of infrared touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104866144B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598994A (en) * | 2008-12-31 | 2009-12-09 | 广东威创视讯科技股份有限公司 | Anti-interference infrared touching device and method thereof |
CN201903866U (en) * | 2010-11-24 | 2011-07-20 | 深圳市正大盈拓识别技术有限公司 | Infrared touch screen with multi processing units |
CN103064563A (en) * | 2012-12-28 | 2013-04-24 | 北京汇冠触摸技术有限公司 | Signal processing and control method and signal processing and control device of infrared touch screen |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015060296A (en) * | 2013-09-17 | 2015-03-30 | 船井電機株式会社 | Spatial coordinate specification device |
-
2015
- 2015-06-15 CN CN201510326787.5A patent/CN104866144B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598994A (en) * | 2008-12-31 | 2009-12-09 | 广东威创视讯科技股份有限公司 | Anti-interference infrared touching device and method thereof |
CN201903866U (en) * | 2010-11-24 | 2011-07-20 | 深圳市正大盈拓识别技术有限公司 | Infrared touch screen with multi processing units |
CN103064563A (en) * | 2012-12-28 | 2013-04-24 | 北京汇冠触摸技术有限公司 | Signal processing and control method and signal processing and control device of infrared touch screen |
Also Published As
Publication number | Publication date |
---|---|
CN104866144A (en) | 2015-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105353876B (en) | A kind of space gesture control system for identifying and method based on multiple spot light sensation | |
WO2020034893A1 (en) | Intelligent interaction system, writing track display method and device, tablet and medium | |
CN103823596A (en) | Touch scanning method and device | |
WO2017152468A1 (en) | Touch control scanning driving method for reducing power consumption | |
CN107145256A (en) | Zero touches the implementation method of height, apparatus and system | |
CN104182049A (en) | Non-contact type infrared two-dimensional gesture detection and recognition device and method | |
CN105260112A (en) | Method and device for controlling screen between terminals | |
CN102880319B (en) | Based on the touching device of optical image technology | |
CN103970360B (en) | Multipoint-touch-based gesture identification method and system | |
EP2693313A3 (en) | Electronic pen input recognition apparatus and method using capacitive-type touch screen panel (tsp) | |
WO2018094830A1 (en) | Interaction device, and interaction method and system | |
CN103699276B (en) | Infrared geminate transistor touch screen scanning method and system | |
CN104866144B (en) | A kind of recognition methods of touch points of infrared touch screen | |
CN207571202U (en) | A kind of device for being applied to detection USB and turning serial port module | |
CN102915158B (en) | Aerial touching device and aerial touch method | |
CN105426022A (en) | Infrared touch screen and multi-point positioning method based on the infrared touch screen | |
CN106401357B (en) | Vehicle glass apparatus for controlling of lifting, system and method | |
CN103744561B (en) | multipoint positioning method of infrared touch screen device | |
CN204731760U (en) | A kind of dual controller infrared touch panel | |
WO2011110100A1 (en) | Control panel and serial port communication arbiter for touch screen with camera | |
CN106843599A (en) | A kind of infrared touch identifying system | |
CN106527775A (en) | Interactive device and trajectory generation method and device | |
CN103823577A (en) | Sensor-based gesture remote-control method and system | |
CN103336592B (en) | Driving method of touch panel | |
CN105183244B (en) | A kind of more real point recognizers of server touch screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |