You are on page 1of 6

2009 IEEE International Conference on Robotics and Automation

Kobe International Conference Center


Kobe, Japan, May 12-17, 2009

Real-time ultrasonic distance measurements for autonomous mobile


robots using cross correlation by single-bit signal processing
Shinnosuke Hirata, Minoru Kuribayashi Kurosawa, and Takashi Katagiri

Abstract— Distance measurement using an ultrasonic wave of the received signal, pulse compression has been employed
is suitable for environment recognition in autonomous mobile in the pulse-echo method[5]. A frequency-modulated (FM)
robots. Ultrasonic distance measurement with the pulse-echo
method is based on determining the time-of-flight (TOF) of the
signal or a signal coding by pseudo-random sequence is
reflected echoes. The pulse-echo method with pulse compres- typically transmitted in the pulse-echo method with pulse
sion, the cross-correlation method, can improve the distance compression, the cross-correlation method[2][3][5]-[7]. In
resolution and the signal-to-noise ratio (SNR) of the reflected the case of a linear-frequency-modulated (LFM) signal, a
echo. However, cross correlation of the cross-correlation method
requires the high-cost digital signal processing. A sensor signal
received signal is correlated with a reference LFM signal.
processing method of cross correlation using a delta-sigma The TOF of the received LFM signal is estimated from the
modulated single-bit digital signal has been proposed. Cross maximum peak time in the cross-correlation function of the
correlation by single-bit signal processing reduces the calcula- received signal and the reference LFM signal.
tion cost of cross correlation. Furthermore, cross correlation
by single-bit signal processing improves the time resolution of
A calculation of cross correlation, consisting of huge itera-
digital signal processing. In this paper, the distance resolution tions of multiplications and accumulations, requires the high-
of cross correlation by single-bit signal processing is evalu- cost digital signal processing. Therefore, real-time distance
ated by computer simulations and experiments of ultrasonic measurements by the cross-correlation method are difficult
distance measurement. Distance measurement from the high-
time-resolution cross-correlation function obtained by single-
because of the limited computational ability of autonomous
bit signal processing realized high distance resolution from mobile robots. To reduce the calculation costs of cross corre-
experimental results, despite the low calculation costs. lation, a sensor signal processing method using a delta-sigma
modulated single-bit digital signal has been proposed[8]-
I. INTRODUCTION [10]. Cross correlation by single-bit signal processing of the
Autonomous mobile robots require many kinds and large proposed method consists of a recursive cross-correlation
numbers of sensors to measure the distance, the velocity, and operation of single-bit signals and a smoothing operation
the scale of objects for environment recognition. The signal accomplished by a moving average filter[10]. The calculation
processing of each sensor requires real-time environment costs of cross correlation are reduced by the recursive cross-
recognition with high accuracy and resolution, despite the correlation operation of single-bit signals.
limited computational ability in the signal processing for In the cross-correlation method, resolution of the TOF of
each sensor. Distance measurements using an ultrasonic the received LFM signal is typically improved by interpo-
wave are widely used in industrial applications because an lation of the cross-correlation function with the phase or
ultrasonic wave is easily reflected by structures. Additional improvement of the time resolution of digital signal pro-
advantages of ultrasonic sensors include their low purchase cessing. In the case of interpolation of the cross-correlation
cost, small size, and simple hardware. Therefore, ultrasonic function with the phase, a lookup table of arctangent and
distance measurements have been studied and used for envi- complex cross-correlation operation is required. In the case
ronment recognition in autonomous mobile robots[1]-[3]. of improving the time resolution of digital signal processing,
The method of ultrasonic distance measurement is based the calculation costs of cross correlation are increased. How-
on the pulse-echo method, which determines the time-of- ever, the calculation costs of cross correlation by single-bit
flight (TOF) of an ultrasonic wave[4]. The TOF is the interval signal processing are constant and independent of the sam-
from transmission of an ultrasonic pulse to reception of an pling frequency of digital signal processing. Therefore, cross
echo reflected from an object. The distance of the object is correlation by single-bit signal processing is an effective
estimated from the product of the TOF and the propagation method for improving the time resolution of digital signal
velocity of an ultrasonic wave. For effective improvement of processing despite the computational ability of autonomous
the distance resolution and the signal-to-noise ratio (SNR) mobile robots.
In the present study, the cross-correlation function ob-
This work was supported by a Grant-in-Aid for Research Fellowships of tained by single-bit signal processing was examined by
the Japan Society for the Promotion of Science for Young Scientists.
S. Hirata and M. K. Kurosawa are with the Interdisciplinary gradu- computer simulations and ultrasonic distance measurements.
ate school of science and engineering, Tokyo Institute of Technology, Furthermore, the distance resolution of ultrasonic distance
Yokohama, 226-8502, Japan hirata.s.ab@m.titech.ac.jp,
mkur@ip.titech.ac.jp measurement of the proposed method was evaluated based
T. Katagiri is with Sutekina Inc., Komagane, 399-4117, Japan on the experimental results.

