Summary of the invention
The objective of the invention is to, a kind of electromagnetic induction device and touch-control localization method thereof are provided, under the more situation of the coil number of electromagnetic induction antenna plate, improve the locating speed and the precision of electromagnetism hand writing 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 comprises:
The electromagnetism handwriting pad and
The time writer that is used for handwriting input on described electromagnetism handwriting pad;
Described electromagnetism handwriting pad 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 launching electromagnetic wave with described transmitting coil being used to of intersecting vertically and receives the receiving coil that the electromagnetic wave resonance of described transmitting coil emission is produced resonance signal by described time writer;
Described control panel control antenna plate while gating at least two group transmitting coils and receiving coil scan, after the border transmitting coil and border receiving coil scanning all to the antenna plate zone, according to the maximal value of detected time writer signal and the pairing coil combination of maximal value of this time writer signal, obtain the touching signals of time writer on the electromagnetism handwriting pad.
In the such scheme, described control panel control antenna plate while gating at least two group transmitting coils and receiving coil scan and comprise:
The 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 also record time writer signal.
In the such scheme,, obtain the touching signals of time writer on the electromagnetism handwriting pad, comprising according to the maximal value of detected time writer signal and the pairing coil combination of maximal value of this time writer signal:
Obtain the maximal value of detected described time writer signal, and, time writer is carried out Primary Location according to the pairing coil combination of the maximal value of time writer signal;
According to the maximal value of described time writer signal and to the result of time writer Primary Location, obtain the touching signals of time writer on the electromagnetism handwriting pad.
In the such scheme,, obtain the touching signals of time writer on the electromagnetism handwriting pad, comprising according to the maximal value of described time writer signal and to the result of time writer Primary Location:
Maximal value and predefined Primary Location threshold with the time writer signal, if the maximal value of described time writer signal is less than described Primary Location threshold value, then the pairing coil combination of time writer signal maximum that obtains according to Primary Location is accurately located time writer; Otherwise, by control panel the maximal value of time writer signal and the pairing coil combination of maximal value of this time writer signal are handled, determine the position of time writer, and further determine the touching signals of time writer on the electromagnetism handwriting pad.
In the 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 the initial detecting zone 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, form new surveyed area again; Wherein, ADD is a positive integer;
Step 12: the transmitting coil if described ADD root transmitting coil is not beyond the boundary, then detect in described new surveyed area and record time writer signal; After having scanned the 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 step 11, after all border transmitting coil and border receiving coil have scanned in to the antenna plate zone, finish this circulation; Perhaps,
Step 20: two groups or more initial transmissions coil of gating and initial receiving coil form the initial detecting zone 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, form new surveyed area again; Wherein, ADD is a positive integer;
Step 22: the receiving coil if described ADD root receiving coil is not beyond the boundary, then detect in described new surveyed area and record time writer signal; After having scanned the 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 step 21, after all border transmitting coil and border receiving coil have scanned in to the antenna plate zone, finish this circulation.
In the such scheme, described border transmitting coil is first or the last root transmitting coil in antenna plate zone, and described border receiving coil is first or the last root receiving coil in antenna plate zone;
Transmitting coil, then gating border transmitting coil if described ADD root transmitting coil is beyond the boundary;
Receiving coil, then gating border receiving coil if described ADD root receiving coil is beyond the boundary.
In the such scheme, in the combination of described transmitting coil and receiving coil, if the number of transmitting coil and receiving coil is respectively more than or equal to 2 o'clock, described ADD is smaller or equal to the interval between the initial transmissions coil of gating, and smaller or equal to the interval between the initial receiving coil of gating.
In the such scheme, the described pairing coil combination of time writer signal maximum that obtains 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 a positive integer;
Detect and the every pair of transmitting coil of record gating and the time writer signal of receiving coil combination, and calculate the maximal value of detected time writer signal;
If the maximal value of described time writer signal is more than or equal to the accurate location threshold value that sets in advance, then the maximal value of time writer signal and the pairing coil combination of maximal value of this time writer signal are handled by control panel, determine the position of time writer, and further obtain the touching signals of time writer on the electromagnetism handwriting pad; 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 the 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 the such scheme, the initial transmissions coil of described gating comprises a border transmitting coil at least, and/or the initial receiving coil of described gating comprises a border receiving coil at least.
In the such scheme, initial transmissions coil number and initial receiving coil number are even number, and respectively described antenna plate are divided into equal zone;
Wherein, when the transmitting coil of described antenna plate coil and the number of receiving coil are odd number, a border coil of gating transmitting coil and receiving coil at first separately need to determine the initial transmissions coil number and the initial receiving coil number of gating again in the residue coil of antenna plate.
The present invention also provides a kind of touch-control localization method based on electromagnetic induction device, and this electromagnetic induction device comprises: electromagnetism handwriting pad and be used for the time writer of handwriting input on described electromagnetism handwriting pad; Described electromagnetism handwriting pad 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 launching electromagnetic wave with described transmitting coil being used to of intersecting vertically and receives the receiving coil that the electromagnetic wave resonance of described transmitting coil emission is produced resonance signal by described time writer; This method comprises:
Gating at least two group transmitting coils and receiving coil scan simultaneously, after the border transmitting coil and border receiving coil scanning all to the antenna plate zone, according to the maximal value of detected time writer signal and the pairing coil combination of maximal value of this time writer signal, obtain the touching signals of time writer on the electromagnetism handwriting pad.
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;
Described according to the maximal value of detected time writer signal and the pairing coil combination of maximal value of this time writer signal, obtain the touching signals of time writer on the electromagnetism handwriting pad, comprise: the maximal value of obtaining detected described time writer signal, and, time writer is carried out Primary Location according to the pairing coil combination of the maximal value of time writer signal;
According to the maximal value of described time writer signal and to the result of time writer Primary Location, obtain the touching signals of time writer on the electromagnetism handwriting pad.
Described according to the maximal value of time writer signal and the result of Primary Location, obtain the touching signals of time writer on the electromagnetism handwriting pad, comprise: with the maximal value and the predefined Primary Location threshold of time writer signal, if the maximal value of described time writer signal is less than described Primary Location threshold value, then the pairing coil combination of time writer signal maximum that obtains according to Primary Location is accurately located time writer; Otherwise, by control panel the maximal value of time writer signal and the pairing coil combination of maximal value of this time writer signal are handled, determine the position of time writer, and further determine the touching signals of time writer on the electromagnetism handwriting pad.
Described while gating at least two group transmitting coils and receiving coil scan, and border transmitting coil and the scanning of border receiving coil until to the antenna plate zone comprise:
Step 10: gating at least two group initial transmissions coils and initial receiving coil form the initial detecting zone 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, form new surveyed area again; Wherein, ADD is a positive integer;
Step 12: the transmitting coil if described ADD root transmitting coil is not beyond the boundary, then detect in described new surveyed area and record time writer signal; After having scanned the 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 step 11, after all border transmitting coil and border receiving coil have scanned in to the antenna plate zone, finish this circulation; Perhaps,
Step 20: two groups or more initial transmissions coil of gating and initial receiving coil form the initial detecting zone 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, form new surveyed area again; Wherein, ADD is a positive integer;
Step 22: the receiving coil if described ADD root receiving coil is not beyond the boundary, then detect in described new surveyed area and record time writer signal; After having scanned the 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 step 21, after all border transmitting coil and border receiving coil have scanned in to the antenna plate zone, finish this circulation.
This method also comprises: described border transmitting coil is first or the last root transmitting coil in antenna plate zone, and described border receiving coil is first or the last root receiving coil in antenna plate zone; Transmitting coil, then gating border transmitting coil if described ADD root transmitting coil is beyond the boundary; Receiving coil, then 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 respectively more than or equal to 2 o'clock, described ADD is smaller or equal to the interval between the initial transmissions coil of gating, and smaller or equal to the interval between the initial receiving coil of gating.
Describedly time writer is accurately located, may further comprise the steps according to the pairing coil combination of time writer signal maximum:
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 a positive integer;
Detect and the every pair of transmitting coil of record gating and the time writer signal of receiving coil combination, and calculate the maximal value of detected time writer signal;
If the maximal value of described time writer signal is more than or equal to the accurate location threshold value that sets in advance, then the maximal value of time writer signal and the pairing coil combination of maximal value of this time writer signal are handled by control panel, determine the position of time writer, and further obtain the touching signals of time writer on the electromagnetism handwriting pad; 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 comprises a border transmitting coil at least, and/or the initial receiving coil of described gating comprises a border receiving coil at least.
Described initial transmissions coil number and initial receiving coil number are even number, and respectively described antenna plate are divided into equal zone;
Wherein, when the transmitting coil of described antenna plate coil and the number of receiving coil are odd number, first or last root of gating transmitting coil and receiving coil at first separately need to determine the initial transmissions coil number and the initial receiving coil number of gating again in the residue coil of antenna plate.
Beneficial effect of the present invention is: the present invention scans by many transmitting coils of while gating and Duo Gen receiving coil, can accurately locate time writer in the short period of time, especially under the many situations of the coil number of electromagnetic induction antenna plate, with respect to the method for order by root scanning transmitting coil and receiving coil, the present invention can greatly improve the efficient and the accuracy of time writer location, and has effectively avoided the contact to lose and problem such as the location of delaying time.For example: when the coil number of antenna plate during 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 on antenna plate during fast moving, can locate the position of time writer fast, and be unlikely to take place the phenomenon that touch point is lost, effectively improved the 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.
With reference to Figure 1 and Figure 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 that intersects vertically mutually, and transmitting coil 211 and receiving coil 212 have common initial point.In the antenna plate zone, transmitting coil is the p root, Tx
0... Tx
P-1, receiving coil is the q root, Ry
0... Ry
Q-1One end of transmitting coil and receiving coil is respectively by the micro-control unit on the control module 31 (Micro Control Unit, MCU) 20 controls.
Micro-control unit on the control module 31 (MCU) 20 is controlled the gating of transmitting coil 211 and receiving coil 212 respectively by control emission part 41 and acceptance division 51 and is closed.Fig. 1 is in conjunction with shown in Figure 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 the signal of control A/D sample circuit 19 acquired integrated circuit 18, and the signal of gathering is calculated, and send host computer to by interface then.
Micro-control unit (MCU) 20 control multidiameter option switchs (MUX) 10,12 are gating transmitting coil and receiving coil respectively.Micro-control unit (MCU) 20 control-signals generator 16 produce pumping signals, amplify via amplifier 13, and the pumping signal 4 that obtains amplifying, and send to time writer 11 by transmitting coil by multidiameter option switch (MUX) 10.Micro-control unit (MCU) 20 control multidiameter option switchs (MUX) 12 gating receiving coils, 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, passes through the amplification of two-stage amplifier (AGC) 15 and the processing of signal processor 17 again, obtains signal 2, and this signal 2 obtains integrated signal 3 behind the integration of integrating circuit 18.This integrated signal 3 is calculated by micro-control unit (MCU) 20 through the collection of A/D sample circuit 19.20 pairs of time writer signals through processing step by step of micro-control unit (MCU) are analyzed, and obtain the touching signals of time writer 11 on the electromagnetism handwriting pad.
Figure 3 shows that the antenna plate transmitting winding group Tx direction synoptic diagram of electromagnetic induction device of the present invention.Transmitting coil 211 total p roots, the one end links together, by a resistance eutral grounding.The other end of transmitting coil is connected with multidiameter option switch (MUX) 10 respectively, selects the gating transmitting coil by multidiameter option switch (MUX) 10, sends pumping signal to time writer 11.
Figure 4 shows that the antenna plate receiving coil group Ry direction synoptic diagram of electromagnetic induction device of the present invention.Receiving coil has the q root, and the one end passes through for example analog switch ground connection of low on-resistance.This analog switch is controlled break-make by the micro-control unit on the control module 31 20.The other end of receiving coil is connected with multidiameter option switch (MUX) 12 respectively, is used for the electromagnetic induction signal that is produced by the electromagnetic wave resonance that multidiameter option switch (MUX) 12 selects gating to receive time writer and transmitting coil transmission.
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 invention is by with transmitting coil and at least two of at least one side's while gatings of receiving coil and while method for scanning, realizes the time writer location to the electromagnetism hand writing system.
The implementation step of this programme is as follows:
S501: gating initial transmissions coil and initially receiving coil simultaneously in the antenna plate zone form the initial detecting zone;
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 zone of time writer signal.Suppose that the quantity of the transmitting coil of gating is n1, 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 zone with transmitting coil and receiving coil respectively.When selecting the gating initial coil, for not multiple scanning in the process that guarantees entire antenna plate zone is all scanned, and make that the step in motion scan zone is more simple, preferably, one of gating is positioned at the transmitting coil and/or a receiving coil that is positioned at the receiving coil border of gating on transmitting coil border.Described border coil is meant the 1st transmitting coil Tx on the antenna plate respectively
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 were even number, n1 and n2 were even number, suppose, n1 and n2 are 2 o'clock, and be preferred,
Initial gating transmitting coil is: Tx
0And Tx
P/n1, perhaps Tx
P-1And Tx
P/n1
Initial gating receiving coil is: Ry
0And Ry
Q/n2, perhaps Ry
Q-1And Ry
Q/n2
Like this, the transmitting coil of initial gating has been divided into two zones with the antenna plate zone, and the receiving coil of initial gating also has been divided into two zones with the antenna plate zone.
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, perhaps 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, perhaps 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 zones with the antenna plate zone, and the receiving coil of initial gating also has been divided into four zones with the antenna plate zone.
If p and q are odd number, preferably, first in transmitting coil and the receiving coil or last root are scanned separately, remaining (p-1) root transmitting coil and (q-1) the root receiving coil adopt the mode of gating n1 root transmitting coil and n2 root receiving coil simultaneously, preferably select n1, n2 is an even number, and promptly n=2,4...... selection mode carry out gating.
Interval delta T x between the transmitting coil of initial gating, interval delta Ry between the receiving coil of perhaps initial gating, decide according to the coil quantity that is provided with in the antenna plate zone, when coil quantity is more, the coil spacing of gating can suitably strengthen, when the coil negligible amounts, the coil spacing of gating can suitably dwindle.
S502: scan the transmitting coil of institute's gating and the combination of receiving coil respectively, detect and write down the time writer signal of every pair of coil combination.
Whether detect time writer in the initial detecting zone exists, because simultaneously initial gating transmitting coil and receiving coil in the antenna plate zone, at least two coils of at least one side's gating of transmitting coil and receiving coil wherein, therefore, at least simultaneously gating comprises three coils of transmitting coil and receiving coil, promptly, at least simultaneously two transmitting coils of gating and a receiving coil, perhaps transmitting coil of gating and two receiving coils at least simultaneously, detect the time writer signal of every pair of coil combination, and the record testing result.
The transmitting coil of gating sends pumping signal on the electromagnetic induction antenna plate, resonant circuit in the 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 on the electromagnetic induction antenna plate, thereby every pair of coil combination all can be detected the time writer signal.
S503: judge whether the border transmitting coil and the border receiving coil in antenna plate zone are scanned,, then carry out S505 if border transmitting coil and border receiving coil are scanned, otherwise, carry out S504;
S504: transmitting coil that gating is other and receiving coil combination, form surveyed area again, return S502 then;
S505: the maximal value of calculating detected time writer signal;
S506: the maximal value and the default Primary Location threshold value t1 of described time writer signal are compared, if the maximal value of described time writer signal is less than Primary Location threshold value t1, illustrate current detection to the pairing coil combination of time writer signal maximum be not the exact position at time writer place, need further accurately locate, carry out the accurate positioning flow of time writer; If the maximal value of described time writer signal greater than Primary Location threshold value t1, illustrate current detection to the pairing 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 the locating speed and the noise signal of time writer.
S507: with the intersection point of pairing transmitting coil of the maximal value of time writer signal and receiving coil, be defined as the position of time writer, and, obtain the touching signals of time writer on the electromagnetism handwriting pad according to the maximal value of described time writer signal and the position of time writer.
In the embodiment of the present invention, scan by many transmitting coils of while gating and Duo Gen receiving coil, can accurately locate time writer in the short period of time, especially under the many situations of the coil number of electromagnetic induction antenna plate, with respect to the method for order by root scanning transmitting coil and receiving coil, the present invention can greatly improve the efficient and the accuracy of time writer location, and has effectively avoided the contact to lose and problem such as the location of delaying time.
In the present embodiment, the method that forms surveyed area again comprises following two kinds:
Method one: as shown in Figure 6
S600: judge whether to all border transmitting coils been scanned all, if there is not been scanned, then 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, form new surveyed area again; 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 respectively more than or equal to 2 o'clock, ADD is smaller or equal to the interval delta T x between the transmitting coil of gating, and ADD is smaller or equal to the interval delta Ry between the receiving coil of gating.
For example, initial gating Tx
iRoot and Tx
jThe root transmitting coil, that gating is Tx in this step
I+ADDRoot and Tx
J+ADDThe root transmitting coil forms surveyed area again.Here, the 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 in step S602; Otherwise, gating border transmitting coil, execution in step S602 again;
S602: according to the transmitting coil and the receiving coil of institute's gating, in new surveyed area, detect and record time writer signal, return step S600 then;
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, return step S600 then, reciprocation cycle is till all border transmitting coil and border receiving coil have scanned in to the antenna plate zone.
Method two: as shown in Figure 7
S700: judge whether to all border receiving coils been scanned all, if there is not been scanned, then 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, form new surveyed area again; Otherwise, carry out S703;
Wherein, the ADD value is identical with S600, does not do here and gives unnecessary details.
S701: judge the ADD root receiving coil receiving coil that whether is beyond the boundary,, carry out S702 if be not beyond the boundary receiving coil; Otherwise gating border receiving coil is carried out S702 again;
S702: according to the transmitting coil and the receiving coil of institute's gating, in new surveyed area, detect and record time writer signal, return S700 then;
S703: the initial receiving coil of gating, close the transmitting coil of current gating, the ADD root transmitting coil that the transmitting coil of gating and current gating is adjacent, again form surveyed area, detect and record time writer signal, return step S700 then, reciprocation cycle is till all border transmitting coil and border receiving coil have scanned in to the antenna plate zone.
In the present embodiment, the method whether coil of judgement gating exceeds the antenna plate zone boundary is:
If surveyed area is to move to p root transmitting coil or q root receiving coil direction, then 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 is numbered more than or equal to p-1, perhaps when the receiving coil of gating is numbered 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, then makes the transmitting coil of gating be numbered p-1, the receiving coil of gating is numbered q-1; When the transmitting coil of gating numbering less than p-1, perhaps when the receiving coil numbering of gating during, the transmitting coil of gating or the receiving coil coil that is not beyond the boundary be described less than q-1, need continuation 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, then compares with the transmitting coil numbering of gating, or compare with the receiving coil numbering of gating 0 with 0.When the transmitting coil of gating numbering smaller or equal to 0 the time, perhaps number smaller or equal to 0 the time 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, the receiving coil of gating is numbered 0; When the transmitting coil of gating numbering greater than 0, perhaps when the receiving coil numbering of gating greater than 0 the time, the transmitting coil of gating or the receiving coil coil that is not beyond the boundary be described, need continuation gating next one ADD root transmitting coil or receiving coil.
When the transmitting coil of initial gating or receiving coil are many, judge whether gate winding arrives the antenna area border, when surveyed area when the 1st coil reverse direction moves, be relatively with bigger gate winding numbering and the antenna boundary line number of turns; When surveyed area when the 1st coil direction moves, be with less gate winding numbering with 0 relatively.
In time writer localization method of the present invention, the accurate positioning flow of described time writer as shown in Figure 8, may further comprise the 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, the m value is the arbitrary integer in 1 to ADD+1.In the present embodiment, the m value is 4.
S802: detect and the every pair of transmitting coil of record gating and the time writer signal of receiving coil combination;
S803: the maximal value of calculating detected time writer signal;
S804: the maximal value of time writer signal and the accurate location threshold value t2 that sets in advance are compared, and this accurately locatees threshold value t2 greater than Primary Location threshold value t1, if the maximal value of described time writer signal is carried out S805 more than or equal to accurately locating threshold value t2; If the maximal value of described time writer signal less than accurate location threshold value t2, illustrate current detection to the coil of maximal value correspondence of time writer signal be not the exact position at time writer place, need further accurately to locate, then return S801; Described Primary Location threshold value t1 is relevant with the locating speed and the noise signal of time writer.
S805: the combination according to pairing transmitting coil of the maximal value of time writer signal and receiving coil is handled, and determines the position of time writer, obtains the touching signals of time writer on the electromagnetism handwriting pad.
The waveform of time writer signal is a sinusoidal curve, and MCU calculates the maximal value and the phase place of time writer signal waveform, and then obtains the coordinate and the pressure information of time writer, and flows to computing machine and handle.
Below in conjunction with specific embodiment method of the present invention is described in detail.
Embodiment one
Suppose that the antenna plate zone is 40*50, 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 coils of difference gating Tx
0, Tx
20And two initial receiving coil Ry
0, Ry
20
Opentx(0);Opentx(20);Openry(0);Openry(20);
S102: scan Tx respectively
0, Tx
20, Ry
0, Ry
20The combination of coil detects and writes down the time writer signal of every pair of coil combination.
Scan following coil combination respectively:
{Opentx(0),Openry(0)};
{Opentx(0),Openry(20)};
{Opentx(20),Openry(0)};
{Opentx(20),Openry(20)};
S103: judge whether whole antenna plate zone to be scanned, if to whole antenna plate sector scannings, then calculate the maximal value of detected time writer signal, and time writer is accurately located according to described maximal value and corresponding coil combination thereof; Otherwise, carry out S104.
S104: form surveyed area again, continue to detect and record time writer signal, till having scanned all antenna plate zones.
In the present embodiment, not to whole antenna plate sector scannings, then need to form again surveyed area, at receiving coil Ry because of also
0, Ry
20Under the constant situation, the ADD root transmitting coil that the transmitting coil of gating and current gating is adjacent, ADD=3, at this moment, the 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; Because 23<40, the border that does not exceed transmitting coil at this moment be described, then according to the transmitting coil and the receiving coil of institute's gating, again form new surveyed area, detect and record time writer signal, the execution in step that circulates then S104, the combination of the transmitting coil of gating and receiving coil is 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, judge 38<40, the border that does not exceed transmitting coil is described.If desired, continue the next transmitting coil of gating.
The transmitting coil Tx of the next gating of wanting
jShould be the 41st coil, owing to exceeded the border of transmitting coil, so the 40th transmitting coil of gating is the border transmitting coil; The transmitting coil Tx of corresponding gating
iBe the 21st coil.At this moment, the combination of the transmitting coil of gating and receiving coil is respectively:
{Opentx(21),Opentx(40);Openry(0),Openry(20)}。
At all transmitting coils all after the been scanned, gating initial transmissions coil again then, 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+ADDThe root coil, this moment, the transmitting coil and the receiving coil of gating were respectively:
{Opentx(0),Opentx(20);Openry(3),Openry(23)}。
Judge 23<50, the border of no show receiving coil is described.Keep current receiving coil Ry
3And Ry
23Constant, gating Tx
0+ADD, Tx
20+ADDThe root coil.The combination of the transmitting coil of gating and receiving coil is 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)}。
Arrive the border of transmitting coil once more up to the transmitting coil of gating, and so forth, up to { Opentx (0), Opentx (20); Openry (30), Openry (50) } time, the border of arrival receiving coil continues to move surveyed area along the transmitting coil direction.
As { Opentx (18), Opentx (38); Openry (30), Openry (50) } time, judge 38<40, the border that does not exceed transmitting coil is described, continue gating transmitting coil again, form surveyed area again.The transmitting coil Tx of next gating
jShould be the 41st coil, owing to exceeded the border of emission, so the 40th transmitting coil Tx of gating
40The transmitting coil Tx of corresponding gating
iBe the 21st coil Tx
20
Adopt scheme of the present invention, can locate the position of time writer fast, especially for antenna plate zone more than or equal to 20*20, can effectively shorten the sweep time of about 150ms, at time writer on antenna plate during fast moving, can locate the position of time writer fast, and be unlikely to take place the phenomenon that touch point is lost, effectively improve the locating speed and the precision of time writer.
Embodiment two
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 one, no longer describes in detail.The difference of present embodiment and embodiment one is, whole antenna plate sector scannings is finished in step 103.
Gating such as lower coil: { Opentx (0), Opentx (20); Openry (0), Openry (20) }.
S105: calculate the maximal value (MAX) of detected time writer signal, the intersection point of the transmitting coil of the maximal value correspondence of this time writer signal and receiving coil tentatively is defined as the position of time writer.
Suppose, the transmitting coil of the maximal value correspondence of time writer signal and receiving coil be combined as (Tx
20, Ty
20)
S106: the maximal value (MAX) and the default Primary Location threshold value t1 of described time writer signal are compared, here, suppose MAX<t1, illustrate current detection to the coil combination of time writer signal maximum correspondence be not the exact position at time writer place, need further accurately locate time writer, carry out S107.
S107: 4 transmitting coils and 4 receiving coils that the coil of the maximal value correspondence that obtains among the gating step S106 is adjacent, then 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 the combination of above transmitting coil and receiving coil respectively, have 64 pairs of combinations, obtain time writer signal MAX ' 1~MAX ' 64 respectively, if the maximal value MAX ' of time writer signal=MAX ' 1, then obtain pairing transmitting coil of MAX ' and receiving coil be combined as (MaxTxcoil=16, MaxRycoil=16).
Relatively MAX ' and accurately location threshold value t2, if MAX '>t2 illustrates MaxTxcoil=16, MaxRycoil=16 is the exact position at time writer place.
Further according to MAX ' and MaxTxcoil=16, MaxRycoil=16 handles, and obtains the touching signals of time writer on the electromagnetism handwriting pad.
Above step cycle is carried out, calculated coordinate information after, program can continue again to return step S101, circulates, calculates, and obtains the coordinate of time writer, guarantees to find continuously the position of pen, will be presented in face of the user with drawn line of time writer and the word of writing.
Adopt scheme of the present invention, can locate the position of time writer fast, especially for antenna plate zone more than or equal to 20*20, can effectively shorten the sweep time of about 150ms, at time writer on antenna plate during fast moving, can locate the position of time writer fast, and be unlikely to take place the phenomenon that touch point is lost, effectively improve the locating speed and the precision of time writer.
Embodiment three
Be that with embodiment two differences the antenna area of embodiment three is made up of odd number transmitting coil and receiving coil respectively with embodiment one, suppose that antenna area is 19*19, 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 all is odd number, and is preferred, respectively the 1st transmitting coil Tx of independent gating
0With the 1st receiving coil Ry
0, n1 and n2 get even number, and with n1=2, n2=2 is the example explanation in the present embodiment.
Independent the 1st transmitting coil Tx of gating
0, the receiving coil of select progressively simultaneously direction is carried out the time writer signal scanning, detects the time writer signal; And,
Independent the 1st receiving coil Ry of gating
0, the transmitting coil of select progressively simultaneously direction is carried out the time writer signal scanning, detects the time writer signal.
Remove the 1st transmitting coil and the 1st receiving coil, remaining transmitting coil and receiving coil form the antenna plate zone again, and in this antenna plate zone, transmitting coil radical p ' is 18, receiving coil radical q ' is 18, and the radical of transmitting coil and receiving coil all is an even number.In this antenna plate zone, select the initial coil of gating:
The initial transmissions coil of gating is: Tx
1And Tx
9Perhaps Tx
18And Tx
9
The initial receiving coil of gating is: Ry
1And Ry
9Perhaps Ry
18And Ry
9
Therefore, the combination of the transmitting coil of initial gating and receiving coil may for:
{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) } scan as the initial coil of gating.At this moment, identical with the situation of embodiment one, embodiment two initial coil, the process of scanning yoke and the process of surveyed area of forming again are consistent with the foregoing description, no longer describe in detail.
Adopt scheme of the present invention, the position of time writer can be located fast, especially on antenna plate, during fast moving, the position of time writer can be located fast at time writer, and be unlikely to take place the phenomenon that touch point is lost, effectively improved the 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 the step that forms surveyed area again,, be positioned at the middle situation of antenna area with respect to the initial detecting zone and want simple the method for border coil as initial coil, accordingly, the speed that detects the time writer signal also can significantly improve.