Next Article in Journal
Efficient Self-Supervised Metric Information Retrieval: A Bibliography Based Method Applied to COVID Literature
Previous Article in Journal
A Novel High-Q Dual-Mass MEMS Tuning Fork Gyroscope Based on 3D Wafer-Level Packaging
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Methods of Precise Distance Measurements for Laser Rangefinders with Digital Acquisition of Signals

Institute of Optoelectronics, Military University of Technology, 2 S. Kaliskiego Street, 00-908 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(19), 6426; https://doi.org/10.3390/s21196426
Submission received: 5 August 2021 / Revised: 21 September 2021 / Accepted: 21 September 2021 / Published: 26 September 2021
(This article belongs to the Section Optical Sensors)

Abstract

:
The article presents methods of long range distance measurements using pulsed lasers and the Time of Flight principle. Various algorithms of laser distance measurements with digital acquisition of echo pulses (acquisition of a signal’s full waveform) are presented. The main focus of work is concentrated on the method of distance measurements developed by the authors. With this method, during laboratory trials, a total measurement error of one centimeter was achieved using a 905 nm pulsed laser diode and pulse width of 39 ns. The maximum range of measurements with such high precision is limited only by a signal to noise ratio, duration of measurements and atmospheric conditions. All algorithms were implemented in a laser rangefinder module developed by the authors. Simulations and laboratory experiments were conducted and algorithm’s accuracy and precision were tested for various SNR conditions and changing distances.

1. Introduction

The present work is connected with an effort to develop a method of remote distance measurements that is characterized by an uncertainty that is low enough to allow remote measurements of the speed of vehicles with the total error no greater than 1 km/h. This requirement results from the Polish legal regulations relating to laser devices used in law enforcement [1]. It was also assumed that the maximum range of measurements has to be grater then 600 m, and that measurements of the speed of vehicles that are not equipped with retroreflective license plate were possible. It means measuring to any surface of the vehicle (windshield, painted surfaces, plastic parts, etc.). As a result of those requirements, we have decided to develop a measuring device that uses pulsed laser as a radiation source and performs acquisition of the full waveform of returning echo signals. Because laser measurements of vehicle speed are based on measurements of its displacement in a given time, the simplest way to do them is to measure distance to the target twice (or usually many more times) in a set time interval. Precision and accuracy of such measurement of speed strongly depend on the precision and accuracy of measurements of each distance. Through basic calculations, it is easy to derive that the required uncertainty of measurements of distance should fall in the range of centimeters when total duration of measurement of the speed doesn’t exceed half a second [1,2]. Beside two mentioned parameters—precision and accuracy—another crucial parameter of distance measurement is its maximum range. All three parameters depend on the chosen measurement method, among which exist methods based on measurements of the phase shift between transmitted and received FMCW signals (Indirect ToF) [3,4] and, whenever longer ranges are needed, methods based on measurements of the probing light pulse roundtrip Time of Flight to the target (Direct ToF) [5,6,7]. In the presented work, the pulsed Time of Flight method was chosen to allow long range measurements.
In order to be able to safely use the designed device on public roads, we had to comply with eye safety regulations defined in adequate standards [8]. To do so, we have chosen a laser diode working at 905 nm in the class 1 limits of accessible laser emission. For such conditions, basic ToF methods that use direct detection (DD) of incoming echo signals have ranges limited to less than 200 m (when target reflectivity is close to 10%). In order to extend the range of measurements beyond the limit of direct detection, we have decided to use multi pulse coherent addition of signals (aka. multi-pulse coherent superposition) [9,10]. This required taking a series of measurements and synchronously adding recorded waveforms together in order to reduce noise. Beside noise reduction, coherent addition also significantly reduces the influence of asynchronous interferences. This is a desirable feature in police speed guns, as cars may have jamming devices installed by owners that easily interfere with measurements done by direct detection devices. It also makes measurements immune to interferences caused by other devices that emit infrared pulses such as other measurement devices or lidars on autonomous cars. Implementation of coherent addition method requires analog to digital conversion of returning signals, and the use of ADC converters is inevitably associated with loss of continuity of recorded signals due to quantization and discretization. This introduces extra noise in the signal and - without additional countermeasures - affects precision of a rangefinder with full waveform acquisition of signals (also called “full waveform LiDAR”). In the presented work we were using an ADC converter that was chosen optimally in terms of its cost, design simplicity and its sampling rate and was suitable for use in handheld laser speed guns. Because of the discretization error introduced by the chosen ADC, which was greater than the allowable total measurement error, we had to recreate signal’s continuity in both domain and codomain to precisely measure ToF. In this article, we present the method of accurate and precise determination of distance that was developed by us and compare it in simulations and laboratory experiments with simpler methods to assess its effectiveness. In the following sections of this article, selected analogue and digital methods of generation of the START and STOP signals are presented. In Section 3, we will discuss the proposed algorithm of measurements and analyze its precision. In Section 4 results of simulations, and in Section 5 results of laboratory experiments, are shown.

2. Methods of Generation of the START and STOP Signals for Digital Counters in Laser ToF Measurements