978-1-4244-2789-5/09/$25.00 ©2009 IEEE 3601


LFM signal Loudspeaker Object

Ultrasonic
d0 pulse
d1
Reflected echo
Microphone

Delta-sigma Recursive cross-correlation operation


modulator Received signal
-1 1 -1 1 -1 1 -1 1 -1 1 -1 -1 1 -1 -1
Smoothing operation
-1
C1(t) CS(t)
+
-2 Σ 1/N π/4
+
2
-1 z-1 FIR low-pass filter
Summation of
-1 -1 -1 -1 1 1 1 1 -1 -1 -1 -1 1 1 1-bit samples
Digital comparator Reference signal

Fig. 1. Design of cross correlation by single-bit signal processing, consisting of a recursive cross-correlation operation and a smoothing operation.

II. CROSS CORRELATION BY SINGLE-BIT several hundred zero-cross points. There are the same values,
SIGNAL PROCESSING 1 or -1, between two zero-cross points in h1 (i). Therefore,
Cross correlation by single-bit signal processing of the the values of h1 (N − i) − h1 (N − i + 1) are expressed as
proposed method consists of a recursive cross-correlation
h1 (N − i) − h1 (N − i + 1)
operation of single-bit signals and a smoothing operation
accomplished by the FIR low-pass filter, as illustrated in Fig. 
2, · · · h1 (N − i) > h1 (N − i + 1) .
1. In the proposed method, an LFM signal is transmitted

= −2, · · · h1 (N − i) < h1 (N − i + 1) . (3)
by a loudspeaker. The received signal of a microphone is
0, · · · h1 (N − i) = h1 (N − i + 1) .

converted into a single-bit received signal x1 (t) by a delta-
sigma modulator. The transmitted LFM signal is converted The calculation of the recursive cross-correlation operation
into a single-bit reference signal h1 (i) of N samples by a is performed by integrating the difference of the cross-
digital comparator. The cross-correlation function C1 (t) of correlation function of Eq. (2).
the received signal x1 (t) and the reference signal h1 (i) is The calculation cost of the recursive cross-correlation
expressed as operation is integration and several hundred summations of
π 1 single-bit samples. The calculation cost depends on the num-
C1 (t) = · · ΣN −1
i=0 h1 (N − i) · x1 (t − i) . (1) ber of zero-cross points in the LFM signal. Therefore, the
4 N
calculation cost is constant and independent of the sampling
The calculation of the cross-correlation operation of Eq. (1)
frequency of digital signal processing. The recursive cross-
requires huge numbers N of multiplications and accumula-
correlation operation of single-bit signals thus reduces the
tions of single-bit signals.
The difference of the cross-correlation function, C1 (t) − calculation costs of cross correlation.
C1 (t − 1), is expressed as The single-bit received signal x1 (t) contains a large
quantity of quantized noise in a high-frequency band because
C1 (t) − C1 (t − 1) x1 (t) is a delta-sigma modulated signal. The high-frequency
noise decreases the accuracy of the cross-correlation function
π 1
= · · ΣN −1
i=0 h1 (N − i) · x1 (t − i) C1 (t). To improve the accuracy of the cross-correlation func-
4 N tion, the smoothing operation by the FIR low-pass filter is
π 1
− · · ΣN −1
i=0 h1 (N − i) · x1 (t − i − 1) . required to cancel the high-frequency noise in C1 (t). In the
4 N
π 1 present study, the cross-correlation function was smoothed by
= · · [x1 (t) · h1 (N ) − x1 (t − N ) · h1 (N ) a triangular weighted moving average filter, which consists
4 N
+ΣN −1 of a pair of moving average filters, as the FIR low-pass filter.
i=1 {h1 (N − i) − h1 (N − i + 1)}
·x1 (t − i)] (2) III. SIMULATION
The values of h1 (1) and hN (i) are 1 and -1 because h1 (i) is Ultrasonic distance measurement using cross correlation
the LFM signal converted into the single-bit signal. h1 (i) has by single-bit signal processing was evaluated by computer

