Anti-interference type infrared touch device and localization method
[technical field]
The present invention relates to a kind of infrared location technology and equipment, particularly relates to a kind of electronic display unit or other writing planes of being applied to and carries out anti-interference type infrared touch device and the localization method that handwriting trace is caught and reappeared.
[background technology]
The electronic touch technology provides great convenience to man-machine interaction mode, technically also provides multiple solution, and Performance And Reliability is also constantly perfect.Common in the market have a dual mode: a kind of is passive mode, utilizes resistance, electric capacity, infrared scan technology, and characteristics are the captured objects that need not promptly to can be used as through the pen of special processing locating device; Another is an active mode, and as electromagnetic location, ultrasonic locating, this mode need could be used through the electronic pen of special facture, in case pen is lost or damaged, whole positioning system cannot be worked.Along with the continuous development of touching technique, the infrared scan location technology has its special advantages, for example compares with resistance, electric capacity location, can accomplish light transmission completely, wearing quality; Compare with the electromagnetic location technology, infrared location technology need not to use special electronic pen, and is easy to use; In addition, infrared location technology can also be produced the large scale touch-screen very easily, can be applicable to rear-projection TV, front projection machine, or in the PDP/LCD display device, in prelocalization, because the complete light transmission of infrared location, other several location technologies can't be compared.Though infrared location technology has many advantages and since the size restrictions of infrared tube the raising of resolution, infrared transmitting tube has a fixing emission angle, can interfere with each other between infrared tube; Reflection of light causes writing thing can not block infrared light path; The touch-screen refresh rate of large scale infrared technology is slow; Adopt traditional treatment technology, infrared location technology can only be used for undersized touch-screen and the low occasion of positioning accuracy request, the requirement that does not reach handwriting far away.In order to catch effect in range of application and the location of expanding infrared location technology, all done a large amount of research both at home and abroad, introduced the way that improves infrared touching device resolution as domestic 03113702.4, what wherein relate to only is a kind of theoretic mathematical model, do not consider the particular problem of infrared touching device, can not form the product of a success.
Existing infrared positioning touch device has added light-conductive hole for improving anti-interference at screen edge, as Figure 12, light-conductive hole is the housing with the frame one, infrared transmitting tube and receiving tube are aimed at light-conductive hole can suppress interference between infrared tube, but on technology, accomplish infrared emission and receiving tube are aimed at light-conductive hole, increased producting process difficulty.
Fig. 1 is infrared positioning touch device structure of the present invention and light path synoptic diagram, and three groups of emissions, receiver module are arranged on directions X as shown in the figure, and three groups of emissions, receiver module are arranged on the Y direction.The infrared tube scanning work synoptic diagram of Fig. 3 or be separated by emission or receiver module adjacent for general infrared location technology.Because infrared transmitting tube has certain emission angle β, the transmitting boundary of power valve can cover the infrared receiving tube adjacent or module of being separated by on the transmitter module, so if infrared touching device adopts general scan method shown in Figure 3, with the m infrared tube is the limitation that example illustrates its scan method, and the infrared light of the m infrared transmitting tube emission of the X_SND2 (transmitter module 2) that shows at Fig. 1 can be received with the m infrared receiving tube of numbering by X_RCV1, X_RCV2, X_RCV3 ( receiver module 1,2,3) receiver module.When shelter during in shelter 2 positions, the light that shelter blocks can have influence on X_RCV1 simultaneously, X_RCV2, the receiving tube m of X_RCV3, thereby receiver module X_RCV1, X_RCV2, X_RCV3 can detect block information simultaneously, on directions X, detect 3 simultaneously like this and block the position, in like manner also there is the problem that detects a plurality of block informations simultaneously on the Y direction, cause locating device can't judge the concrete position of blocking, and under emission angle β certain condition, increasing along with the infrared touching device size, power valve m can interfere with the more corresponding infrared tube of multimode, and other infrared tube also is the same principle; Relate to the scanning of the infrared tube of One's name is legion in the infrared ray touching device, in large-sized infrared ray touching device, also relate to a plurality of microprocessors, communicating by letter between the scanning of therefore finishing big quantity infrared tube and a plurality of microprocessors needs the plenty of time, the time that the communication pattern that adopts general scan method and principal and subordinate to call formula spends is oversize, has had a strong impact on the writing speed and the effect of infrared ray touching device; Infrared light is as a kind of form of light, the problem that has reflection, the light path 4 in 1 as shown is shown in the light path 5, in the reflecting surface emission that the infrared light of the infrared transmitting tube of infrared posting corner emission can form along infrared posting edge, cause and write object and in some zone, can't normally write; The infrared ray touching device is as a kind of touching technique, and requirement can provide various sizes, adopts traditional project organization, can't satisfy the requirement of flexible design various sizes.
Therefore, need provide a kind of simple in structure, high resolving power, high anti-interference, refresh rate fast, be applicable to the infrared touching device and the localization method of giant-screen location.
[summary of the invention]
The purpose of this invention is to provide a kind of strong interference immunity, processing speed are fast, be applicable to the giant-screen location anti-interference type infrared touch device and localization method.
To achieve these goals, the present invention adopts following technical scheme:
A kind of anti-interference type infrared touch device is provided, it is included in one or more groups transmitter module and the receiver module of arranging on the longitudinal and transverse direction, link to each other by synchronous signal line between each transmitter module, link to each other with bus by synchronous signal line between each receiver module, described each receiver module and transmitter module are by controlling from microprocessor, this infrared positioning touch device also comprises a master microprocessor, this master microprocessor can with one of them from the shared microprocessor of microprocessor.Transmitter module from microprocessor by synchronous signal line link to each other with master microprocessor, the linking to each other with master microprocessor with synchronous signal line of receiver module from microprocessor through bus, benchmark synchronizing signal of this master microprocessor output give all transmitter modules from microprocessor and all receiver modules from microprocessor, and obtain the detected block information of each receiver module from bus, carry out touch location calculation, and result of calculation is sent to computing machine.Each receiver module adopt detected touch information or other Debugging message the work schedule mode of timesharing to pass to master microprocessor from the microprocessor through bus interface, generally with active form described information is passed to master microprocessor from microprocessor.Simultaneously, be further to eliminate the interference phenomenon between corner's infrared tube, be positioned at the working method that corresponding infrared tube adopts sequential to stagger on adjacent transmitter module and the receiver module of at least one corner of this anti-interference type infrared touch device.
The schematic diagram of this transmitter module and receiver module is shown in Fig. 4,5, the capable array scanning of the infrared transmitting tube of this transmitter module and receiver module, infrared receiving tube is connected with microprocessor, the column array scanning of infrared transmitting tube links to each other with the modulation signal of high-frequency modulator output, the column array scanning of infrared receiving tube links to each other with the output modulation signal of high-frequency modulator, this high-frequency modulator and power valve column array scanning same frequency.
The schematic diagram of this master microprocessor as shown in Figure 6, wherein the port that possesses the PWM output function of master microprocessor links to each other with the port with interrupt function from microprocessor, and the microprocessor of each receiver module can link to each other with master microprocessor by I2C interface or SPI interface.Link to each other by power lead, ground wire, emission infrared tube power lead, synchronous signal line between this transmitter module, link to each other by power lead, ground wire, synchronous signal line, I2C bus clock line, I2C bus data line between this receiver module.This master microprocessor can with one of them from the shared microprocessor of microprocessor.The light transmission piece that prevents that dust and anti-ambient light from disturbing is installed on the frame at four edges, seizure plane of infrared touching device.And at least one end of at least one transmitting side of this anti-interference type infrared touch device and/or at least one receives the infrared tube biasing certain angle of at least one end on limit.For preventing that infrared light from forming reflection on the light transmission piece at four edges, a plurality of infrared tubes biasing certain angles on four angles of infrared ray positioning touch device, preferred plan are to screen center's certain angle of setovering according to 3-10 infrared tube on each angle of touching device of different size.
A kind of localization method that adopts above-mentioned anti-interference type infrared touch device: the benchmark synchronizing signal that transmitter module and receiver module respond described master microprocessor to be provided produces particular sync signal and scans the 1st to N power valve and receiving tube one by one, the infrared emission of every group of transmitter module and receiver module receives the pipe synchronous working, and the working method that at least one corresponding infrared tube adjacent or other transmitter modules of being separated by and receiver module group adopts sequential to stagger, this particular sync signal is to dispose according to the needs that sequential staggers from the benchmark synchronizing signal.
Each receiver module adopt detected touch information or other Debugging message the work schedule mode of timesharing to pass to master microprocessor from the microprocessor through bus interface, generally adopt the transmission of I2C communication interface.Simultaneously, be positioned at the working method that corresponding infrared tube adopts sequential to stagger on the adjacent transmitter module of at least one corner of this anti-interference type infrared touch device and the receiver module.
Every pair of infrared emission, receiver module have only a pair of infrared tube in work at synchronization, and the moment of the corresponding infrared tube work of adjacent panels is inconsistent, the scan mode of promptly having taked sequential to stagger; The infrared transmitting tube induced signal that infrared receiving tube receives is through the sweep circuit of microprocessor control, the detecting circuit detection, it with the amplifier tube core, vacuum generator, resistance, electric capacity, etc. discrete element cooperate the signal that infrared tube is received to amplify, through ADC (Analog-to-Digital Converter, analog to digital converter), the light intensity signal of infrared tube is become digital signal; Master microprocessor carries out computing formation coordinate information to detected block information and sends to computer by USB interface or RS-232 serial line interface.Each transmitter module or receiver module are controlled from microprocessor by one, what all controls transmitted and received works under the coordination of a master microprocessor from microprocessor, linking to each other with master microprocessor by I2C interface or SPI interface of each receiver module from microprocessor, the port that has an interrupt function from certain of microprocessor of each receiver module and transmitter module links to each other with the port that possesses the PWM output function of master microprocessor, realizes the synchronous working of whole infrared ray positioning touch device.
Anti-interference type infrared touch device of the present invention can also adopt modular production technology, and it is that each module is by independent microprocessor control that each transmitter module or receiver module adopt modular design.Can develop the infrared ray positioning touch device that different size requires flexibly by the quantity that changes infrared tube on right quantity of transmitter module, receiver module or transmitter module, the receiver module.
Compared with prior art, the present invention has following beneficial effect:
The present invention adopts the light transmission piece that prevents that dust and anti-ambient light from disturbing, and has not only improved the anti-interference of infrared touching device, has also simplified production technology, is all to have than obvious effects on the technology or on the cost.The present invention emission, receiver module adjacent or that be separated by adopt the special sequential working method that staggers to improve the anti-interference of this infrared positioning touch device.The present invention is for improving the refresh rate of large scale infrared ray positioning touch screen, sequential mode was avoided bus collision when I2C had adopted special time-sharing work, improved the speed of infrared ray positioning touch device processing block information data greatly, the effect of finishing track capturing on the large scale touch-screen is remarkable.
[description of drawings]
Fig. 1 is the structure and the light path synoptic diagram of the infrared positioning touch device of the present invention;
Fig. 2 is the microprocessor distribution schematic diagram of anti-interference type infrared touch device of the present invention;
Fig. 3 is the infrared tube scanning work sequential chart of existing infrared touching device;
Fig. 4 is a transmitter module principle schematic of the present invention;
Fig. 5 is a receiver module principle schematic of the present invention;
Fig. 6 is a primary module principle schematic of the present invention;
Fig. 7 is the annexation synoptic diagram of each intermodule of the present invention;
Fig. 8 is the transmitter module of anti-interference type infrared touch device of the present invention or the scanning work sequential chart of receiver module;
Fig. 9 is the duty sequential chart of the corresponding infrared tube of the adjacent or transmitter module of being separated by on the directions X of anti-interference type infrared touch device of the present invention, receiver module;
Figure 10 is the duty sequential chart of the corresponding infrared tube of anti-interference type infrared touch device lower right-hand corner adjacent transmission module of the present invention and receiver module;
Figure 11 is the working timing figure that the I2C line timesharing of anti-interference type infrared touch device of the present invention sends detected block information;
Figure 12 is the existing synoptic diagram that the infrared positioning touch device of light-conductive hole is housed.
[embodiment]
Please refer to Fig. 1, anti-interference type infrared touch device of the present invention is being arranged the infrared transmission module and the receiver module of many group splicings, the corresponding transmitter module of X-direction and Y direction, the strict alignment of receiver module on X, Y coordinate direction.Install three pairs on the X-direction: X_SND1, X_RCV1; X_SND2, X_RCV2; X_SND3, X_RCV3.Install three pairs on the Y direction: Y_SND1, Y_RCV1; Y_SND2, Y_RCV2; Y_SND3, Y_RCV3; Embodiment for other can change the transmitter module on X and the Y direction, the infrared touching device that the receiver module number forms different size.N infrared tube arranged on each transmitter module or the receiver module, require to increase or to reduce the number of infrared tube on the number of transmitter module, receiver module or transmitter module, the receiver module according to the size dimension of infrared touch panel.For avoiding infrared light reflection to disturb, 3-5 infrared tube on four angles in the infrared touching device done migration processing to screen center, each transmitter module and receiver module include respectively from microprocessor in this anti-interference type infrared touch device, this anti-interference type infrared touch device also includes a master microprocessor in addition, in the present embodiment, master microprocessor and one of them are from the shared microprocessor of microprocessor and be integrated on the primary module, be the master microprocessor+X_RCV1 among Fig. 2, master microprocessor and distribute as shown in Figure 2 from microprocessor.
Each intermodule annexation is as shown in Figure 7:
1, links to each other by power lead, ground wire, emission infrared tube power lead, synchronous signal line between each transmitter module.
2, link to each other by power lead, ground wire, synchronous signal line, I2C bus clock line, I2C bus data line between each receiver module.
3, the interface between primary module and transmitter module:
Employing+5V, GND provide power supply for MCU, the logic IC etc. of transmitter module;
Adopt LED_VCC power supply to be provided for the anode of power valve, the independent current source power supply, avoid and+interference between the 5V power supply;
Primary module offers transmitter module synchronous clock SYNC, and each receives, transmitter module cooperates the location work of finishing.
4, the interface between primary module and receiver module:
Employing+5V, GND give whole receiver module power supply;
Primary module offers receiver module synchronous clock SYNC, and each receives, transmitter module cooperates the location work of finishing;
Primary module is communicated by letter with receiver module, and (order of primary module is handed down to receiver module by the I2C bus for SDA, SCL) interconnection, and receiver module is uploaded touch coordinate information or other Debugging message by the I2C bus with the data line of I2C bus, clock line.
The port that has an interrupt function from microprocessor on the port that this master microprocessor has a PWM output function and infrared transmission module, the receiver module links to each other and realizes the synchronous sequence signal of whole noctovisor scan positioning touch device.In descending synchronously of synchronizing signal, with transmitter module, receiver module on the directions X is example, its scan method is by shown in Figure 8, scan the 1st to N emission, receiving tube one by one, realize every group of transmitter module and receiver module infrared emission receive to the pipe synchronous working and corresponding infrared tube asynchronous working on adjacent other transmitter modules and the receiver module group; Except synchronizing signal, receiver module also need the I2C interface from microprocessor and master microprocessor.By the I2C communication interface, each receiver module passes to master microprocessor to detected touch signal timesharing, has improved the different size particularly sweep velocity and the reliability of large scale infrared touch panel.
The present invention designs a special sequential, can effectively avoid because the interference that the infrared transmitting tube emission angle causes.Sequential as shown in Figure 9 scans each infrared tube one by one, synchronization only has a pair of infrared tube in running order on a pair of transmitter module, receiver module, but different emissions, receiver module are designed to inconsistent to the last corresponding moment that the plumber is done, with No. 2 pipes among Fig. 1 is example, when being No. 2 infrared tube work of transmitter module X_SND2 and receiver module X_RCV2, No. 2 infrared tubes of transmitter module X_SND1, X_SND3 and receiver module X_RCV1, X_RCV3 are in the state of quitting work.Seeing also Fig. 9 shows, adopt this work schedule mode, even No. 2 power valves of X_SND2 can shine corresponding No. 2 infrared receiving tubes of other adjacent receiver modules, but because with constantly, No. 2 pipes of adjacent panels are in the state of quitting work, and when shelter during in shelter 2 positions, have only X_RCV2 to detect block information, so only detect a block information on directions X, in like manner the Y direction also only detects a block information at synchronization.So just a plurality of information can be do not detected simultaneously, promptly block information accurately can be judged.
Simultaneously the adjacent transmitter module and the corresponding infrared transmitting tube receiving tube of receiver module in the infrared touching device lower left corner shown in Fig. 1 we be designed to be operated in different sequential, be example still with No. 2 pipes, when being No. 2 infrared tube work of transmitter module Y_SND1 and receiver module Y_RCV1, No. 2 infrared tubes of receiver module X_RCV1, transmitter module X_SND1 are in the state of quitting work.Seeing also Figure 10 shows, adopt this work schedule mode, even No. 2 power valves of Y_SND1 can shine corresponding No. 2 infrared receiving tubes of adjacent panels X_RCV1, but owing to be in the state of quitting work with No. 2 pipes of moment X_RCV1 plate, in like manner the transmitter module X_SEND3 in this touching device upper right corner also is designed to be operated in different sequential with receiver module Y_RCV3.Therefore the infrared tube of receiver module does not receive the infrared light that adjacent transmitter module infrared tube is launched on the synchronization lower left corner and the upper right corner, so just can not produce interference, and infrared touching device just can accurately detect the more specific location information of shelter.
I2C bus of the present invention is finished communicating by letter between primary module and each receiver module, and the order of primary module is handed down to each receiver module by the I2C bus, and receiver module is uploaded touch information or other Debugging message by the I2C bus.The present invention is for improving the refresh rate of large scale infrared ray positioning touch screen, I2C communication has adopted special work schedule mode to avoid bus collision, improved the speed of infrared ray positioning touch device processing block information data greatly, the effect of finishing track capturing on the large scale touch-screen is remarkable.As shown in figure 11, under operate as normal, each receiver module is counted synchronizing pulse, when the umber of pulse of counting during for 16 times of this receiver module numbering, if detect block information, begin to start the detected block information of transmission constantly to master microprocessor at this; So just avoided sending the bus collision that block information causes simultaneously behind all infrared tube ends of scan in the conventional method, improved refresh rate.
The above is preferred embodiment of the present invention only, and protection scope of the present invention is not limited thereto, and those of skill in the art are any to be included within protection domain of the present invention based on non-material change on the technical solution of the present invention.