As mentioned earlier, correct measurement of distance, by means of measuring the Time of Flight of light pulses, require precise generation of START and STOP signals that are used to control timers. The timing point (moment) when generation of START and STOP signals should occur is a result of observation of different characteristic points on the waveform of received signals [6]. There are many measurement methods [9,11,12] to perform this task that can be classified into three main groups that derive the moment of generation of STOP signals from:
(a)
Peak Detection,
(b)
Constant Threshold Detection,
(c)
Adaptive Threshold Detection.
The Constant Threshold Detection (also called “leading edge discrimination” [11]) method is used in the simplest hardware implementations of direct ToF measurements. In this method, generation of START and STOP signals is based on comparison of the voltage of signal coming from the receiver with constant reference voltage (threshold). The main disadvantage of constant threshold detection is that the moment of generation of STOP is dependent from changes in the power of received pulse (see tCT1 and tCT2 in Figure 1). The purpose of more complex measurement methods is to ensure the independence of STOP signal generation time from those changes. This is a prerequisite for high measurement accuracy and elimination of the so-called walk error [7]—the dependence of measurement results from changes of peak power of received signals. This independence can be achieved, i.e., by linking generation of STOP signals with the time when peak voltage is detected (Peak Detection) or by the use of a comparator with an adaptive (variable) threshold. For analog signals, the peak detection can be implemented using a differentiating circuit and zero crossing detection of signals (detection of zero of the first derivative of a signal). The circuit implementing this method is called a high-pass timing discriminator [5]. The Adaptive Threshold is usually set to follow the changing value of the signal’s peak voltage. It can be implemented using a voltage divider that is constantly setting the reference (threshold) voltage to a fraction (i.e., half) of the peak voltage of received pulses. It can also be implemented using delay lines to delay the incoming pulse (usually, by the value of its full width at half maximum) and compare it with the original signal (see Figure 1—Adaptive Threshold—edge of delayed signal). The Adaptive Threshold method is also called “constant fraction discrimination” [11,13,14]). Figure 1 shows the characteristic features of the modeled waveform of a laser pulse signal along with names of methods that base on detection of their appearance.
Above methods can also be used for echo signals recorded in a digital form; however, the discontinuity of digital signals in the time domain and quantization errors can have a significant impact on the accuracy of measurements. In Figure 2, by analogy with Figure 1, the characteristic points of presented detection methods, that were applied to a digital signal, are shown. Similarly to the analog domain, in the digital domain, the Constant Threshold is implemented through searching of the position of the firs sample that has value greater or equal to the chosen threshold value. Peak Detection is implemented through searching of a sample that has the largest value in the recorded signal. Heaving the value of a peak sample of the signal opens the possibility to implement Adaptive Threshold method by simply setting the detection threshold to its chosen fraction.
Obtaining precise time measurements with described methods requires either high-frequency sampling or generation of very short probing pulses, which in both cases increases the complexity of transceiver elements of the device. Typical semiconductor lasers, suitable for the discussed methods, are able to emit light pulses with a duration of a few to several dozen nanoseconds, so their detection requires use of broadband optical receivers. Shortening of the width of a probing pulse is associated with the need of a system bandwidth extension. Unfortunately, by doing so, we increase the receiver’s noise level, its sensitivity to interferences and the complexity of the electronic circuitry (the need to implement fast analog to digital converters). Thus, the effective use of an analog to digital conversion of signals in laser rangefinders calls for the development and use of measurement algorithms that differ from the ones presented so far. One of the ways of handling digital signals is to restore their continuity by chosen approximation or interpolation algorithms [6]. This approach is at the heart of the least square approximation with a second degree polynomial (SDPA) that is the main subject of this article and will be presented in Section 3. Beside using approximation, increase in the precision of measurements (Peak Detection) is possible by using signal samples to calculate the weighted average (WA) of their x coordinates. This method is presented in Figure 3.
The result of such calculations is an xs coordinate of the pulse’s “center of gravity” that approximates the position of the real peak of the signal. The weighted average of signal samples is one of methods that were used as a comparative method during the research.

3. Improving Precision of Measurements with Least Square Approximation of Pulse Samples with a Second Degree Polynomial

The presented method is based on the least square approximation of the shape of a digitally recorded echo signal of a light pulse. The chosen approximating function is a quadratic function (second degree polynomial), as it reassembles the shape of a laser pulse and is easy to calculate. The approximation is performed on the selected subset of N recorded samples that is expected to contain the returning echo of a probing pulse. This subset can be selected using constant or adaptive threshold discrimination methods. Approximation is performed using the least square method and returns coefficients of y(x) quadratic function (parabola) that represent a mathematical model of the received pulse. Distance measurements are based on the determination of the xs coordinate of the peak of the y(x) function. Approximation of sampled echo signal with the second degree polynomial is illustrated in Figure 4. Throughout the article, this method is named “second degree polynomial approximation” and abbreviated as SDPA. Two variants of the SDPA algorithm are presented: one is called by the authors a “simple SDPA” and is marked as SDPA-S. The other variant is a method developed by the authors and called a “modified SDPA” (SDPA-M).
In Figure 4, the discrete representation of the received signal is a sequence of samples with their values marked as yi, for (i = 1, 2, …, N), obtained by sampling and recording of a signal at xi discrete moments. In the discussed method, it is assumed that the approximation of the real echo signal is a second-degree polynomial function described as:
y ( x ) = a 2 x 2 + a 1 x + a 0
where: y(x) is a function describing the approximating polynomial; a0, a1, a2 are coefficients of the determined polynomial, x∈R is the domain of the approximating polynomial.
In order to find the coefficients of the polynomial that best approximates the echo signal, we minimize the mean square error criterion defined as:
S = i = 1 N ( y ^ i y i ) 2   m i n
where: N is the number of selected signal samples, yi is the value of the sample ‘i’, y ^ i is an estimator of the expected value of the ‘i’ sample (the value of the approximating function y ^ ( x ) calculated for xi).
When approximating with a second-degree polynomial, the formula (2) can be written as:
S ( a 0 , a 1 , a 2 ) = i = 1 N ( a 2 x i 2 + a 1 x i + a 0 y i ) 2   m i n
where: S ( a 0 , a 1 , a 2 ) is the mean square error dependent on coefficients of the polynomial.
The condition of minimizing the mean square error is satisfied when partial derivatives of the function S(am) (m ∈ {0,1,2}) equal zero. Although not necessary to calculate the parabola’s apex position, the formula for a0 was also shown below for clarity:
S ( a 0 , a 1 , a 2 ) a 0 = 0 2 i = 1 N ( a 0 + a 1 x i + a 2 x i 2 y i ) = 0
S ( a 0 , a 1 , a 2 ) a 1 = 0 2 i = 1 N ( a 0 x i + a 1 x i 2 + a 2 x i 3 y i x i ) = 0
S ( a 0 , a 1 , a 2 ) a 2 = 0 2 i = 1 N ( a 0 x i 2 + a 1 x i 3 + a 2 x i 4 y i x i 2 ) = 0
The above equations can be written in matrix form and solved for coefficients of the approximating polynomial:
( X X ) · A Y X = 0
A = ( X X ) 1 · Y X
A = ( X X ) D · Y X D e t ( X X )
where:
[ N 1 N x i 1 N x i 2 1 N x i 1 N x i 2 1 N x i 3 1 N x i 2 1 N x i 3 1 N x i 4 ] = X X · [ a 0 a 1 a 2 ] = A · [ 1 N y i 1 N y i x i 1 N y i x i 2 ] = Y X
( X X ) D is a transposed matrix of algebraic complements [ ( X X ) ij]T.
When all coefficients of the polynomial are calculated, the problem of determining the distance comes down to calculation of the position (incidence time) of the peak of the approximated parabola. Signal samples are a set of N out of all recorded samples chosen with threshold discriminator and described by a pair of values (xi, yi). We find position xs of signal’s maximum by looking for zero of the first derivative of approximating function:
y ( x s ) = 2 a 2 x s + a 1 = 0 x s = a 1 2 a 2
Position of the signal’s peak derived from (10) refers to the position in sample’s indexes domain. Transition to the time domain is determined by the relation:
t S T O P = x s · T = x s f s
where: tSTOP [s] is the time of “STOP” signal generation, xs is the position of the maximum of the approximated parabola in the domain of sample indices, T [s] is the sampling period, fs [Hz] is the sampling frequency.
The relationship between calculated roundtrip time of the pulse and distance to the target is given by the formula:
s = c a i r 2 · ( t S T O P ) = c / n a i r 2 · ( x s · T ) = c / n a i r 2 · ( a 1 2 a 2 · T )
where: s [m] is the calculated distance, c [m/s] is the speed of light in a vacuum, cair [m/s] is the speed of light in the air, nair is the index of refraction of air (nair = 1.0003).
Calculation of distance in a real device requires performance of the following steps:
(1)
detection of presence of the echo pulse signal using the chosen detection method; i.e., using constant threshold discrimination,
(2)
constitution of the set of N samples of echo pulse, which values are greater than the chosen threshold,
(3)
calculation of parabola coefficients using solution of formula (9),
(4)
calculation of distance using formula (12).