3602
100
0.2

80
Amplitude [V] 0.1

Probability [%]
60
0

40
-0.1

20
-0.2

6 8 10 12 14 0
0.999 1 1.001
Time [ms] Distance [m]
(a)
Fig. 2. The cross-correlation function obtained by single-bit signal
100
processing in MATLAB.

80
simulations using MATLAB. The frequency of the transmit-

Probability [%]
ted LFM signal linearly swept from 50 kHz to 30 kHz. The 60
length of the LFM signal was 5 ms. The distance to the
object was 1 m. The propagation velocity of an ultrasonic 40
wave in air was approximately 345.1 m/s at 22.4 ◦ C. The
received signal was converted into the single-bit delta-sigma
modulated signal by the 7th-order delta-sigma modulator. For 20
comparison, the received signal was also converted into an
8-bit digital signal. The sampling frequencies of the single- 0
0.999 1 1.001
bit delta-sigma modulated signal and the 8-bit digital signal Distance [m]
were 12.5 MHz and 250 kHz, respectively. (b)
The single-bit received signal was correlated with the 100
single-bit reference signal, which was the transmitted LFM
signal converted into a single-bit digital signal by the digital 80
comparator. The cross-correlation function of the single-
Probability [%]

bit received signal and the single-bit reference signal was


60
obtained from the recursive cross-correlation operation of
single-bit signals and the smoothing operation accomplished
by the triangular weighted moving average filter. The single- 40
bit reference signal had 399 zero-cross points. Therefore, the
calculation cost of the recursive cross-correlation operation 20
was integration and 401 summations of single-bit samples.
The length of the triangular weighted moving average filter,
0
which consists of a pair of 50-tap moving average filters, for 0.999 1 1.001
the smoothing operation was 99 taps. Distance [m]
(c)
The cross-correlation function obtained by single-bit sig-
nal processing is illustrated in Fig. 2. The cross-correlation Fig. 3. The probability distributions of the estimated distance in MATLAB.
function in Fig. 2 has two peaks, which correspond to the (a): the distance is estimated from the cross-correlation function obtained by
peaks from the transmitted LFM signal and from the received single-bit signal processing, (b): the distance is estimated from the cross-
correlation function of 8-bit digital signals, (c): the distance is estimated
LFM signal, respectively. The TOF of the received LFM from the cross-correlation function of 8-bit digital signals interpolated with
signal was estimated from the interval of two peaks in a linear approximation of the phase.
the cross-correlation function. The distance to the object is
estimated from the product of the TOF of the received LFM
signal and the propagation velocity of an ultrasonic wave in
air. distance are illustrated in Fig. 3. The probability distribution
The distance to the object was estimated from the 500 of the distance estimated from the cross-correlation function
simulations. The probability distributions of the estimated obtained by the single-bit signal processing is indicated in

3603
LFM signal 0.2
Wall

Function generator
Loudspeaker 0.1
(Tektronix AFG3252)

Amplitude [V]
(Pioneer PT-R4)
Amplifier
(NF HSA4014) Ultrasonic 0
d0 pulse
d1
-0.1
Reflected echo
Microphone
Mic-amp (B&K 4138) -0.2
(B&K 5935L)
0 5 10 15
Delta-sigma modulator Time [ms]
(Analog Devices AD7720)
Fig. 5. The received signal detected by the microphone.

8-bit signal 1-bit DSM signal

