Summary of the invention
The object of the invention is to, a kind of electromagnetic induction device and touch-control localization method thereof are provided, in the situation that the coil number of electromagnetic induction antenna plate is more, improve locating speed and the precision of electromagnetic handwritten system.
In order to achieve the above object, the present invention adopts following technical scheme:
A kind of electromagnetic induction device provided by the invention, comprising:
Electromagnetic handwritten plate, and
Time writer for handwriting input on described electromagnetic handwritten plate;
Described electromagnetic handwritten plate comprises antenna plate and the control panel that described antenna plate is controlled;
Described antenna plate comprises to the transmitting coil of described time writer emitting electromagnetic wave, and for receiving, by described time writer, the electromagnetic wave resonance of described transmitting coil transmitting produced the receiving coil of resonance signal with described transmitting coil intersects vertically;
Described control panel control antenna plate while gating at least two group transmitting coils and receiving coil scan, until to after all border transmitting coils in antenna plate region and the scanning of border receiving coil, according to the corresponding coil combination of maximal value of the maximal value of the time writer signal detecting and this time writer signal, obtain the touching signals of time writer on electromagnetic handwritten plate.
In such scheme, described control panel control antenna plate while gating at least two group transmitting coils and receiving coil scan and comprise:
Transmitting coil and the receiving coil of while gating at least two groups, the surveyed area of formation time writer signal, scans the combination of every pair of described transmitting coil and receiving coil, detects and record time writer signal.
In such scheme, according to the corresponding coil combination of maximal value of the maximal value of the time writer signal detecting and this time writer signal, obtain the touching signals of time writer on electromagnetic handwritten plate, comprising:
Obtain the maximal value of the described time writer signal detecting, and according to the corresponding coil combination of the maximal value of time writer signal, time writer is carried out to Primary Location;
According to the maximal value of described time writer signal and the result to time writer Primary Location, obtain the touching signals of time writer on electromagnetic handwritten plate.
In such scheme, according to the maximal value of described time writer signal and the result to time writer Primary Location, obtain the touching signals of time writer on electromagnetic handwritten plate, comprising:
By the maximal value of time writer signal and predefined Primary Location threshold, if the maximal value of described time writer signal is less than described Primary Location threshold value, the corresponding coil combination of time writer signal maximum obtaining according to Primary Location is accurately located time writer; Otherwise, by control panel, the corresponding coil combination of maximal value of the maximal value of time writer signal and this time writer signal is processed, determine the position of time writer, and further determine the touching signals of time writer on electromagnetic handwritten plate.
In such scheme, described control panel control antenna plate while gating at least two group transmitting coils and receiving coil scan and comprise:
Step 10: gating at least two group initial transmissions coils and initial receiving coil form initial detecting region simultaneously, scan the combination of every pair of described transmitting coil and receiving coil, detect and record time writer signal;
Step 11: keep the receiving coil of institute's gating constant, close the transmitting coil of current gating, and the gating ADD root transmitting coil adjacent with described transmitting coil, again form new surveyed area; Wherein, ADD is positive integer;
Step 12: the transmitting coil if described ADD root transmitting coil is not beyond the boundary detects and records time writer signal in described new surveyed area; After having scanned border transmitting coil, again gating initial transmissions coil, close the receiving coil of current gating, and the gating ADD root receiving coil adjacent with described receiving coil, return to step 11, until after border transmitting coils all in antenna plate region and border receiving coil have been scanned, finish this circulation; Or,
Step 20: two groups or more initial transmissions coil of gating and initial receiving coil form initial detecting region simultaneously, scan the combination of every pair of described transmitting coil and receiving coil, detect and record time writer signal;
Step 21: keep the transmitting coil of institute's gating constant, close the receiving coil of current gating, and the gating ADD root receiving coil adjacent with described receiving coil, again form new surveyed area; Wherein, ADD is positive integer;
Step 22: the receiving coil if described ADD root receiving coil is not beyond the boundary detects and records time writer signal in described new surveyed area; After having scanned border receiving coil, again the initial receiving coil of gating, close the transmitting coil of current gating, and the gating ADD root coil adjacent with described transmitting coil, return to step 21, until after border transmitting coils all in antenna plate region and border receiving coil have been scanned, finish this circulation.
In such scheme, described border transmitting coil is first or the last root transmitting coil in antenna plate region, and described border receiving coil is first or the last root receiving coil in antenna plate region;
Transmitting coil, gating border transmitting coil if described ADD root transmitting coil is beyond the boundary;
Receiving coil, gating border receiving coil if described ADD root receiving coil is beyond the boundary.
In such scheme, in the combination of described transmitting coil and receiving coil, if the number of transmitting coil and receiving coil is more than or equal to respectively at 2 o'clock, described ADD is less than or equal to the interval between the initial transmissions coil of gating, and is less than or equal to the interval between the initial receiving coil of gating.
In such scheme, the described corresponding coil combination of time writer signal maximum obtaining according to Primary Location is accurately located time writer, comprising:
Gating transmitting coil with receiving coil adjacent m root transmitting coil and the m root receiving coil corresponding with described time writer signal maximum, forms accurate locating area respectively; Wherein, m is positive integer;
Detect and record the every pair of transmitting coil of gating and the time writer signal of receiving coil combination, and calculate the maximal value of the time writer signal detecting;
If the maximal value of described time writer signal is more than or equal to the accurate location threshold value setting in advance, by control panel, the corresponding coil combination of maximal value of the maximal value of time writer signal and this time writer signal is processed, determine the position of time writer, and further obtain the touching signals of time writer on electromagnetic handwritten plate; Otherwise other m group transmitting coil and the receiving coil of gating, forms new accurate locating area again, detects and calculate the maximal value of time writer signal.
In such scheme, described accurate location threshold value is greater than described Primary Location threshold value; The value of described m is any one integer in 1 to ADD+1.
In such scheme, the initial transmissions coil of described gating at least comprises a border transmitting coil, and/or the initial receiving coil of described gating at least comprises a border receiving coil.
In such scheme, initial transmissions coil number and initial receiving coil number are even number, and respectively described antenna plate are divided into equal region;
Wherein, when the transmitting coil of described antenna plate coil and the number of receiving coil are odd number, first separately a border coil of gating transmitting coil and receiving coil, then in the residue coil of antenna plate, determine and need the initial transmissions coil number of gating and initial receiving coil number.
The present invention also provides a kind of touch-control localization method based on electromagnetic induction device, and this electromagnetic induction device comprises: electromagnetic handwritten plate, and for the time writer of handwriting input on described electromagnetic handwritten plate; Described electromagnetic handwritten plate comprises antenna plate and the control panel that described antenna plate is controlled; Described antenna plate comprises to the transmitting coil of described time writer emitting electromagnetic wave, and for receiving, by described time writer, the electromagnetic wave resonance of described transmitting coil transmitting produced the receiving coil of resonance signal with described transmitting coil intersects vertically; The method comprises:
Gating at least two group transmitting coils and receiving coil scan simultaneously, until to after all border transmitting coils in antenna plate region and the scanning of border receiving coil, according to the corresponding coil combination of maximal value of the maximal value of the time writer signal detecting and this time writer signal, obtain the touching signals of time writer on electromagnetic handwritten plate.
Described while gating at least two group transmitting coils and receiving coil scan and comprise: while gating at least two group transmitting coil and receiving coils, form the surveyed area of time writer signal, scan the combination of every pair of described transmitting coil and receiving coil, detect and record time writer signal;
The corresponding coil combination of maximal value of the maximal value of the time writer signal that described basis detects and this time writer signal, obtain the touching signals of time writer on electromagnetic handwritten plate, comprise: the maximal value of obtaining the described time writer signal detecting, and according to the corresponding coil combination of the maximal value of time writer signal, time writer is carried out to Primary Location;
According to the maximal value of described time writer signal and the result to time writer Primary Location, obtain the touching signals of time writer on electromagnetic handwritten plate.
Described according to the result of the maximal value of time writer signal and Primary Location, obtain the touching signals of time writer on electromagnetic handwritten plate, comprise: by the maximal value of time writer signal and predefined Primary Location threshold, if the maximal value of described time writer signal is less than described Primary Location threshold value, the corresponding coil combination of time writer signal maximum obtaining according to Primary Location is accurately located time writer; Otherwise, by control panel, the corresponding coil combination of maximal value of the maximal value of time writer signal and this time writer signal is processed, determine the position of time writer, and further determine the touching signals of time writer on electromagnetic handwritten plate.
Described while gating at least two group transmitting coils and receiving coil scan, until to the border transmitting coil in antenna plate region and the scanning of border receiving coil, comprising:
Step 10: gating at least two group initial transmissions coils and initial receiving coil form initial detecting region simultaneously, scan the combination of every pair of described transmitting coil and receiving coil, detect and record time writer signal;
Step 11: keep the receiving coil of institute's gating constant, close the transmitting coil of current gating, and the gating ADD root transmitting coil adjacent with described transmitting coil, again form new surveyed area; Wherein, ADD is positive integer;
Step 12: the transmitting coil if described ADD root transmitting coil is not beyond the boundary detects and records time writer signal in described new surveyed area; After having scanned border transmitting coil, again gating initial transmissions coil, close the receiving coil of current gating, and the gating ADD root receiving coil adjacent with described receiving coil, return to step 11, until after border transmitting coils all in antenna plate region and border receiving coil have been scanned, finish this circulation; Or,
Step 20: two groups or more initial transmissions coil of gating and initial receiving coil form initial detecting region simultaneously, scan the combination of every pair of described transmitting coil and receiving coil, detect and record time writer signal;
Step 21: keep the transmitting coil of institute's gating constant, close the receiving coil of current gating, and the gating ADD root receiving coil adjacent with described receiving coil, again form new surveyed area; Wherein, ADD is positive integer;
Step 22: the receiving coil if described ADD root receiving coil is not beyond the boundary detects and records time writer signal in described new surveyed area; After having scanned border receiving coil, again the initial receiving coil of gating, close the transmitting coil of current gating, and the gating ADD root coil adjacent with described transmitting coil, return to step 21, until after border transmitting coils all in antenna plate region and border receiving coil have been scanned, finish this circulation.
The method also comprises: described border transmitting coil is first or the last root transmitting coil in antenna plate region, and described border receiving coil is first or the last root receiving coil in antenna plate region; Transmitting coil, gating border transmitting coil if described ADD root transmitting coil is beyond the boundary; Receiving coil, gating border receiving coil if described ADD root receiving coil is beyond the boundary.
In the combination of described transmitting coil and receiving coil, if the number of transmitting coil and receiving coil is more than or equal to respectively at 2 o'clock, described ADD is less than or equal to the interval between the initial transmissions coil of gating, and is less than or equal to the interval between the initial receiving coil of gating.
Describedly according to the corresponding coil combination of time writer signal maximum, time writer is accurately located, comprises the following steps:
Gating transmitting coil with receiving coil adjacent m root transmitting coil and the m root receiving coil corresponding with described time writer signal maximum, forms accurate locating area respectively; Wherein, m is positive integer;
Detect and record the every pair of transmitting coil of gating and the time writer signal of receiving coil combination, and calculate the maximal value of the time writer signal detecting;
If the maximal value of described time writer signal is more than or equal to the accurate location threshold value setting in advance, by control panel, the corresponding coil combination of maximal value of the maximal value of time writer signal and this time writer signal is processed, determine the position of time writer, and further obtain the touching signals of time writer on electromagnetic handwritten plate; Otherwise other m group transmitting coil and the receiving coil of gating, forms new accurate locating area again, detects and calculate the maximal value of time writer signal.
Described accurate location threshold value is greater than described Primary Location threshold value; The value of described m is any one integer in 1 to ADD+1.
The initial transmissions coil of described gating at least comprises a border transmitting coil, and/or the initial receiving coil of described gating at least comprises a border receiving coil.
Described initial transmissions coil number and initial receiving coil number are even number, and respectively described antenna plate are divided into equal region;
Wherein, when the transmitting coil of described antenna plate coil and the number of receiving coil are odd number, first separately first or last root of gating transmitting coil and receiving coil, then in the residue coil of antenna plate, determine and need the initial transmissions coil number of gating and initial receiving coil number.
Beneficial effect of the present invention is: the present invention scans by many transmitting coils of while gating and Duo Gen receiving coil, can to time writer, accurately locate in the short period of time, especially in the situation that the coil number of electromagnetic induction antenna plate is many, method with respect to order by root scanning transmitting coil and receiving coil, the present invention can greatly improve efficiency and the accuracy of time writer location, and has effectively avoided the problems such as contact loss and time delay location.For example: when the coil number of antenna plate is more than or equal to 20*20, adopt scheme of the present invention can effectively shorten the sweep time of about 150ms, at time writer in antenna plate during fast moving, can locate fast the position of time writer, and be unlikely to occur the phenomenon that touch point is lost, effectively improved locating speed and the precision of time writer.
Embodiment
Below in conjunction with drawings and Examples, summary of the invention of the present invention is further described.
Shown in Fig. 1 and Fig. 2, be the circuit theory diagrams of electromagnetic induction device of the present invention.Electromagnetic induction device comprises time writer 11, and antenna plate 21, emission part 41, acceptance division 51 and control module 31.
Time writer 11 is hand input devices that filtering circuit is contained in inside, and it can produce electromagnetic induction signal after being excited.
Antenna plate 21 has transmitting coil 211 and the receiving coil 212 mutually intersecting vertically, and transmitting coil 211 and receiving coil 212 have common initial point.In antenna plate region, transmitting coil is p root, Tx
0... Tx
p-1, receiving coil is q root, Ry
0... Ry
q-1.One end of transmitting coil and receiving coil is controlled by the micro-control unit in control module 31 (Micro Control Unit, MCU) 20 respectively.
Micro-control unit in control module 31 (MCU) 20 is controlled respectively the gating of transmitting coil 211 and receiving coil 212 and closes by controlling emission part 41 and acceptance division 51.Fig. 1 is in conjunction with shown in Fig. 2, and acceptance division portion 41 comprises: signal processing circuit 17, integrating circuit 18, A/D sample circuit 19, one-level amplifier 14 and two-stage amplifier (AGC) 15.Emission part 51 comprises: amplifier 13 and signal generator 16.
Micro-control unit (MCU) 20 control signal treatment circuits 17 carry out work with integrating circuit 18, and control the signal of A/D sample circuit 19 acquired integrated circuit 18, and the signal gathering is calculated, and then by interface, send host computer to.
Micro-control unit (MCU) 20 is controlled multidiameter option switch (MUX) 10,12 gating transmitting coil and receiving coil respectively.Micro-control unit (MCU) 20 control signal generators 16 produce pumping signal, via amplifier 13, amplify, and the pumping signal 4 being amplified, and by transmitting coil, send to time writer 11 by multidiameter option switch (MUX) 10.Micro-control unit (MCU) 20 is controlled multidiameter option switch (MUX) 12 gating receiving coils, and receiving coil receives the electromagnetic induction signal from time writer 11.This electromagnetic induction signal is enlarged into signal 1 by one-level amplifier 14, then passes through the amplification of two-stage amplifier (AGC) 15 and the processing of signal processor 17, obtains signal 2, and this signal 2 obtains integrated signal 3 after the integration of integrating circuit 18.This integrated signal 3, through the collection of A/D sample circuit 19, is calculated by micro-control unit (MCU) 20.The time writer signal of 20 pairs of process stepwise disposals of micro-control unit (MCU) is analyzed, and obtains the touching signals of time writer 11 on electromagnetic handwritten plate.
Figure 3 shows that the antenna plate transmitting winding group Tx direction schematic diagram of electromagnetic induction device of the present invention.The total p root of transmitting coil 211, its one end links together, by a resistance eutral grounding.The other end of transmitting coil is connected with multidiameter option switch (MUX) 10 respectively, by multidiameter option switch (MUX) 10, selects gating transmitting coil, to time writer 11, sends pumping signal.
Figure 4 shows that the antenna plate receiving coil group Ry direction schematic diagram of electromagnetic induction device of the present invention.Receiving coil has q root, and a for example analog switch ground connection for low on-resistance is passed through in its one end.This analog switch is controlled break-make by the micro-control unit 20 in control module 31.The other end of receiving coil is connected with multidiameter option switch (MUX) 12 respectively, the electromagnetic induction signal producing for the electromagnetic wave resonance of being selected gating to receive time writer and transmitting coil transmission by multidiameter option switch (MUX) 12.
Figure 5 shows that the touch-control localization method process flow diagram that the present invention is based on electromagnetic induction device.
The embodiment of the present invention is by by transmitting coil and at least two methods that also scan of receiving coil at least one party while gating simultaneously, realizes the time writer location to electromagnetic handwritten system.
The implementation step of this programme is as follows:
S501: gating initial transmissions coil and initially receiving coil simultaneously in antenna plate region, form initial detecting region;
Wherein, the transmitting coil of institute's gating or the quantity of receiving coil are at least two, to form two groups or more coil combination, form the initial detecting region of time writer signal.Suppose, the quantity of the transmitting coil of gating is n1, and the quantity of the receiving coil of gating is n2.
Preferably, be the position of location time writer fast, described n1 and n2 are even number, and the transmitting coil of gating and receiving coil are divided into approximately equalised region by transmitting coil and receiving coil respectively.When selecting gating initial coil, for not multiple scanning in the process that guarantees whole antenna plate region all to scan, and make the step in motion scan region more simple, preferably, one of gating is positioned at transmitting coil and/or a receiving coil that is positioned at receiving coil border of gating on transmitting coil border.Described border coil refers to respectively the 1st transmitting coil Tx in antenna plate
0with p root transmitting coil Tx
p-1, and the 1st receiving coil Ry
0with q root receiving coil Ry
q-1.
For example, when p and q are even number, n1 and n2 are even number, suppose, n1 and n2 are 2 o'clock, preferred,
Initial gating transmitting coil is: Tx
0and Tx
p/n1, or Tx
p-1and Tx
p/n1;
Initial gating receiving coil is: Ry
0and Ry
q/n2, or Ry
q-1and Ry
q/n2.
Like this, the transmitting coil of initial gating has been divided into two regions by antenna plate region, and the receiving coil of initial gating has also been divided into two regions by antenna plate region.
And for example, when p and q are even number, suppose that n1 and n2 are 4, preferred,
The transmitting coil of initial gating is:
Tx
0, Tx
p/n1, Tx
2*p/n1, Tx
3*p/n1, or Tx
p-1, Tx
p-1-p/n1, Tx
p-1-2*p/n1, Tx
p-1-3*p/n1;
The receiving coil of initial gating is:
Ry
0, Ry
p/n1, Ry
2*p/n1, Ry
3*p/n1, or Ry
p-1, Ry
p-1-p/n1, Ry
p-1-2*p/n1, Ry
p-1-3*p/n1.
Like this, the transmitting coil of initial gating has been divided into four regions by antenna plate region, and the receiving coil of initial gating has also been divided into four regions by antenna plate region.
If p and q are odd number, preferably, first in transmitting coil and receiving coil or last root are scanned separately, remaining (p-1) root transmitting coil and (q-1) root receiving coil adopt the mode of while gating n1 root transmitting coil and n2 root receiving coil, preferably select n1, n2 is even number, and n=2,4...... selection mode carry out gating.
Interval delta T x between the transmitting coil of initial gating, or the interval delta Ry between the receiving coil of initial gating, according to the coil quantity arranging in antenna plate region, determine, when coil quantity is more, the coil spacing of gating can suitably strengthen, when coil negligible amounts, the coil spacing of gating can suitably dwindle.
S502: scan respectively the transmitting coil of institute's gating and the combination of receiving coil, detect and record the time writer signal of every pair of coil combination.
Whether in initial detecting region, detect time writer exists, due to simultaneously initial gating transmitting coil and receiving coil in antenna plate region, wherein transmitting coil and at least two coils of receiving coil at least one party gating, therefore, gating comprises three coils of transmitting coil and receiving coil at least simultaneously,, two transmitting coils of gating and a receiving coil at least simultaneously, or transmitting coil of gating and two receiving coils at least simultaneously, detect the time writer signal of every pair of coil combination, and record testing result.
In electromagnetic induction antenna plate, the transmitting coil of gating sends pumping signal, resonant circuit in time writer produces electromagnetic induction signal after receiving the excitation of this pumping signal, this electromagnetic induction signal is received by the receiving coil of gating in electromagnetic induction antenna plate, thereby every pair of coil combination all can be detected time writer signal.
S503: judge whether the border transmitting coil in antenna plate region and border receiving coil to be scanned, if border transmitting coil and border receiving coil are scanned, carry out S505, otherwise, carry out S504;
S504: the transmitting coil that gating is other and receiving coil combination, again form surveyed area, then return to S502;
S505: the maximal value of calculating the time writer signal detecting;
S506: the maximal value of described time writer signal and default Primary Location threshold value t1 are compared, if the maximal value of described time writer signal is less than Primary Location threshold value t1, illustrate current detection to the corresponding coil combination of time writer signal maximum be not the exact position at time writer place, need to further accurately locate, carry out the accurate positioning flow of time writer; If the maximal value of described time writer signal is greater than Primary Location threshold value t1, illustrate current detection to the corresponding coil combination of time writer signal maximum be exactly the exact position at time writer place, carry out S507; Described Primary Location threshold value t1 is relevant with locating speed and the noise signal of time writer.
S507: by the intersection point of the corresponding transmitting coil of the maximal value of time writer signal and receiving coil, be defined as the position of time writer, and according to the position of the maximal value of described time writer signal and time writer, obtain the touching signals of time writer on electromagnetic handwritten plate.
In embodiment of the present invention, by many transmitting coils of while gating and Duo Gen receiving coil, scan, can to time writer, accurately locate in the short period of time, especially in the situation that the coil number of electromagnetic induction antenna plate is many, method with respect to order by root scanning transmitting coil and receiving coil, the present invention can greatly improve efficiency and the accuracy of time writer location, and has effectively avoided the problems such as contact loss and time delay location.
In the present embodiment, the method that again forms surveyed area comprises following two kinds:
Method one: as shown in Figure 6
S600: judge whether all border transmitting coils been scanned all, if there is no been scanned, keep the receiving coil of institute's gating constant, close the transmitting coil of current gating, and the gating ADD root transmitting coil adjacent with described transmitting coil, again form new surveyed area; Otherwise, carry out S603;
Preferably, in the combination of described transmitting coil and receiving coil, if the number of transmitting coil and receiving coil is more than or equal to respectively at 2 o'clock, ADD is less than or equal to the interval delta T x between the transmitting coil of gating, and ADD is less than or equal to the interval delta Ry between the receiving coil of gating.
For example, initial gating Tx
iroot and Tx
jroot transmitting coil, that gating is Tx in this step
i+ADDroot and Tx
j+ADDroot transmitting coil, forms surveyed area again.Here, ADD value is 3.
S601: judge the ADD root transmitting coil transmitting coil that whether is beyond the boundary, if be not beyond the boundary transmitting coil, execution step S602; Otherwise, gating border transmitting coil, then perform step S602;
S602: according to transmitting coil and the receiving coil of institute's gating, detect and record time writer signal in new surveyed area, then return to step S600;
S603: gating initial transmissions coil, close the receiving coil of current gating, the ADD root receiving coil that gating is adjacent with described receiving coil, again form surveyed area, detect and record time writer signal, then return to step S600, reciprocation cycle, until scanned border transmitting coils all in antenna plate region and border receiving coil.
Method two: as shown in Figure 7
S700: judge whether all border receiving coils been scanned all, if there is no been scanned, keep the transmitting coil of institute's gating constant, close the receiving coil of current gating, and the gating ADD root receiving coil adjacent with described receiving coil, again form new surveyed area; Otherwise, carry out S703;
Wherein, ADD value is identical with S600, does not repeat here.
S701: judge the ADD root receiving coil receiving coil that whether is beyond the boundary, if be not beyond the boundary receiving coil, carry out S702; Otherwise, gating border receiving coil, then carry out S702;
S702: according to transmitting coil and the receiving coil of institute's gating, detect and record time writer signal in new surveyed area, then return to S700;
S703: the initial receiving coil of gating, close the transmitting coil of current gating, the adjacent ADD root transmitting coil of transmitting coil of gating and current gating, again form surveyed area, detect and record time writer signal, then return to step S700, reciprocation cycle, until scanned border transmitting coils all in antenna plate region and border receiving coil.
In the present embodiment, the method whether coil of judgement gating exceeds antenna plate zone boundary is:
If surveyed area is to move to p root transmitting coil or q root receiving coil direction, p-1 is compared with the transmitting coil numbering of gating, or q-1 is compared with the receiving coil numbering of gating.When the transmitting coil of gating, number and be more than or equal to p-1, or when the receiving coil numbering of gating is more than or equal to q-1, the transmitting coil of gating or the receiving coil coil that has been beyond the boundary is described, makes the transmitting coil of gating be numbered p-1, the receiving coil of gating is numbered q-1; When the transmitting coil numbering of gating is less than p-1, or when the receiving coil numbering of gating is less than q-1, the transmitting coil of gating or the receiving coil coil that is not beyond the boundary is described, need to continue gating next one ADD root transmitting coil or receiving coil.
If surveyed area is to move to the 1st transmitting coil or the 1st receiving coil direction, by 0, compares with the transmitting coil numbering of gating, or compare with the receiving coil numbering of gating 0.When the transmitting coil numbering of gating is less than or equal to 0, or number while being less than or equal to 0 when the receiving coil of gating, the transmitting coil of gating or the receiving coil coil that has been beyond the boundary is described, the transmitting coil of gating is numbered 0, and the receiving coil of gating is numbered 0; When the transmitting coil numbering of gating is greater than 0, or when the receiving coil numbering of gating is greater than 0, the transmitting coil of gating or the receiving coil coil that is not beyond the boundary is described, need to continue gating next one ADD root transmitting coil or receiving coil.
When the transmitting coil of initial gating or receiving coil are many, judging whether gate winding arrives antenna area border, when surveyed area moves to the 1st coil reverse direction, is by larger gate winding numbering and the number of turns comparison of antenna boundary line; When surveyed area moves to the 1st coil direction, be that less gate winding numbering is compared with 0.
In time writer localization method of the present invention, the accurate positioning flow of described time writer, as shown in Figure 8, comprises the following steps:
S801: difference gating transmitting coil with receiving coil adjacent m root transmitting coil and the m root receiving coil corresponding with described time writer signal maximum, forms accurate locating area;
Preferably, m value is the arbitrary integer in 1 to ADD+1.In the present embodiment, m value is 4.
S802: detect and record the every pair of transmitting coil of gating and the time writer signal of receiving coil combination;
S803: the maximal value of calculating the time writer signal detecting;
S804: the maximal value of time writer signal is compared with the accurate location threshold value t2 setting in advance, and this is accurately located threshold value t2 and is greater than Primary Location threshold value t1, if the maximal value of described time writer signal is more than or equal to accurate location threshold value t2, carries out S805; If the maximal value of described time writer signal is less than accurate location threshold value t2, illustrate current detection to the coil corresponding to maximal value of time writer signal be not the exact position at time writer place, need further accurately location, return to S801; Described Primary Location threshold value t1 is relevant with locating speed and the noise signal of time writer.
S805: process according to the combination of the corresponding transmitting coil of the maximal value of time writer signal and receiving coil, determine the position of time writer, obtain the touching signals of time writer on electromagnetic handwritten plate.
The waveform of time writer signal is sinusoidal curve, and MCU calculates the maximal value of time writer signal waveform and phase place, and then obtains coordinate and the pressure information of time writer, and flows to computing machine and process.
Below in conjunction with specific embodiment, method of the present invention is described in detail.
Embodiment mono-
Suppose, antenna plate region is 40*50, and transmitting coil is got 40, p=40; Receiving coil is got 50, q=50; N1=2, n2=2; ADD=3; M=4; The Primary Location threshold value of time writer signal is t1, and accurately locating threshold value is t2.
S101: two initial transmissions coil Tx of difference gating
0, Tx
20, and two initial receiving coil Ry
0, Ry
20.
Opentx(0);Opentx(20);Openry(0);Openry(20);
S102: scan respectively Tx
0, Tx
20, Ry
0, Ry
20the combination of coil, detects and records the time writer signal of every pair of coil combination.
Scan respectively following coil combination:
{Opentx(0),Openry(0)};
{Opentx(0),Openry(20)};
{Opentx(20),Openry(0)};
{Opentx(20),Openry(20)};
S103: judge whether whole antenna plate region to be scanned, if to whole antenna plate sector scannings, calculate the maximal value of the time writer signal detecting, and according to described maximal value and corresponding coil combination thereof, time writer is accurately located; Otherwise, carry out S104.
S104: again form surveyed area, continue to detect and record time writer signal, until scanned all antenna plate region.
In the present embodiment, because of also, not to whole antenna plate sector scannings, need again to form surveyed area, at receiving coil Ry
0, Ry
20in constant situation, the ADD root transmitting coil that the transmitting coil of gating and current gating is adjacent, ADD=3, now, transmitting coil and the receiving coil of gating are respectively:
{Opentx(3),Opentx(23);Openry(0),Openry(20)}
Judge whether ADD root transmitting coil exceeds the border of transmitting coil; Due to 23 < 40, the border that does not now exceed transmitting coil is described, according to transmitting coil and the receiving coil of institute's gating, again form new surveyed area, detect and record time writer signal, then circulation execution step S104, the transmitting coil of gating and the combination of receiving coil are respectively successively:
{Opentx(6),Opentx(26);Openry(0),Openry(20)};
{Opentx(9),Opentx(29);Openry(0),Openry(20)};
{Opentx(12),Opentx(32);Openry(0),Openry(20)};
{Opentx(15),Opentx(35);Openry(0),Openry(20)};
{Opentx(18),Opentx(38);Openry(0),Openry(20)}。
As { Opentx (18), Opentx (38); Openry (0), Openry (20) } time, judgement 38 < 40, illustrate the border that does not exceed transmitting coil.If needed, continue the next transmitting coil of gating.
The transmitting coil Tx of the next gating of wanting
jshould be for the 41st coil, owing to having exceeded the border of transmitting coil, so the 40th transmitting coil of gating is border transmitting coil; The transmitting coil Tx of corresponding gating
ibe the 21st coil.Now, the transmitting coil of gating and the combination of receiving coil are respectively:
{Opentx(21),Opentx(40);Openry(0),Openry(20)}。
At all transmitting coils all after been scanned, gating initial transmissions coil again, i.e. gating Tx again
0, Tx
20, and the adjacent ADD root receiving coil of the receiving coil of gating and current gating, form new surveyed area.
Here, gating R
y0+ADD, R
y20+ADDroot coil, now the transmitting coil of gating and receiving coil are respectively:
{Opentx(0),Opentx(20);Openry(3),Openry(23)}。
Judge 23 < 50, the border that does not arrive receiving coil is described.Keep current receiving coil Ry
3and Ry
23constant, gating Tx
0+ADD, Tx
20+ADDroot coil.The transmitting coil of gating and the combination of receiving coil are respectively successively:
{Opentx(6),Opentx(26);Openry(3),Openry(23)};
{Opentx(9),Opentx(29);Openry(3),Openry(23)};
{Opentx(12),Opentx(32);Openry(3),Openry(23)};
{Opentx(15),Opentx(35);Openry(3),Openry(23)};
{Opentx(18),Opentx(38);Openry(3),Openry(23)}。
Until the transmitting coil of gating arrives the border of transmitting coil again, and so forth, until { Opentx (0), Opentx (20); Openry (30), Openry (50) } time, the border of arrival receiving coil, continues to move surveyed area along transmitting coil direction.
As { Opentx (18), Opentx (38); Openry (30), Openry (50) } time, judgement 38 < 40, illustrate the border that does not exceed transmitting coil, continue gating transmitting coil again, again form surveyed area.The transmitting coil Tx of next gating
jshould be the 41st coil, owing to having exceeded the border of transmitting, so the 40th transmitting coil Tx of gating
40; The transmitting coil Tx of corresponding gating
ibe the 21st coil Tx
20.
Adopt scheme of the present invention, can locate fast the position of time writer, especially for the antenna plate region that is more than or equal to 20*20, can effectively shorten the sweep time of about 150ms, at time writer in antenna plate during fast moving, can locate fast the position of time writer, and be unlikely to occur the phenomenon that touch point is lost, effectively improve locating speed and the precision of time writer.
Embodiment bis-
Antenna area is 40*50, and transmitting coil is got 40, p=40; Receiving coil is got 50, q=50; ADD=3; M=4, the Primary Location threshold value of time writer signal is t1, accurately locating threshold value is t2.Step S101 to S103 is identical with embodiment mono-, no longer describes in detail.The difference of the present embodiment and embodiment mono-is, complete to whole antenna plate sector scannings in step 103.
Gating is as lower coil: { Opentx (0), Opentx (20); Openry (0), Openry (20) }.
S105: calculate the maximal value (MAX) of the time writer signal detect, the intersection point of transmitting coil corresponding to the maximal value of this time writer signal and receiving coil is tentatively defined as to the position of time writer.
Suppose, the transmitting coil that the maximal value of time writer signal is corresponding and receiving coil be combined as (Tx
20, Ty
20)
S106: the maximal value of described time writer signal (MAX) and default Primary Location threshold value t1 are compared, here, suppose MAX < t1, illustrate current detection to coil combination corresponding to time writer signal maximum be not the exact position at time writer place, need to further accurately locate time writer, carry out S107.
S107: adjacent 4 transmitting coils and 4 receiving coils of coil corresponding to maximal value that obtain in gating step S106, the scope of gate winding is 16=< Txcoil <=24 and 2=< Rycoil <=10.That is, gating transmitting coil: Tx
16, Tx
17, Tx
18, Tx
19, Tx
21, Tx
22, Tx
23, Tx
24, and the receiving coil of gating: Ry
16, Ry
17, Ry
18, Ry
19, Ry
21, Ry
22, Ry
23, Ry
24.
Scan respectively the combination of above transmitting coil and receiving coil, have 64 pairs of combinations, obtain respectively time writer signal MAX ' 1~MAX ' 64, if maximal value the MAX '=MAX ' 1 of time writer signal, obtain the corresponding transmitting coil of MAX ' and receiving coil and be combined as (MaxTxcoil=16, MaxRycoil=16).
Relatively MAX ' and accurately location threshold value t2, if MAX ' > is t2, illustrate MaxTxcoil=16, and MaxRycoil=16 is the exact position at time writer place.
Further, according to MAX ' and MaxTxcoil=16, MaxRycoil=16 processes, and obtains the touching signals of time writer on electromagnetic handwritten plate.
Above step cycle is carried out, and has calculated after coordinate information, and program can continue again to return to step S101, circulates, calculates, and obtains the coordinate of time writer, guarantees to find continuously the position of pen, will with the drawn line of time writer and the word of writing, be presented in face of user.
Adopt scheme of the present invention, can locate fast the position of time writer, especially for the antenna plate region that is more than or equal to 20*20, can effectively shorten the sweep time of about 150ms, at time writer in antenna plate during fast moving, can locate fast the position of time writer, and be unlikely to occur the phenomenon that touch point is lost, effectively improve locating speed and the precision of time writer.
Embodiment tri-
Be with embodiment bis-differences with embodiment mono-, the antenna area of embodiment tri-is comprised of odd number transmitting coil and receiving coil respectively, supposes that antenna area is 19*19, and transmitting coil is got 19, p=19; Receiving coil is got 19, q=19; ADD=3; M=4, the Primary Location threshold value of time writer signal is t1, accurately locating threshold value is t2.
In the present embodiment, the quantity of transmitting coil and receiving coil is all odd number, preferred, respectively the 1st transmitting coil Tx of independent gating
0with the 1st receiving coil Ry
0, n1 and n2 get even number, and in the present embodiment, with n1=2, n2=2 is example explanation.
Independent the 1st transmitting coil Tx of gating
0, the receiving coil of select progressively simultaneously direction is carried out time writer signal scanning, detects time writer signal; And,
Independent the 1st receiving coil Ry of gating
0, the transmitting coil of select progressively simultaneously direction is carried out time writer signal scanning, detects time writer signal.
Remove the 1st transmitting coil and the 1st receiving coil, remaining transmitting coil and receiving coil form antenna plate region again, and in this antenna plate region, transmitting coil radical p ' is 18, receiving coil radical q ' is 18, and the radical of transmitting coil and receiving coil is all even number.In this antenna plate region, select the initial coil of gating:
The initial transmissions coil of gating is: Tx
1and Tx
9or Tx
18and Tx
9
The initial receiving coil of gating is: Ry
1and Ry
9or Ry
18and Ry
9
Therefore, the initial transmitting coil of gating and the combination of receiving coil may be:
{Opentx(1),Opentx(9);Openry(1),Openry(9)};
{Opentx(1),Opentx(9);Openry(18),Openry(9)};
{Opentx(18),Opentx(9);Openry(1),Openry(9)};
{Opentx(18),Opentx(9);Openry(18),Openry(9)}。
Select above-mentioned any array mode as initial coil, surveyed area is all on the border of antenna area.
In the present embodiment, select coil combination: { Opentx (1), Opentx (9); Openry (1), Openry (9) } as the initial coil of gating, scan.Now, identical with the situation of embodiment mono-, embodiment bis-initial coil, the process of scanning yoke and the process of surveyed area of again forming are consistent with above-described embodiment, no longer describe in detail.
Adopt scheme of the present invention, the position of time writer can be located fast, especially at time writer, in antenna plate, during fast moving, the position of time writer can be located fast, and be unlikely to occur the phenomenon that touch point is lost, effectively improved locating speed and the precision of time writer.
Certainly, in embodiment described in the invention, the initial coil of gating might not comprise the border coil of antenna area, but, in again forming the step of surveyed area, the method using border coil as initial coil, is positioned at the middle situation of antenna area with respect to initial detecting region and wants simple, accordingly, the speed that detects time writer signal also can significantly improve.