1. Introduction
In the 21st century, all kinds of new technology emerge. With the development of optics and microelectronics technology, new 3D scanners hold the market, and in this part western country is in the lead, such as in USA, Polhemus had developed the FastCAN Cobra, in Canada, HandyScan had been used widely. But in china, we only in the study stage. So, it is useful for us to design 3D scanners system.
Electromagnetic tracking system derives from the study of the portable laser scanner’s position tracking. Through obtaining the targets’ real-time 3D coordinate to connect the image and goals. When a receiving sensor moving in space, electromagnetic tracking system can accurately calculate its position and orientation, it can provide dynamic, real-time measuring position and orientation angle [1]. This system mainly be used in computer fields, such as navigation, ballistic missile tracking, biomechanics, building, tracking, robots, biomechanics, education, virtual reality (VR) and so on. All can obtain the objects’ real-time position and direction information by electromagnetic tracking system. It always be used in some places where need accurate tracking.
At present, we accomplished the design and make sure it can work in a small range. In our design, the system is potable and it can work through physical. This is our system’s advantage.
2. The Structure of the Tracking System
In our study, the electromagnetic tracking system can be decomposed into 4 parts: Transmission Circuit (TC), Receiving Circuit (RC), DSP and Personal Computer (PC).
Transmission Circuit (TC) mainly includes Signal Generating and Processing Circuit (SGPC), Analog Switching Circuit (ASC), Signal Amplification Circuit (SAC) and Electromagnetic Emission Coil (EEC). The signal generating and processing circuit used crystal oscillator. It generates 12 MHz signal. Through frequency division and waveform transform, we get the 9.6 KHz sine signal. Analog switching circuit can be used to control the time of signal radiation with DSP. After signal amplification by signal amplification circuit, the signal can be transferred to the electromagnetic emission coil and launched as the form of electromagnetic waves.
The receiving circuit mainly includes Sensing Receiver (SR), Signal Amplification Circuit (SAC), Band Pass Filter (BPF), Amplitude Detection Circuit (ADC). In the design, we select Honeywell’s three axis of magnetic resistance sensor as sensing receiver. It is HMC1043, it has the following characteristics: low cost, high sensitivity, minute extension, low noise, high reliability, strong adaptability, easy installation and so on [2]. Amplitude detection circuit can give us the signal amplitude size what we need. After these, the signal will be transmitted to DSP and then do software processing.
TMS320F2812 is known as a rapid processing DSP, it can meet the sampling frequency that we need, and using its A/D part, the analog signals can be converted into digital signals. Another role is that it can control the time of signal transmission [3].
PC can give us the data by programming.
All of the component can be illustrated in Figure 1.
The electromagnetic emission coil is stereo ferric core winding circle. In the three directions of the cube we bind multilayer coils. Due to geometric construction of the cube, it can accurately guarantee the three coils orthopedic and homocentric [4]. The model is shown in Figure 2.
DSP mainly have following ports to make all parts together, it is shown in Figure 3.