Analysis of Uncertainty of Presented Method

Variance and standard deviation of polynomial coefficients are calculated from:
σ a 0 = V a r ( a 0 ) = σ y 1 N x i 2 1 N x i 4 ( 1 N x i 3 ) 2 D e t ( X X )
σ a 1 = V a r ( a 1 ) = σ y N 1 N x i 4 ( 1 N x i 2 ) 2 D e t ( X X )
σ a 2 = V a r ( a 2 ) = σ y N 1 N x i 2 ( 1 N x i ) 2 D e t ( X X )
The σ y coefficient represents the standard deviation of a random noise affecting the value of every sample of a recorded signal; in other words, it can be viewed as an RMS value of the noise in the electronic circuits of the receiver.
As it was stated, in order to calculate the distance, we are looking for coordinates of the apex of the approximated parabola using Equation (10). It is clear that uncertainties σa1, σa2 of coefficients a1 and a2 affect the uncertainty of determination of distance xs. According to the law of propagation of uncertainty, the uncertainty u x s of xs can be calculated from the formula:
u x s = ( 1 2 a 2 σ a 1 ) 2 + ( a 1 2 ( a 2 ) 2 σ a 2 ) 2
where: uxs is the uncertainty of xs; σa1, σa2 are the standard deviations of a1 and a2.
Similarly to the formulas given in (12), the uncertainty calculated using formula (16) is directly proportional to the uncertainty of the distance measurement:
u s = c a i r · T 2 ( u x s ) = c a i r 2 · f s ( u x s )
where: us is the uncertainty of the distance measurement.
Formulas (13)–(17) link the distance measurement uncertainty with the properties of recorded echo signals such as Signal-to-Noise ratio and the number of recorded samples based on the relationship between the pulse width and sampling rate. This allows for the estimation of the precision of designed devices while having only basic parameters of used components such as a laser pulse’s peak power and FWHM, clocking the frequency of used analog to digital converters and the expected SNR of the echo signal. In the following section, results of computer simulations that evaluate the effectiveness of formula (17) and the influence of parameters of the signal on the total uncertainty will be shown.

4. Simulations

4.1. Description of Simulation Assumptions

For the purpose of theoretical analysis, the shape of the incident echo of the probing light pulse is often featured with the Gaussian curve (aka “bell curve”). The slopes of a bell curve are symmetrical in relation to its peak value, and the function extends from negative to positive infinity. Although popular, the approximation of the “shape” of a light pulse with Gaussian function has some drawbacks. The most important is the complexity of a function itself, which requires some computational effort. For the purpose of performed simulations, another function was chosen: a half period of a cosine squared function. It should be noted that actual light pulses generated and processed in laser rangefinders are most often characterized by a lack of symmetry between the rise and fall times of signal’s slopes and the rising slope is usually steeper than the falling one. Still, symmetrical approximation simplifies the analysis and is used in the simulations presented in this article. The presented methods of distance measurements have been implemented and simulated in the MATLAB environment. In order to conduct comparative tests, a waveform imitating the echo signal of a laser pulse was generated. The signal sampling frequency was equal to fpr = 333 MHz, which means that the time between the acquisition of samples was T = 3 ns. Values of samples of the simulated echo pulse were determined using function:
y i = f ( x i ) = A · c o s 2 ( π 2 · τ · f s · x i ) + N ( 0 , σ y 2 )  
where:
xi ∈ 〈⌈-fs∙τ⌉,⌊fs∙τ⌋〉 ∩ xiZ+ is the domain of the f(xi) function,
yi is the value of the i-th sample of the generated pulse,
A is the peak value of generated pulse,
i is the ordinal number of the currently generated sample, i ∈ {1,2...nsig},
nsig = 2∙⌊τ∙fs⌋ is the required number of samples included in the generated signal,
⌈ ⌉, ⌊ ⌋ is the “ceiling” and “floor”, round up and down operators.
N(0,σy2) is a random, normally distributed noise with mean value 0 and variance σy2.

4.2. Examination of the Influence of Changes in Signal to Noise Ratio (SNR) and Pulse’s Full Width at Half Maximum (FWHM) on the Total Measurement Error of SDPA Method

