A kind of method of realizing double-screen synchronous tracking of pressure-sensing electronic whiteboard
[technical field]
The present invention relates to a kind of electronic whiteboard, particularly a kind of pressure sensitive electric whiteboard is realized double-screen synchronous and is chased afterThe method of track.
[background technology]
Electronic whiteboard is the height that has collected the multiple high-tech means research and development such as most advanced and sophisticated electronic technology, software engineeringNew Product, it passes through the different principle such as application electromagnetic induction, pressure sensitive, optoelectronic induction, in conjunction withComputer and projector, can realize with no paper office and teaching. Electronic whiteboard is divided into pressure by operation principleTwo kinds of sense principle and laser following principle. Use the touch blank of pressure sensitivity principle to be equivalent to one of computerIndividual touch-screen is a kind of work that completes appointment with shown option on finger or style of writing and screenHuman-machine interaction input equipment. There is two-layer resistive film this electronic whiteboard inside, when whiteboard surface a bitWhile being under pressure, two-layer resistive film causes short circuit in this, and the controller of electronic whiteboard detects pressurizedThe coordinate figure (finger or style of writing and position) of point, sends into computer through RS232 interface.
Pressure sensitive electric whiteboard basic structure comprises the backboard, the internal layer resistive film, that arrange from inside to outsideAir barrier, an outer resistive film and a surperficial writing film.
As Fig. 1, be " four lines " structural representation of existing pressure sensitive electric whiteboard, every one deck resistive film is for touchingTouch a working face of screen, it is X working face that internal layer resistive film is set respectively, and outer resistive film is Y workMake face, the two ends (X working face is transverse ends, and Y working face is longitudinal two ends) of each working face are eachPost a copper-foil conducting electricity, be called the pair of electrodes of this working face, be called X " electrode pair " and be X+,X-, and Y " electrode pair " is Y+, Y-. When the controller by an electronic whiteboard is on X " electrode pair "Apply a definite voltage, and on Y " electrode pair " not when making alive, the working face at X " electrode pair " placeOn will form evenly continuous parallel electric field. In the time touching surperficial writing film with finger, the electricity at contact placePressure has reflected the position of contact on X working face, and this voltage is guided to tactile by Y+ (or Y-) electrodeTouch screen controller, and through A/D conversion, just can obtain the digital quantity of contact voltage, i.e. X coordinate.In like manner, on Y " electrode pair ", apply voltage, taking X+ (or X-) electrode as measurement electrode, just can surveyObtain Y coordinate.
From the above, in the time pressing the surperficial writing film of blank with finger or white board marker, internal layer resistive filmLink together at the place of pressing with the two-layer resistive film of outer resistive film, and then can realize blank planar point by seatTarget location. Press that to be in X different with the resistance value of resistance value in Y-direction and other positions, because ofThis can calculate the actual coordinate value of X and Y by converting, deliver to component computer and carry out mouse behaviourThe relevant treatment of work or picture aspect.
In the time there is no object contact whiteboard surface, internal layer resistive film and outer resistive film can be without pressure feelingsUnder condition, there is repellence. In the time writing or point with writing pencil the surperficial writing film of pressing blank, internal layer resistanceFilm and outer resistive film link together at the place of pressing, and electric current will become by the voltage of conducting filmChange, read by circuit for detecting, this voltage is relevant with the position of touch point, according to from horizontal and vertical sideTo the voltage reading, can be scaled X, the Y coordinate position at place, touch point, and then can obtain in one's handsRefer to the actual coordinate value of pressing at blank Plane-point. These data are passed through connection by process chip on circuitCable is sent to computer, then realizes the function of mouse action by the driver of operating system layer.
But current pressure sensitive electric whiteboard adopts " four lines " screen construction, conventionally only limits to sole user and makesWith, and to many people's operations, especially simultaneously operating, cannot provide good support.
[summary of the invention]
The technical problem to be solved in the present invention, is to provide a kind of pressure sensitive electric whiteboard to realize double-screen synchronous and chases afterThe method of track, it can realize by electronic whiteboard be divided into can independent operation two regions, support synchronously behaviourDo.
The present invention is achieved in that a kind of method of realizing double-screen synchronous tracking of pressure-sensing electronic whiteboard, toolBody comprise the steps: step 10, by the outer resistive film cutting process of electronic whiteboard be two can be onlyThe region of vertical operation, copper-foil conducting electricity is posted in two regions separately, makes electronic whiteboard form " six lines " screen knotStructure; Step 20, employing transistor arrange the transistor switch arrays of corresponding above-mentioned " six lines " screen construction,And jointly form touch signal detection system in conjunction with the switching logic module on CPU, A/D converter;Step 30, preset the data transfer sequence in two regions, by touch signal detection system sequentiallyDetect the contacting points position of described two regions on X working face and the contact point position on Y working facePut; Step 40, by the processing of CPU later data, the coordinate data of processing gained is sent to PCEquipment.
Further, in described step 20, A/D converter comprises: analog multichannel switch, comparator,Successively comparand register, 10 D/A converters, analog-to-digital conversion result register and analog-to-digital conversion controlsRegister processed, described analog multichannel switch, 10 D/A converters are connected respectively to the input of comparatorEnd, the output of described comparator connects successively comparand register, and described successively comparand register is connected toAnalog-to-digital conversion result register, 10 D/A converters, analog-to-digital conversion control register, described modulusConversion and control register is also connected to analog multichannel switch.
Further, in described step 30, be region R by a region division in two regions,The step of touch signal detection system surveyed area R comprises: through the switching logic of transistor switch arraysControl, the conducting of YR-driving switch, the Y working face of region R will be grounded, if touch, X+To pulled down to ground by two-layer resistive film, judge whether to occur screen taps with this, confirm to have click thingWhen part occurs, YR-, the conducting of YR+ driving switch, analog multichannel switch gating X+, by YR+ and YR-As with reference to value, draw A/D result by the conversion of A/D converter, be designated as YR-Position; WithReason, X-, the conducting of X+ driving switch, analog multichannel switch gating YR+, by X+ and X-as a referenceValue, draws A/D result by the conversion of A/D converter, is designated as XR-Position.
Further, in described step 30, be region L by another piece region division in two regions,The step of touch signal detection system surveyed area L comprises: through the switching logic of transistor switch arraysControl, the conducting of YL-driving switch, the Y working face of region L will be grounded, if touch, X+To pulled down to ground by two-layer resistive film, judge whether to occur screen taps with this, confirm to have click thingWhen part occurs, YL-, the conducting of YL+ driving switch, analog multichannel switch gating X+, by YL+ and YL-As with reference to value, draw A/D result by the conversion of A/D converter, be designated as YL-Position; X-,The conducting of X+ driving switch, analog multichannel switch gating YL+, is worth X+ and X-as reference, pass throughThe conversion of A/D converter draws A/D result, is designated as XL-Position.
Tool of the present invention has the following advantages:
Outer resistive film is carried out even cutting process by the present invention, and being separated out thus two can independent operationRegion, detect the coordinate data of press points by touch signal detection system, so the present invention props upHold multi-user and operate electronic whiteboard simultaneously, coordinate electronic whiteboard software can realize two users and using separatelyComplete independent operation in region.
[brief description of the drawings]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is existing pressure sensitive electric whiteboard " four lines " screen construction schematic diagram.
Fig. 2 is " six lines " screen construction schematic diagram of a pressure sensitive electric whiteboard of the inventive method.
Fig. 3 is the module connection diagram of a kind of electronic whiteboard of the inventive method.
Fig. 4 is that the structure of a transistor switch arrays of the touch signal detection system of the inventive method is shownIntention.
Fig. 5 is the structural representation of an A/D converter of the touch signal detection system of the inventive method.
[detailed description of the invention]
Refer to shown in Fig. 2 to Fig. 5, embodiments of the invention are described in detail.
As Fig. 2, for " four lines " screen construction of electronic whiteboard body originally, make following change: rightOuter resistive film carries out even cutting process, is separated out thus two regions, is set to respectively region LWith region R, in two regions, post separately one group of copper-foil conducting electricity, form " six lines " screen construction,In the L of region, Y working face is YL+, YL-electrode pair, and in the R of region, Y working face is YR+, YR-Electrode pair, region L and region R can independent operations.
As Fig. 3, described touch signal detection system comprises transistor switch arrays 1, and on CPU5(A/D converter 2 is that this CPU5 inside is integrated, switch for A/D converter 2, switching logic module 44 of the logic modules I/O pin by CPU5 generates). By electronic whiteboard body 3 of the present inventionBe connected to transistor switch arrays 1, transistor switch arrays 1 is connected to the switching logic mould on CPU5Piece 4 and A/D converter 2. By touch signal detection system, the press points on each region is carried out to dataProcess. Be that touch signal detection system of the present invention can be by the high-precision a/d converter of disposable typeComposition, coordinates I/O pin to realize signaling switch logic control.
As Fig. 4, described transistor switch arrays 1 adopts transistor setting, its correspondence above-mentioned " six lines " screenCurtain structure, has corresponding YL+, YL-electrode pair, YR+, YR-electrode pair, and X+, X-electrode pair,The input pin on six tunnels. By switching logic module 4 gating signals, the signal of gating is put through signal filteringLarge module 11 is transported to A/D converter 2 after processing.
In the present embodiment, the A/D converter 2 that touch signal detection system adopts is macrocrystalline single-chip microcomputer public affairsThe single-chip microcomputer of the STC12C5A60AD/S2 serial band A/D translation function that department produces.The inner integrated A/D converter (ADC) of STC12C5A60S2 series monolithic is successively to compare typeA/D converter (ADC). Successively comparison A/D converter (ADC) is by a comparator and D/AConverter forms, and by CL Compare Logic successively, from highest order (MSB), sequentially makes eachThe output of input voltage and built-in D/A converter compares, and through repeatedly comparing, makes to change gainedDigital quantity successively approaches input analog amount respective value. Successively to have speed high for comparison A/D converter,The advantage such as low in energy consumption.
As shown in Figure 5, A/D converter 2 (ADC) structure of STC12C5A60S2 series monolithicBy analog multichannel switch 21, comparator 22,23,10 D/A converters 24 of comparand register successively(DAC), analog-to-digital conversion result register 25 (ADC_RES and ADC_RESL) and modulusConversion and control register 26 (ADC_CONTRRegister) forms. Described analog multichannel switch 21,10 D/A converters 24 are connected respectively to the input of comparator 22, the output of described comparator 22End connects successively comparand register 23, and described successively comparand register 23 is connected to analog-to-digital conversion result and posts25,10 D/A converters 24 of storage, analog-to-digital conversion control register 26, described analog-to-digital conversion controlRegister 26 processed is also connected to analog multichannel switch 21.
By analog multichannel switch 21, give comparator by the analog input by ADC0~ADC722. Logical by the analog quantity of 10 D/A converters 24 (DAC) conversion and the analog quantity of this inputCross comparator 22 and compare, comparative result is saved in successively to comparand register 23, and pass through successivelyComparand register 23 is exported transformation result. After A/D EOC, final transformation result is saved in mouldNumber conversion result register 25 (ADC_RES and ADC_RESL), meanwhile, set analog-to-digital conversionA/D EOC flag bit in control register 26 (ADC_CONTRRegister)ADC_FLAG, for program inquiring or send interrupt application. The analog channel of analog multichannel switch 21Selection control by analog-to-digital conversion control register 26 (ADC_CONTRRegister)CHS2~CHS0 determines. The conversion speed of this A/D converter is by analog-to-digital conversion control register 26(ADC_CONTRRegister) SPEED1 in and SPEED0 are definite, and EOC, gets 10Position result, press formula below and calculate:
10-bitA/DConversionResult:(ADC_RES[1:0],
In formula, Vin is analog input channel input voltage, and Vcc is single-chip microcomputer real work voltage, usesSingle-chip microcomputer operating voltage is as analog reference voltage.
Now operation principle of the present invention is specifically described:
Preset the transfer of data in two regions of electronic whiteboard screen to the elder generation of touch signal detection systemRear order, supposes the data of first processing region R now.
Step of the present invention can be as follows:
Step 10, outer resistive film is carried out to even cutting process, being separated out thus two can be independentThe region of operation, is set to respectively region L and region R, in two regions, posts separately one group of conductionCopper Foil, forms " six lines " screen construction, and in the L of region, Y working face is YL+, YL-electrode pair, districtIn the R of territory, Y working face is YR+, YR-electrode pair.
Step 20, through the switching logic control of transistor switch arrays, the YR-driving switch of region RConducting, the Y working face of region R will be grounded, if touch, X+ will be by two-layer resistive film quiltPull down to ground, judge whether to occur screen taps with this, while confirming to have click event to occur, YR-, YR+Driving switch conducting, analog multichannel switch gating X+, is worth YR+ and YR-, as establishes as referenceYR+=100, YR-=0, draws A/D result by the conversion of A/D converter, is designated as YR-Position;In like manner, X-, the conducting of X+ driving switch, analog multichannel switch gating YR+, using X+ and X-as ginsengThe value of examining, as establish X+=100, X-=0, draws A/D result by the conversion of A/D converter, is designated asXR-Position。
Step 30, through the switching logic control of transistor switch arrays, the YL-driving switch of region LConducting, the Y working face of region L will be grounded, if touch, X+ will be by two-layer resistive film quiltPull down to ground, judge whether to occur screen taps with this, while confirming to have click event to occur, YL-, YL+Driving switch conducting, analog multichannel switch gating X+, is worth YL+ and YL-, as establishes as referenceYL+=100, YL-=0, draws A/D result by the conversion of A/D converter, is designated as YL-Position;X-, the conducting of X+ driving switch, analog multichannel switch gating YL+, is worth X+ and X-as reference,As establishing X+=100, X-=0, draws A/D result by the conversion of A/D converter, is designated asXL-Position。
Step 40, by the processing of CPU5 later data, gained coordinate data is passed according to rendezvous protocolDeliver to PC equipment, then in conjunction with software function, can realize two users and carry out using separately in regionCompletely independently write, the operation of the conventional electrical blank such as drawing.
The above is only preferred embodiment of the present invention, therefore can not limit according to this of the invention processScope, the equivalence of doing according to the scope of the claims of the present invention and description changes and modifies, and all should still belong toIn the scope that the present invention is contained.