(State: MFS is magnetic field space)
Figure1. The structure of the electromagnetic tracking system.
Figure 2. The electromagnetic emission coil.
Figure 3. The connect ports of all parts.
The receiving circuit used DSP A/D port to transmit and transform data. DSP connected with the analog switching circuit by I/O port and PC by SCI port. By controlling the analog switching circuit we can launch three channels’ signals through time sharing.
3. The Summarizer of Algorithm
This system is mainly based on six degree-of-freedom electromagnetic tracking algorithm. Applying the origin of launch site as a benchmark, we can establish our coordinate system. The spherical coordinate of sensing receiver relative to electromagnetic emission coil can be expressed as (ρ, α, β), the rotational angles of sensing receiver relative to electromagnetic emission coil can be expressed as: ω, ξ, ψ. The definition is: first, round X* make ω degrees of horizontal rotation; then, round Y* make ξ degrees of pitching rotation; at last, round Z* make ψ degrees roll rotation. After a series of matrix transformation, we can get the output formulas of ρ, α, β, ω, ξ, ψ [5].
Here we can get three important formulas F, W and A:
(1)
(2)
(3)
From (1) we can get:
(4)
P(z), in F matrix, is modulus square of received vector of z axis and G is unit matrix.
Using F we can get the calculation formula of ρ.
Here we simplify W as:
(5)
Using (2) we can get the calculation formulas of α and β:
(6)
(7)
Using (3) we can get the calculation formulas of ω, ξ and ψ:
(8)
(9)
(10)
Based on these formulas we can program for DSP to complete the operation of software.
The relationships between coordinates can be illustrated in Figure 4 [6] and coordinate conversion formula is:
(11)
Here, R is rotation matrix, it is
(12)
And T is translation matrix, it is
(13)
4. The Methods of Data Acquisition
In experiment, by controlling I/O ports, we get the data in sequence.
The principle diagram is expressed in Figure 5.
In practice, by controlling the analog switching, we can implement time-share launch. It can put a measurement cycle divided into three stage, the emission signals can only drive one launch coil at one stage. So, in each stage, only one coil can produce space magnetic field. The HMC1043 get 3 data of one coil in one stage, so we can get 9 data totally in one measurement cycle [7].
5. Data Collection and Analysis
5.1. The Data Collection
In experiment, the data acquisition part used DSP model of SEED_DPS2812M, it collect analog signals and convert it into digital signals. We can finally get these digital signals in PC.
Here, we just take the collected voltage amplitude for example, not put everything, such as the rotational angles-ω, ξ, ψ into detail. We collect voltage amplitude of each axis to check our system’s stability and errors. In order to find the problem, we collect data several times at one position, each cycle’s data as one group. We select three groups of data to state [8], the position is: ρ = 9.50 cm, α = 25.00˚ β = 45.00˚, the data are shown in Tables 1-3, and the actual data of amplitude are shown in Table 4.
5.2. The Analysis of the System
Analyzing the collected data, we average the three data of every stage of every axis, then calculate the relative error and the relative error are shown in Table 5.
In reality, we select ρ at the position of 10 cm. Due to larger diameter of the electromagnetic emission coil, it about 5 cm, in fact ρ is the space length from the receiver
Table 1. The first group of amplitude.

Table 2. The second group of amplitude.

Table 3. The third group of amplitude.

Table 4. The actual data of amplitude.

Table 5. The relative error.

center to coil center and the data we get unavoidably exists error. In experiment we find if ρ is bigger than 15 cm the signal weakening faster. From the table we can find:
1) When the output voltage is small, for example, approach to 0.1 v, the relative error is large.
2) Because of time-share launch, in different stage, the output voltage is different, but the voltage of the same axis at different time is basic stable. After many experiments-different position experiments, this can be proved and our system is stable.
3) Due to the differences of position, in the same position for different axis, the error is different; the same axis for different position, the error is also different.
Summing up above and combined with the experiments, the stability of the system is ideal. But due to the limit of the distance between the electromagnetic emission coil and receiver, the error of the system is big and the main factor is the size of the electromagnetic emission coil. In addition, the output voltage amplitude smaller is also one factor.
6. The Improvement Method and Conclusion
Now, our system can only work in a small scope, such as the receiver distance is 10 cm and its precision is only 2 - 4 mm, for a well precision, it can reach 0.5 mm, all of this is our system’s limitation. Next step we should improve the precision and make it working radius reach 20 - 30 cm. In order to improve our system, there are many methods:
1) Improve the electromagnetic emission coil, due to the limit of the distance between the electromagnetic emission coil and the receiver. The coil is smaller the effect will be better. Normally, diameter of the coil should be far less the distance from the coil to receiver. But at the same time, we should ensure the electromagnetic emission coil working at resonance state and transmitted power largest, the circle number of the coil and the area of the coil should meet the need of transmitted power, the coil cannot be made infinitely small.
2) Increase signal magnification of the receiving circuit. In our experiment, in order to reduce the noise interference, the magnification of the signal amplification circuit is just 200 times.
3) Combined with six degree-of-freedom algorithm, do compensation process. In this part we can use Two Interpolation Algorithm to do compensation process for amplitude and angle of output.
At present, we accompliment our design and through the experiment, our system can work stability at a small scope and the precision need improved. In short, we accomplished the design and analysis work and make a good preparation for next section.