In order to validate SDPA algorithms that were presented in Section 3, simulations of distance measurements with various pulse width and signal to noise ratio were performed. Signals were generated using the formula (18) and combined with normally distributed random noise to simulate the real life echo pulses registered by the rangefinder. For each set of signal parameters, an N = 1000 simulations were performed, each with a new set of “noise” values added to signal samples. To calculate a distance, the simple polynomial approximation algorithm (11) was used for each dataset selected via fraction discrimination method. From the gathered data, the mean value of a measured distance:
s ¯ = n = 1 N s n N
and its standard deviation:
σ s = n = 1 N ( s n s ¯ ) 2 N 1
were calculated. Both results were compared with the values obtained using formulas (15) and (16). Five different scenarios were tested, each with different set of parameters of the signal. The parameters are presented in Table 1. In bold are parameters that are similar to the parameters of the range finder module used in laboratory trials.
In Figure 5, the three simulated pulses with noise added to achieve the required signal to noise ratio are presented. All signals were used in trials 1, 2 and 3.
The results of simulation trials are presented in Table 2.
The results show that the largest difference between calculated uncertainty us and σs obtained from the trial is no greater than 4%. Thanks to formulas (13)–(18), it is possible to calculate the measurement uncertainty of the SDPA method when having parameters of only a single recorded pulse and without the need to perform numerous trials. By comparison of the results from trial 1 to 3 with trials 4 and 5, it can be noted that the expected relation between measurement uncertainty and SNR was confirmed and uncertainty drops with the increase in SNR. Another conclusion that can be drawn is that uncertainty is directly proportional to the pulse width. Although not tested in this simulations, it is well known that the uncertainty will be inversely proportional to the sampling rate of an ADC.
The main goal for trials 1 to 5 was to validate the correctness of formulas (13)–(18), which bind the relationship between the uncertainty of distance measurements performed with SDPA algorithm with the available quantity N of samples of the echo pulse and their relation to electrical noise of the receiver (σy). Therefore, for each trial performed, the simulated “distance” of the pulse was constant and known, so that all the recorded samples of the signal were used as input data for the SDPA algorithm. However, in real life, things look different, and the first thing a rangefinder must perform in order to calculate the distance is to find the “location” of the echo of the probing pulse and select the right set of signal samples. This task is usually performed with the constant threshold detection method that is performed either on analog or digital signals fed by the receiver. In the next section of the article, simulations of changing distances are shown so that the influence of the threshold detection and samples selection on measurement error can be analyzed.

4.3. Examination of the Influence of Changes in Distance on the Total Measurement Error—Comparison of Results Given by Different Distance Calculation Algorithms

In order to examine the influence of sampling and pulse samples selection on the outcome of the distance calculation algorithms, a series of simulation tests was carried out. The set distance was changed within the range of 1.5 m with 1 cm resolution. This ensured that every relationship between the position of the true signal peak and moments of samples collection was covered. The set SNR was very high, so the influence of noise on measurement error could be neglected. Figure 6a shows resulting plots of total distance measurement errors ∆s as a function of set distance. Tested algorithms where based on the peak detection (PD), calculation of weighted average (center of gravity) of the recorded pulse (WA) and least square approximation of the shape of a laser pulse with the second degree polynomial (for both SDPA-S and SDPA-M).
Conducted simulations have shown the strong influence of distribution of signal samples on the results of distance calculations (in relation to the true position of the peak of a signal that marks the correct range). Beside good measurement precision achieved thanks to very high SNR, the results of measurements were inaccurate. It was noticed that for every examined method of distance calculations, errors caused by changes in the peak position and phase of the sampling clock are not random, but cause bias error, which value is related to a time interval Δx between the peak of a true signal and the last sample acquired before it. Changes in measurement bias error were periodic and their plot had a sawtooth shape with a period equal to the period of a sampling clock.
The total error Δs of measurements done with presented algorithms can be seen as a conjunction of two sources of error. One is “responsible” for precision of measurements and can be modeled with normal distribution. For the SDPA algorithm, its standard uncertainty value us can be calculated using formulas (13)–(18). The expanded uncertainty (total uncertainty) Us = 3·us can be calculated to model the total measurement error Δs. The second contribution to the total measurement error is caused by the bias error Δebias, which can be modeled with the uniform distribution. In the presented work, its distribution bounds <a,b> were estimated from the experimental results. The total error of measurements of distance can be noted as:
Δ s =   Δ s b i a s +   Δ s p r e c i s s i o n
where:
sprecission is the error caused by the noise in the signal,
sbias is the bias error,
The total uncertainty of measurements of a distance can be modeled as expanded uncertainty Us:
Δ s U s = 3 · V a r ( e p r e c i s i o n ) + V a r ( e b i a s )  
where:
eprecision ~ N(0,us2) is the normally distributed part of uncertainty of a distance measurement caused by the noise,
ebias ~ U(a,b) is the systematic error, uniformly distributed within the range <a,b>,
V a r ( e b i a s ) = 1 12 ( b a ) 2
V a r ( e p r e c i s i o n ) = ( u s ) 2 = ( σ s ) 2
So, the total measurement uncertainty Us can be calculated from:
U s = 3 · ( σ s ) 2 + ( 1 12 ( b a ) 2 )
In Table 3, the total uncertainty Us of presented algorithms calculated from simulated measurements using formula (25) is shown. Because of the high signal to noise ratio set during simulations, the total error is dominated by the bias error caused by differences in the number of selected samples and their distribution around the true peak of the echo pulse, so the results shown in Table 3 are a close resemblance to a bias error alone.
The bias error of the simplest method (peak detection (PD)) was directly proportional to the value of the signal sampling period. For the period of T = 3 ns that was assumed in the simulation, the theoretical, maximum distance measurement error Δs (resulting from the discretization of the signal) equals 22.5 cm. This value corresponds to the one observed in the simulations and estimated in Table 3. Total uncertainty of measurements drops three times thanks to the use of the weighted average algorithm (WA), and twenty-five times thanks to the simple polynomial approximation algorithm.
The explanation of the sawtooth bias error ebias that is caused by the threshold selection of samples is shown in Figure 7. It illustrates four different cases that are significant in terms of changes in the number of samples that exceed the threshold (marked with green). The red dotted line shows the value of a threshold. It is set to 50% of the signal peak value (Threshold to Signal Ratio TSR = 0.5). When the sample exceeds the threshold, it is qualified as belonging to the echo pulse. Samples exceeding the threshold constitute a set of input data for the algorithms that calculate the distance, like weighted average (WA) and polynomial approximation (SDPA). In order to reduce the bias error caused by differences in the distribution of samples, efforts were taken to develop an algorithm that counteracts their influence. The modified sample selection algorithm was developed and used with the SDPA approximation algorithm that enabled significant improvement in the measurement accuracy in relation to the simple approximation (SDPA-S) and other methods. The main idea behind this algorithm was to process a single recorded signal multiple times and each time change the value of the threshold used to select the set of input samples for distance calculation algorithms. Doing so produces a set of results that should be averaged to eliminate the bias error. The basic principle of this algorithm is shown in Figure 8.
Presented method was named by the authors the “modified algorithm of pulse shape approximation with second degree polynomial” or simply “modified second degree polynomial approximation” (SDPA-M). Results of measurement error of SDPA-S and SDPA-M obtained during simulations are shown in detail in Figure 6b. From the results shown in Table 3 the reader can see that by using the SDPA-M algorithm, the total uncertainty was reduced almost 200 times in comparison with the PD method. Although the SDPA-M method was invented and tested for use with the polynomial approximation algorithm, it is expected that it will also be useful in eliminating the bias error of the weighted average (WA) algorithm. In the presented example, the threshold value was changed 5 times. Each time, the xsi coordinate of the peak of the approximated parabola was calculated. All five results were averaged to yield xs value with reduced bias error.
The price to pay for elimination of the bias error is computational effort. It increases significantly when the distance is calculated using the SDPA-M algorithm because the approximation and calculation of the position of the apex has to be done numerous times. For each calculation, also slight modifications in the dataset have to be done. Simple MATLAB tests of the algorithm duration show that pure parabola approximation and calculation of the apex position on a moderately fast PC lasts a few dozen microseconds. The weighted average (WA) algorithm is roughly 20 times faster than SDPA-S. On the other hand, performing multiple calculations with the modified parabola approximation algorithm can take hundreds of microseconds or even a few milliseconds. The computational effort is worth taking when high precision and accuracy are needed and the SNR is sufficiently high, so the error caused by noise does not dominate over the bias error.
Simulations have shown that the measurement error for input signals with a high signal to noise ratio can be as low as 1 mm; however, in practice, obtaining such high accuracy and precision is extremely difficult due to the increasing influence on the final measurement results of factors like electromagnetic disturbances (both synchronous and asynchronous), the instability of light pulse emitters, background light and atmospheric phenomena. Considering real life measurements, several uncertainty factors resulting from the “outside world” in general should be added to the total uncertainty budget [15]. Those uncertainties can be caused by turbulent atmosphere, the shape of a target [16] or vibrations of a transceiver that cause minor changes in the distance to the target. This uncertainty is usually modeled with normal distribution and the device can reduce it through averaging multiple measurements. It is worth remembering that atmospheric conditions that influence the strength of the echo signal, as well as target reflectivity, are modeled by the influence of the signal to noise ratio (SNR) on the standard uncertainty us.
In the presented article, errors caused by “outside world” factors were not analyzed, as the main goal of the research was to develop a method with precision and accuracy high enough not to dominate the overall uncertainty budget acceptable for devices designed for remote measurements of the speed of vehicles.

