Distance Measurement of An Object or Obstacle by Ultrasound Sensors Using P89C51RD2
Distance Measurement of An Object or Obstacle by Ultrasound Sensors Using P89C51RD2
Distance Measurement of An Object or Obstacle by Ultrasound Sensors Using P89C51RD2
1 February, 2010
1793-8201
64
International Journal of Computer Theory and Engineering, Vol. 2, No. 1 February, 2010
1793-8201
V. EXPERIMENTAL RESULTS
A recording of the transmitted and received waveforms
of the ultrasonic signal as displayed on a Digital Storage
Oscilloscope, is shown in Fig. 6.
The transmitted wave is shown on the upper part of the
Fig. 6 and the received wave is shown in the lower part of
the same figure.
Measurements of travel time have been taken for a
number of distances at intervals of 5 cm. Three
measurments have been made for each distance. The
results of the measurement are shown in Table I. The table
Fig. 4: Sensor Module shows the average of the three travel time measurements.
65
International Journal of Computer Theory and Engineering, Vol. 2, No. 1 February, 2010
1793-8201
INT1
Ultrasound
MCU Transmitter
Circuit
T
INT2
Receiver
Amplifier
Display R
Measured Distance
35
Table I: Experimental Results 30
25
S.No. Actual Travel Measured % 20
15
Distance Time Distance Error
10
(cm) (µSec) (cm)
5
1 5 400 6.86 37.20 0
2 10 690 11.83 18.34 0 5 10 15 20 25 30 35 40 45 50 55
3 15 1050 18.01 20.05
Actual Distance
4 20 1250 21.44 7.19
5 25 1650 28.30 13.19
Fig. 7: Graph between Actual Distance and Measured
6 30 1930 33.10 10.33
Distance
7 35 2180 37.39 6.82
8 40 2400 41.16 2.90
VI. CORRECTIONS IN THE MEASUREMENT
9 45 2700 46.31 2.90
10 50 3000 51.45 2.90 The observed errors in the measured distance are due to
many factors. One important factor is the inclusion of
The experimental results for the distance measurement are generation and processing times of the burst pulse signals.
shown in Table I. Fig. 7 shows the graph between actual These are as follows:
distance and measured distance. We observe that there is 1. Time period between the starting of the timer1 and
considerable error in the measured distance as compared to actual time of the transmission of the first pulse of
the actual distance. The %error column also shows similar the burst pulse train by the ultrasonic transmitter.
results. The error is specially large at lower distances of the This happens due to two delays, first the time taken
obstacle. The same error is also observed in the graph of Fig. by the microcontroller to start generating the burst
7 between actual distance and measured distance. pulses and second the time delay introduced by the
amplifier.
2. The reflected signal received by the ultrasonic
receiver sensor is passed on to the receiver amplifier,
which amplifies it and generates the interrupt signal
INT2. This is applied to the microcontroller.
The above time periods are also included in the measured
travel time. Hence these time periods have been calculated
and their sum deducted from the measured travel time. This
has been shown as corrected travel time in Table II, which
shows the corrected experimental results.
66
International Journal of Computer Theory and Engineering, Vol. 2, No. 1 February, 2010
1793-8201
67
International Journal of Computer Theory and Engineering, Vol. 2, No. 1 February, 2010
1793-8201
68