Fig. 4. Experimental setup for ultrasonic distance measurement. transmitted LFM signal linearly swept from 50 kHz to 30
kHz. The length of the LFM signal was 5 ms. The LFM
signal was generated from a function generator and amplified
Fig. 3 (a). The distance error of ±1 sample is brought about by a amplifier. The ultrasonic pulses were transmitted from
by signal processing, cross correlation by single-bit signal a loudspeaker, and the echo reflected from the wall was
processing. then detected by a microphone. The distance d1 to the wall
For comparison, the 8-bit received signal was correlated from the center of the loudspeaker and the microphone was
with the 8-bit complex reference signal for interpolation of 1.000 m. The distance d0 between the loudspeaker and the
the cross-correlation function with the phase. The probability microphone was 0.100 m. The distances were measured by
distribution of the distance estimated from the real part a laser distance meter. The propagation velocity v of an
of the cross-correlation function of 8-bit digital signals is ultrasonic wave in air was approximately 345.1 m/s at 22.4

indicated in Fig. 3 (b). The distance resolution depends on C.
the time resolution of digital signal processing. Therefore, the The received signal detected by the microphone is illus-
distance resolution of conventional digital signal processing, trated in Fig. 5. The received signal includes the transmitted
cross correlation of 8-bit digital signals, is lower than the ultrasonic pulse and the reflected echo. The received signal
distance resolution of cross correlation by single-bit signal was converted into the single-bit delta-sigma modulated
processing. signal by a 7th-order delta-sigma modulator, and the single-
The distance resolution of conventional digital signal bit received signal was then taken into the computer through
processing can be improved by interpolation of the cross- an oscilloscope. For comparison, the received signal was
correlation function with the phase. The phase of the cross- converted into an 8-bit digital signal, and the 8-bit received
correlation function is estimated from the real and imaginary signal was then also taken into the computer through the
parts of the complex cross-correlation function with a lookup oscilloscope. The sampling frequencies of the single-bit
table of arctangent. The cross-correlation function of 8-bit delta-sigma modulated signal and the 8-bit digital signal were
digital signals is interpolated with a linear approximation 12.5 MHz and 250 kHz, respectively.
of the phase. The probability distribution of the distance In the computer using MATLAB, the single-bit received
estimated from the cross-correlation function of 8-bit digital signal was correlated with the single-bit reference signal,
signals interpolated with the phase is indicated in Fig. 3 (c). which was the transmitted LFM signal converted into the
The distance resolution of the cross-correlation function of single-bit digital signal by the digital comparator. The cross-
8-bit digital signals is improved by interpolation with a linear correlation function of the single-bit received signal and
approximation of the phase. the single-bit reference signal was obtained from the re-
cursive cross-correlation operation of single-bit signals and
IV. EXPERIMENT
the smoothing operation accomplished by the triangular
A. Experimental setup weighted moving average filter. The length of the triangular
Cross correlation by single-bit signal processing was eval- weighted moving average filter was 99 taps. For comparison,
uated by experiments regarding ultrasonic distance mea- the 8-bit received signal was correlated with the 8-bit com-
surement. The experimental setup for ultrasonic distance plex reference signal for interpolation of the cross-correlation
measurement is illustrated in Fig. 4. The frequency of the function.

3604
10
0.2

8
Amplitude [V] 0.1

Probability [%]
6
0

4
-0.1

2
-0.2

0 2 4 6 8 10 0
0.999 1 1.001
Time [ms] Distance [m]
(a)
Fig. 6. The cross-correlation function obtained by single-bit signal
100
processing in experiments.

80

Probability [%]
The cross-correlation function obtained by single-bit sig-
nal processing is illustrated in Fig. 6. The cross-correlation 60
function in Fig. 6 has two peaks, which correspond to the
peaks from the LFM signal transmitted from the loudspeaker 40
and from the LFM signal reflected from the wall, respec-
tively. The TOF of the received LFM signal was estimated 20
from the interval of two peaks in the cross-correlation
function. The distance to the wall was estimated as
0
q 0.999 1 1.001
2 Distance [m]
(T OF · v + d0 ) − d0 2
d= , (4) (b)
2 10
B. Experimental results
8
To evaluate cross correlation by single-bit signal pro-
Probability [%]

cessing, the distance to the wall was estimated in the 500