5. System Tests and Experimental Results

5.1. Description of the Test Stand

The aim of the research was to experimentally confirm results obtained during theoretical analyses and simulations, which indicated the possibility of increasing ToF distance measurement accuracy by approximation of the recorded echo pulse signal with a second-degree polynomial.
The laser rangefinder module used in the experiment was designed and built in the Institute of Optoelectronics of the Military University of Technology. It uses a 905 nm pulsed laser that emits 39 ns pulses. Pulse energy equals 0.5 μJ. The rangefinder was connected to a PC with dedicated software that enabled processing of the raw signal data. During tests, the distance to the target and measurement error was determined. Measurements were performed to targets with different, known reflectance.
The measuring stand included:
-
a laser rangefinder module with a sighting scope (Figure 9),
-
an optical bench with a millimeter scale,
-
targets with precisely defined reflectance,
-
a computer with an application for system control, data processing and displaying of the results,
-
a power supply.
The diagram of the stand is shown in Figure 10.
In order to examine the influence of the changes in the signal to noise ratio (SNR) on the error of distance measurements, it was assumed that the variable parameter (influencing the peak value of received signals) will be the reflectance of targets. Used targets and their corresponding reflectance for the wavelength λ = 905nm are shown in Figure 11.

5.2. Methodology of Experiments

The essence of the experiment was to measure differences between set distances (expected value) and measurement results obtained with the laser rangefinder module. PD, WA, SDPA-S and SDPA-M distance measurement algorithms were implemented in the module. The base distance from the target was set as b = 43.5 m. The optical bench was positioned along the axis perpendicular to the target. The beginning of the nominal scale on the bench was set at the base distance from the target. Successive measured distances were set by moving the module away from the base distance by a n number of Δdstep steps.
s e t   d i s t a n c e = b a s e   d i s t a n c e + d i s p l a c e m e n t = b a s e   d i s t a n c e + ( n s e t _ s t e p ) d = b + n · Δ d step
Four measurement cycles were carried out. During each cycle, the target with different reflectance was used. As part of each cycle, a series of 50 measurements was performed for each set distance. A single distance measurement consisted of 1024 laser pulse emissions and recordings of each echo signal. The recorded echo signals were synchronously summed. The purpose of using the coherent addition of signals was to reduce the influence of laser pulses generation jitter on the total measurement error. For each of the tested algorithms, the standard deviation of measurement uncertainty was calculated.
A single step Δdstep in the change of distance was equal to one centimeter when measurements were taken to a high reflectance target, and two centimeters to targets with low reflectance. The total change in measured distance was Δd = 1.5 m (between 43.5 m and 45 m). The clock frequency of the analog-to-digital converter was fpr = 333 MHz. This means that the resolution of the recorded digital signal, expressed in the distance domain, was equal to Δr = 0.45 m. The value of the quotient Δdr illustrates how many times during the change of distance by 1.5 m the actual peak of the signal is aligned with the sampling clock. For a given experiment’s assumptions, the real position of the peak moves between three samples, so that every possible difference between the phase of a sampling clock and peak position was covered. Parameters of individual experiments are shown in Table 4.

