where T is the total measured time between the start signal and the received signal
from the MR, T OF is the time of flight and c the sound speed.
2 Localization System
A previous version of the localization system had only two receivers located 20cm
apart. This system was very sensible to small errors in the TOF measurements leading
to an unusable system [5]. We solved this problem by acting on various aspects of the
system. Firstly, we increased the applied voltage to the transmitter from 8 to 16Volts.
Then we built an array with four aligned sensors spaced 20cm from each other to obtain
spatial diversity and as a consequence increased stability in position evaluation. Finally,
we improved the algorithm that evaluates the (x
m
, y
m
) by integrating several sets of
four measures T
i
to get an extra gain in the position stability.
The digital signal processing of the localization system is carried out by a DSP2812.
If all the digital signal processing was performed at the sampling frequency of 160kHz,
the DSP 2812 would not have enough processing power to calculate the TOF for the four
channels. In order to circumvent this limitation, we implemented a baseband converter
that outputs the decimated quadrature and phase components of the input signal. The
baseband converter was implemented directly in DSP2812 assembly language and it
uses about 50% of the available DSP processing power. The baseband converter reduces
the sampling frequency by a factor of 32, from 160kHz to 5kHz. The processing of the
converter output is much less demanding on the processing power and was implemented
in C.
2.1 Time of Flight Measurement
The transmitted chirp pulse is generated by sampling the signal
c(t) = h(t) cos
ω
1
t + βt
2
, t ∈ [0 . . . T ] ,
with β = (ω
2
− ω
1
)/(2T ), where ω
1
and ω
2
are the initial and final frequencies of
the chirp, T is the duration of the pulse and h(t) is a Hamming window. The window
h(t) is used to reduce the side lobes that appear on the autocorrelation of the chirp. The
carrier frequency is defined as ω
c
= (ω
1
+ ω
2
)/2.
Figure 2 shows the chirp autocorrelation with and without the Hamming window.
The reduction of the sidelobes is important to avoid false peak detection.
Baseband converter For bandpass signals, the Nyquist theorem states that a signal
has to be sampled at a frequency not less than twice the bandwidth of the signal. Since
the bandwidth of c(t) is typically 2kHz (in our system) it is possible to reduce the
sampling frequency to a much lower value (5kHz) by performing a bandpass to lowpass
transformation (see figure 3). This technique is well known and widely used on radar
and ultrasound sensing [6]. Several methods are available to perform this conversion
e.g. [7].