experiments. The probability distributions of the estimated 6
distance are illustrated in Fig. 7.
The probability distribution of the distance estimated from 4
the cross-correlation function obtained by single-bit signal
processing is indicated in Fig. 7 (a). The average and 2
standard deviation of the estimated distance were 0.999975
m and 193 µm, respectively. The probability distribution
0
of the distance estimated from the real part of the cross- 0.999 1 1.001
correlation function of 8-bit digital signals is indicated in Fig. Distance [m]
7 (b). The average and standard deviation of the estimated (c)
distance were 0.999785 m and 236 µm, respectively. The Fig. 7. The probability distributions of the estimated distance in exper-
probability distribution of the distance estimated from the iments. (a): the distance is estimated from the cross-correlation function
cross-correlation function of 8-bit digital signals interpolated obtained by single-bit signal processing, (b): the distance is estimated
from the cross-correlation function of 8-bit digital signals, (c): the distance
with a linear approximation of the phase is indicated in Fig. is estimated from the cross-correlation function of 8-bit digital signals
7 (c). The average and standard deviation of the estimated interpolated with a linear approximation of the phase.
distance were 0.999974 m and 192 µm, respectively.
The distance errors are thought to have been caused by
fluctuations of air. Cross correlation by single-bit signal V. CONCLUSION
processing can improve the distance resolution without inter-
polation of cross-correlation function with a linear approxi- Distance measurement using cross correlation by single-
mation of the phase. bit signal processing was evaluated by comparison with

3605
conventional digital signal processing, cross correlation of 8-
bit digital signals, and interpolation of the cross-correlation
function with a linear approximation of the phase in ex-
periments. Distance measurement from the cross-correlation
function obtained by single-bit signal processing realized
high distance resolution without interpolation with a linear
approximation of the phase. Therefore, the distance resolu-
tion of ultrasonic distance measurement can be effectively
improved despite the computational ability of autonomous
mobile robots.
R EFERENCES
[1] Y. Nagashima, S. Yuta, “Ultrasonic sensing for a mobile robot to
recognize an environment -Measuring the normal direction of walls-,”
Proc. IEEE/RSJ International Conference on Intelligent Robots and
Systems, Raleigh, NC, U.S.A., vol. 2, July, 1992, pp. 805-812.
[2] K. W. Jorg, M. Berg, “Sophisticated mobile robot sonar sensing with
pseudo-random codes,” Robotics and Autonomous Systems, vol. 25,
no. 3, Nov., 1998, pp. 241-251.
[3] J. Klahold, J. Rautenberg, and U. Ruckert, “Continuous Sonar Sensing
for Mobile Mini-Robots,” Proc. the 2002 IEEE International Confer-
ence on Robotics and Automation, Washington, DC, U.S.A., vol. 1,
May, 2002, pp. 323-328.
[4] D. Marioli, E. Sardini, and A. Taroni, “Ultrasonic distance measure-
ment for linear and angular position control,” IEEE Trans. Instrumen-
tation and Measurement, vol. 37, no. 4, Dec., 1988, pp. 578-581.
[5] D. Marioli, C. Narduzzi, C. Offelli, D. Petri, E. Sardini, and A. Taroni,
“Digital Time-of-Flight Measurement for Ultrasonic Sensors,” IEEE
Trans. Instrumentation and Measurement, vol. 41, no. 1, Feb., 1992,
pp. 93-97.
[6] M. Pollakowski, H. Ermert, “Chirp Signal Matching and Signal Power
Optimization in Pulse-Echo Mode Ultrasonic Nondestructive Testing,”
IEEE Trans. Ultrasonics, Ferroelectrics, and Frequency Control, vol.
41, no. 5, Sep., 1994, pp. 655-659.
[7] H. Matsuo, T. Yamaguchi, and H. Hachiya, “Target Detectability Using
Coded Acoustic Signal in Indoor Environments,” Jpn. J. Appl. Phys.,
vol. 47, May, 2008, pp. 4325-4328.
[8] T. Fukui, M. Segawa, M. Kurosawa, K. Oka, and T. Higuchi, “A
control system with single-bit digital signal processing,” Proc. 4th Int.
Conf. on Control, Automation Robotics and Vision, Singapore, Dec.,
1996, pp. 1992-1996.
[9] S. R. Norsworthy, R. Schreier, and G. C. Temes, “Delta-Sigma Data
Converters Theory, Design, and Simulation,” IEEE Press, Piscataway,
1997.
[10] S. Hirata, M. K. Kurosawa, T. Katagiri, “Cross-correlation by Single-
bit Signal Processing for Ultrasonic Distance Measurement,” IEICE
Trans. Fundamentals, vol. E91-A, no. 4, Apr., 2008, pp. 1031-1037.

3606

You might also like