5.3. Results

Figure 12 presents some exemplary plots of the real recorded signal pulses with different SNR. Plots were acquired by making measurements of the same distance, but for different targets (shown in Figure 11). The difference in the signal peak value is clearly visible.
Plots in Figure 13 show the distance measurement results obtained in the four tests that were performed. During each test, four distance measurement algorithms were tested that were based on:
-
peak detection (PD): finding the time of occurrence of the sample with the maximum value,
-
weighted average (WA): calculation of the “center of gravity” of selected signal samples,
-
approximation with a second-degree polynomial, simple set of samples (SDPA-S): finding the position of the apex of parabola approximated on the set of echo signal samples selected using the simple threshold discrimination method,
-
approximation with a second-degree polynomial, modified set of samples (SDPA-M): finding the average position of the apex of parabola approximated on multiple sets of signal samples selected by the modified sample qualification method.
The reference line that shows ideal measuring results is marked with green color. The purple line marks results obtained with the peak detection (PD) algorithm. The yellow line shows results obtained with weighted average (WA) algorithm. The blue and red lines represent results obtained by algorithms of approximation with the second degree polynomial with, respectively, a simple and modified samples qualification method. Presented plots clearly show that results of the PD method are strongly dependent on the sampling frequency, and the height of the “steps” in Figure 13 represents the distance traveled by the light pulse during one sampling period. The weighted average algorithm is used as a reference method for the SDPA methods. It is less demanding in terms of computational effort and therefore is useful when fast calculations are needed.
Figure 14, Figure 15, Figure 16 and Figure 17 show total error of measurements performed in each trial. Total measurement error e was calculated for each gathered data point using formula:
t o t a l   e r r o r   o f   m e a s u r e m e n t = s e t   d i s t a n c e m e a s u r e d   d i s t a n c e e = d s
The measurement uncertainty Us of each algorithm was estimated using formula (25). Results of calculations are shown in Figure 18 and Table 5.
Analysis of experimental data reveals that the measurement uncertainty of the presented methods consists of the uncertainty caused by the noise and a bias (systematic) uncertainty caused by the chosen method of selection of samples. The modification of the simple SDPA algorithm developed by the authors has significantly reduced this bias error to the level when the total uncertainty of the laboratory measurements (Table 5) is convergent with simulations (Table 2, trial 1 and 4). Differences in the results are thought to be caused by the synchronic disturbances in the real life signal that make the noise distribution differ from the normal distribution and affect the shape of the pulse. Experiments have shown that for signals with high SNR, it is possible to measure the distance with total uncertainty of 1 cm with relatively wide laser pulses (FWHM = 39 ns). All that is thanks to the method of processing of the recorded signals developed by the authors (SDPA-M). The less computation time consuming method SDPA-S also provides superior accuracy over standard detection methods, and is suitable for applications in accurate laser rangefinders and speed guns. The price for high accuracy and precision of presented approximation algorithms is computation time. Obtained experimental results show that for noisy return signals, even the simpler and less demanding methods (SDPA-S, WA and even peak detection) give similar results to “modified polynomial approximation”. It can be noticed that from SNR = 200 down to SNR = 30, the SDPA-S and SDPA-M give similar results. When SNR drops to 30, the uncertainty becomes almost the same for Weighted Average and both SDPA methods. We have further tested the validity of application of the presented algorithms under a deteriorating signal to noise condition down to the SNR value of 6. As was expected, we have observed that the uncertainties of all methods significantly increased and an error caused by the noise dominated. For SNR = 6, the uncertainty of the SDPA-M algorithm has turned out to be the worst among all of the presented methods. According to the obtained results, achieving high measurement precision while using the SDPA-M algorithm is possible when the signal to noise ratio is high (SNR ≥ 180). It is up to the system developer to decide which method to use depending on the expected SNR of returning signals and the dynamic range. The WA method showed some interesting behavior for measurements with SNR = 631 and SNR = 1525. The expected increase in measurement accuracy for higher SNR was not confirmed in the tests. The probable reason for this was the asymmetry (the rising edge is faster than the falling one) of the real received signal pulse that for certain noise levels causes falling edge samples to be more vulnerable to fluctuations when threshold selection of the signal samples is performed.

6. Conclusions

The article presents methods of distance measurements using laser rangefinders with digital acquisition of echo signals and the pulsed Time of Flight principle. The new algorithm that was developed by authors, called “modified second degree polynomial approximation” or SDPA-M, was shown and its measurement uncertainty results were compared with three popular algorithms: peak detection (PD), weighted average (WA) and simple parabola approximation (SDPA-S). Simulations and experimental studies were conducted, showing the accuracy limits of each method in various signal to noise conditions and over various distances. The SDPA-M method has proven superior effectiveness over other methods in low noise conditions (SNR > 180). During simulations, the achieved minimal total error was equal to Δs = 1 mm. During experiments, the estimated uncertainty of the SDPA-M algorithm was calculated as Us = 1 cm. Two main factors contributing to the total measurement uncertainty were identified: noise that causes decreasing precision, and sampling, which causes bias error (inaccuracy). It has been shown that the SDPA-M algorithm can greatly reduce this bias error. Because all presented algorithms are based on the digitally recorded signals, it is possible to implement digital signal processing methods in order to improve the signal to noise ratio. The most useful algorithms are digital filtration and coherent addition of multiple recordings of signals. Improvement of SNR by coherent addition either increases the device’s maximum range of measurements or allows measurements to be performed to poorly reflecting targets. Thanks to the use of the presented methods and algorithms, it is possible to accurately measure the range to a target over long distances and to any selected point on the target. Simulations and test of the developed SDPA-M algorithm have proven that it meets all given assumptions required for remote laser measurements of speed down to SNR~200. For the price of increasing electronic circuit complexity, its precision can be improved by using analog-to-digital converters with higher sampling rates. Presented second degree polynomial approximation has proven to be sufficient for the given task of allowing laser measurements of the distance with the precision and accuracy of a few centimeters. Such high precision of the generation of STOP signals allows not only for accurate laser distance and speed measurements, but also can be used anywhere there is a need for a laser pulse to carry information about time (i.e., pulsed laser free space optics communications or optical IFF (Identification Friend or Foe) devices).

Author Contributions

Conceptualization, M.M. and M.Z.; methodology, M.M. and M.Z.; software, M.M., P.K. and T.D.; validation, M.M., M.Z. and T.D.; formal analysis, M.M.; investigation, M.M., P.K., T.D. and M.J.; resources, P.K., T.D. and M.J.; data curation, M.M.; writing—original draft preparation, M.M.; writing—review and editing, M.Z. and M.M.; visualization, M.M.; supervision, M.Z.; project administration, M.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article.

Acknowledgments

Special acknowledgment is given to Andrzej Młodzianko, Jacek Wojtanowski and Wiesław Piotrowski from the Institute of Optoelectronics MUT for discussions and technical support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Muzal, M.; Mierczyk, Z.; Zygmunt, M.; Wojtanowski, J.; Piotrowski, W. Measurement of vehicles speed with full waveform lidar. In Laser Technology 2016: Progress and Applications of Lasers; International Society for Optics and Photonics: Jastarnia, Poland, 2016; Volume 10159, p. 1015914. [Google Scholar] [CrossRef]
  2. Muzal, M.; Wojtanowski, J.; Mierczyk, Z.; Zygmunt, M.; Drozd, T.; Knysak, P.; Piotrowski, W.; Traczyk, M. Laserowy miernik prędkości pojazdów. Elektronika 2016, 57, 38–40. (In Polish) [Google Scholar] [CrossRef]
  3. Villa, F.A.; Tisa, S.; Bronzi, D.; Zappa, F. Indirect time-of-flight 3D ranging based on SPADs. In Quantum Sensing and Nanophotonic Devices IX; International Society for Optics and Photonics: San Francisco, CA, USA, 2012; Volume 8268, p. 82681C. [Google Scholar] [CrossRef]
  4. Li, L. Time-of-Flight Camera—An Introduction; Technical White Paper SLOA190B; Texas Instruments: Dallas, TX, USA, 2014. [Google Scholar]
  5. Rüeger, J.M. Electronic Distance Measurement; Springer: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
  6. Kilpelä, A. Pulsed Time-of-Flight Laser Range Finder Techniques for Fast, High Precision Measurement Applications; Oulu Press, University of Oulu: Oulu, Finland, 2004. [Google Scholar] [CrossRef]
  7. Berkovic, G.; Shafir, E. Optical methods for distance and displacement measurements. Adv. Opt. Photonics 2012, 4, 441–471. [Google Scholar] [CrossRef]
  8. IEC 60825–1 “Safety of Laser Products—Part 1: Equipment Classification and Requirements”. Available online: https://webstore.iec.ch/publication/3587 (accessed on 23 September 2021).
  9. Brun, R. Gallium arsenide eyesafe laser rangefinder. In Proceedings of the Laser Safety, Eyesafe Laser Systems, and Laser Eye Protection, SPIE Proceedings, Los Angeles, CA, USA, 16–17 January 1990; Volume 1207. [Google Scholar] [CrossRef]
  10. Shi, H.; Yu, L.; Chunyang, W.; Yu, Y.; Liu, X.; Li, L. Study on multi-pulse long range laser ranging system. In Proceedings of the 29th Chinese Control and Decision Conference (CCDC), Chongqing, China, 28–30 May 2017; pp. 4838–4843. [Google Scholar] [CrossRef]
  11. Palojärvi, P. Integrated Electronic and Optoelectronic Circuits and Devices for Pulsed Time-of-Flight Laser Rangefinding; Oulu Press, University of Oulu: Oulu, Finland, 2003; Available online: http://jultika.oulu.fi/files/isbn9514269667.pdf (accessed on 3 August 2021).
  12. Kilpelä, A.; Ylitalo, J.; Määttä, K.; Kostamovaara, J. Timing discriminator for pulsed time-of-flight laser rangefinding measurements. Rev. Sci. Instrum. 1998, 69, 1978–1984. [Google Scholar] [CrossRef] [Green Version]
  13. Zheng, R.; Wu, G. Constant fraction discriminator in pulsed time-of-flight laser rangefinding. Front. Optoelectron. 2012, 5, 182–186. [Google Scholar] [CrossRef]
  14. Jutzi, B.; Neulist, J.; Stilla, U. High-resolution waveform acquisition and analysis of lasers pulses. Int. Arch. Photogramm. Remote Sens. 2005, 36, W3. Available online: https://publikationen.bibliothek.kit.edu/1000073818/4347356 (accessed on 3 August 2021).
  15. Huising, E.J.; Gomes Pereira, L.M. Errors and accuracy estimates of laser data acquired by various laser scanning systems for topographic applications. ISPRS J. Photogramm. Remote Sens. 1998, 53, 245–261. [Google Scholar] [CrossRef]
  16. SteinVal, O.K. Effects of Target Shape and Reflection on Laser Radar Cross Sections. Appl. Opt. 2000, 39, 4381–4391. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Characteristic points of the waveform of Gaussian curve modeling the echo signal of a laser pulse and names of methods based on their detection.
Figure 1. Characteristic points of the waveform of Gaussian curve modeling the echo signal of a laser pulse and names of methods based on their detection.
Sensors 21 06426 g001
Figure 2. Standard detection methods applied to a digital signal.
Figure 2. Standard detection methods applied to a digital signal.
Sensors 21 06426 g002
Figure 3. Weighted average as a method of finding the center xs coordinate of digitally recorded pulse.
Figure 3. Weighted average as a method of finding the center xs coordinate of digitally recorded pulse.
Sensors 21 06426 g003
Figure 4. Simple approximation of the discrete echo signal’s waveform with a second degree polynomial (SDPA-S).
Figure 4. Simple approximation of the discrete echo signal’s waveform with a second degree polynomial (SDPA-S).
Sensors 21 06426 g004
Figure 5. Plots of signals generated for: (A) trial 1, (B) trial 2, (C) trial 3 (see Table 1 for details).
Figure 5. Plots of signals generated for: (A) trial 1, (B) trial 2, (C) trial 3 (see Table 1 for details).
Sensors 21 06426 g005
Figure 6. Simulation results. (a) Total error Δs of simulated measurements, (b) Detailed plot of results of simple and modified approximation algorithms.
Figure 6. Simulation results. (a) Total error Δs of simulated measurements, (b) Detailed plot of results of simple and modified approximation algorithms.
Sensors 21 06426 g006
Figure 7. Visualization of results of threshold detection method used on pulses generated with different time delay Δx between their peak and moments of sampling (TSR—threshold to signal ratio).
Figure 7. Visualization of results of threshold detection method used on pulses generated with different time delay Δx between their peak and moments of sampling (TSR—threshold to signal ratio).
Sensors 21 06426 g007
Figure 8. Illustration of the basic concept of calculation of the xs coordinate of the peak of a pulse using SDPA-M algorithm.
Figure 8. Illustration of the basic concept of calculation of the xs coordinate of the peak of a pulse using SDPA-M algorithm.
Sensors 21 06426 g008
Figure 9. The laser rangefinder module used during experiments.
Figure 9. The laser rangefinder module used during experiments.
Sensors 21 06426 g009
Figure 10. The schematic diagram of the test stand.
Figure 10. The schematic diagram of the test stand.
Sensors 21 06426 g010
Figure 11. Test targets with calibrated reflectance used in the experiments. Reflectance equals (A) 98%, (B) 47%, (C) 10%, (D) 1%.
Figure 11. Test targets with calibrated reflectance used in the experiments. Reflectance equals (A) 98%, (B) 47%, (C) 10%, (D) 1%.
Sensors 21 06426 g011
Figure 12. Examples of real life signals registered during measurements to different targets. All signals were normalized to the peak value of the strongest signal. All plots are marked with values of their signal to noise ratios. In the window, the real recorded signal with SNR = 30 is shown.
Figure 12. Examples of real life signals registered during measurements to different targets. All signals were normalized to the peak value of the strongest signal. All plots are marked with values of their signal to noise ratios. In the window, the real recorded signal with SNR = 30 is shown.
Sensors 21 06426 g012
Figure 13. Distance measured with presented algorithms as a function of set distance for SNR = 1525.
Figure 13. Distance measured with presented algorithms as a function of set distance for SNR = 1525.
Sensors 21 06426 g013
Figure 14. Trial 1. Total error of measurements as a function of set distance for SNR = 1525.
Figure 14. Trial 1. Total error of measurements as a function of set distance for SNR = 1525.
Sensors 21 06426 g014
Figure 15. Trial 2. Total error of measurements as a function of set distance for SNR = 631.
Figure 15. Trial 2. Total error of measurements as a function of set distance for SNR = 631.
Sensors 21 06426 g015
Figure 16. Trial 3. Total error of measurements as a function of set distance for SNR = 182.
Figure 16. Trial 3. Total error of measurements as a function of set distance for SNR = 182.
Sensors 21 06426 g016
Figure 17. Trial 4. Total error of measurements as a function of set distance for SNR = 27.
Figure 17. Trial 4. Total error of measurements as a function of set distance for SNR = 27.
Sensors 21 06426 g017
Figure 18. Total uncertainty Us of each presented algorithm estimated from all four trials.
Figure 18. Total uncertainty Us of each presented algorithm estimated from all four trials.
Sensors 21 06426 g018
Table 1. Parameters of generated signals used during trials.
Table 1. Parameters of generated signals used during trials.
Trial Number12345
Sampling frequency
fpr (MHZ)
333
FWHM τ [ns]397815639156
SNR181631
Table 2. Standard deviations of five trials with N = 1000 measurements each. σs is calculated from gathered data; us is calculated using formula (18).
Table 2. Standard deviations of five trials with N = 1000 measurements each. σs is calculated from gathered data; us is calculated using formula (18).
Trial Number12345
Standard deviation of the trial, data analysis, σs (cm)1.051.171.700.270.46
Calculated standard deviation, us (cm)1.011.151.650.250.46
Expanded uncertainty
Us = 3·us
3.033.454.950.751.38
Table 3. Total estimated uncertainty of selected methods, results of simulations; SNR = 10,000.
Table 3. Total estimated uncertainty of selected methods, results of simulations; SNR = 10,000.
SNR10,000
MethodSDPA-MSDPA-SWAPD
Total uncertainty Us (cm)0.10.8619.5
Table 4. Basic characteristics of carried experiments.
Table 4. Basic characteristics of carried experiments.
Trial Number1234
Target
reflectance
98%47%10%1%
Range of
distance change
1.5 m
Distance change step1 cm2 cm
SNR152563118227
Table 5. Estimated uncertainty of each method calculated for different SNR conditions.
Table 5. Estimated uncertainty of each method calculated for different SNR conditions.
Calculation
Method
Estimated Uncertainty Us (cm)
SNR = 27SNR = 182SNR = 631SNR = 1525
SDPA-M1841.11
SDPA-S18532.5
WA2013810
PD802019.519
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Muzal, M.; Zygmunt, M.; Knysak, P.; Drozd, T.; Jakubaszek, M. Methods of Precise Distance Measurements for Laser Rangefinders with Digital Acquisition of Signals. Sensors 2021, 21, 6426. https://doi.org/10.3390/s21196426

AMA Style

Muzal M, Zygmunt M, Knysak P, Drozd T, Jakubaszek M. Methods of Precise Distance Measurements for Laser Rangefinders with Digital Acquisition of Signals. Sensors. 2021; 21(19):6426. https://doi.org/10.3390/s21196426

Chicago/Turabian Style

Muzal, Michał, Marek Zygmunt, Piotr Knysak, Tadeusz Drozd, and Marcin Jakubaszek. 2021. "Methods of Precise Distance Measurements for Laser Rangefinders with Digital Acquisition of Signals" Sensors 21, no. 19: 6426. https://doi.org/10.3390/s21196426

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop