Next Article in Journal
Numerical Analysis of Dynamic Effects of a Nonlinear Vibro-Impact Process for Enhancing the Reliability of Contact-Type MEMS Devices
Next Article in Special Issue
Sonar Sensor Models and Their Application to Mobile Robot Localization
Previous Article in Journal / Special Issue
New Passive Instruments Developed for Ocean Monitoring at the Remote Sensing Lab—Universitat Politècnica de Catalunya
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Distance and Cable Length Measurement System

by
Sergio Elias Hernández
1,*,
Leopoldo Acosta
2 and
Jonay Toledo
2
1
Department of Física Fundamental y Experimental Electrónica y Sistemas, Universidad de La Laguna, 38200, SpainDepartment of Física Fundamental y Experimental Electrónica y Sistemas, Universidad de La Laguna, 38200, Spain
2
Departament of Ingeniería de Sistemas Automática y Arquitectura y Tecnología de Computadores, Universidad de La Laguna, 38200, Spain
*
Author to whom correspondence should be addressed.
Sensors 2009, 9(12), 10190-10200; https://0-doi-org.brum.beds.ac.uk/10.3390/s91210190
Submission received: 30 October 2009 / Revised: 2 December 2009 / Accepted: 7 December 2009 / Published: 16 December 2009
(This article belongs to the Special Issue State-of-the-Art Sensors Technology in Spain)

Abstract

:
A simple, economic and successful design for distance and cable length detection is presented. The measurement system is based on the continuous repetition of a pulse that endlessly travels along the distance to be detected. There is a pulse repeater at both ends of the distance or cable to be measured. The endless repetition of the pulse generates a frequency that varies almost inversely with the distance to be measured. The resolution and distance or cable length range could be adjusted by varying the repetition time delay introduced at both ends and the measurement time. With this design a distance can be measured with centimeter resolution using electronic system with microsecond resolution, simplifying classical time of flight designs which require electronics with picosecond resolution. This design was also applied to position measurement.

1. Introduction

Distance and location measurement systems have many important applications. Local positioning or localization can be achieved through two or more distance measurements. A mobile device, with local positioning techniques, can either gather the information about its position or can be localized from elsewhere. In this context, local-positioning systems attract significant attention [1].
The chosen technology depends on different circumstances such as outdoor or indoor use, range of distance to be measured, system costs, accuracy, etc. In most outdoor situations, where a clear line of sight to satellites is available, GPS is the chosen technology. Other available technologies under active research (some for indoor applications) are: sonar [2,3], time of flight [4], radio beacons [5], systems based on laser-optic technology [6,7], vision systems [8,9]. Table 1 shows a comparison of different measurement systems.
The prototype described in this paper is a low cost distance measurement system based on pulse repetition between a pair of transceivers. Under these conditions a frequency is generated by the endless travel of the pulse, this frequency is inversely proportional to the time of flight, so the distance between a pair of transceivers can be obtained. The main advantage of our system is that with microsecond electronics it is possible to measure distance with centimeter resolution. A traditional time of flight RF system needs picosecond electronic resolution to get similar distance resolution.
Other advantages of our system over other available and equivalent systems are that our system doesn't need direct vision from transmitters to receivers, as opposed to sonar or laser systems. Our system can be installed indoors, and our design is very cheap (Table 1).

2. System Description

As already mentioned, the proposed measurement system is based on the endless and continuous repetition of an electric pulse that propagates along the distance to be measured (Figure 1). At both ends of the distance or cable to be measured, there is pulse repetition hardware based on a monostable integrated circuit that generates a new pulse, after a constant delay, Td, every time a pulse is received, in reality Td will include all subsystem delays that are the delays introduced also by the transmitter and receiver. Supposing a zero distance is to be measured, the period T of every cycle will be. T = 2Td, because pulse repetitions introduce the same delay at both ends, Td. If the distance traveled by the wave is considered the new period will be, T = 2Td + 2Tf, where Tf is the time of flight, which is the time needed for the pulse to travel from terminal 1 to terminal 2 or vice versa, with T being the time a pulse needs to make a complete circle from terminal 1 to terminal 2 and back, see Figure1. If d is the distance to be measured and v the pulse wave propagation velocity, T f = d v, and T = 2 ( T d + d v ) being T the total time to make the circle: which, when expressed as frequency, f, implies:
f = 1 T = 1 2 ( T d + d v )
Equation (1) shows that the measured frequency f decreases as distance d increases.
The selection of the appropriate repetition delay on both terminals, Td, will fix the maximum and minimum frequencies captured for a range of distances. The sensitivity diminishes significantly as distance d increases, as can be seen in Equation (2) and Table 1:
f d = 1 2 v ( T d + d v ) 2
Equation (2) shows how the sensitivity f d varies significantly with distance d and pulse repetition delay, Td. One can observe that sensitivity significantly diminishes with both magnitudes. Figure 2 and Table 1, show how f and Δf decrease nonlinearly with the distance d to be measured, following Equation (1) and Equation (2) respectively. The selection of an appropriate Td will depend on the range of distances to be measured and the precision, sensitivity and resolution required. Precision, sensitivity and resolution increase by reducing Td, but this reduction of Td has the drawback of increasing the bandwidth and the complexity of the electronic circuit.
The distance resolution depends also on measurement time. Distance calculation is defined by the frequency measurement, so the precision in the calculation of the frequency of the travelled pulsed is related to the distance resolution. Figure 3 shows the evolution of errors as a function of the measurement time. When the measurement time is high, the frequency is accurate and the error is low, if the measurement time is low, the error increases.
In our project, the main goal was to locate an autonomous vehicle over a 1 Km2 area with an accuracy of around 10 cm. In order to achieve this goal, Td = 2.68 μS is used on the prototype, this implies f 0 = 1 T d = 186.6 KHz and a sensitivity, Δfd, ranging from 232 to 46 Hz (see Table 2). The measurement time was fixed at 1 second (Tm = 1 s). With these parameters 1Hz resolution is obtained for the measured frequency with a theoretical accuracy in d between 1mm and 4 mm. The real accuracy will be lower due to variances in system parameters and RF bounces. As already mentioned, Td includes monostable repetition delays, and all other delays. The maximum distance to be measured was 1 Km, and the transmitters have a bigger range.
Real measured data can be observed in Figure 4, note that real data follows, with a high degree of accuracy, the predicted behavior shown in Equation (1).

3. Prototype Description

Our prototype as depicted in Figure 1 is composed of two different terminals, placed at both ends of the distance to be measured. Each terminal is composed of three different elements: 1. Radio frequency pulse transmitter (T1 and T2 in Figure 1), 2. Monostable Integrated Circuit, needed to repeat and delay the pulse (Pulse Repeater), and 3. Radio frequency pulse receiver, (R1 and R2). Apart from these elements Terminal 1 includes a simple microcontroller (Figure 5), whose tasks are:
  • To generate the first pulse to be sent from terminal 1 to terminal 2.
  • To detect the generated frequency using an inner microcontroller counter.
  • To convert the captured frequency to distance based on Equation (1).
Our system uses two different frequencies to avoid interferences, one frequency f1 to send pulses from terminal 1 to terminal 2 and a second frequency, f2, for pulses from terminal 2 to terminal 1 (see Figure 1). It is obvious that the same system can be used to measure cable length, for this purpose each terminal should be located at each end of the cable, no radio module is needed because the electric pulse travels through the cable.
The material cost of our prototype, mainly integrated circuit cost, is less than 5 euros when used for cable length measurement and around 100 € when used for distance measurements, but in this last case, around 90% of this cost is for the radio data modules.

4. Cartesian Position of a Mobile System

The system described here can be used as a localization system. It's necessary for this application to measure two distances from two different fixed points (see Figure 6). Calculating the position of the vehicle is determined using these distances. Trilateration is applied in order to resolve the location problem. The localization scheme can be seen in Figure 6 the distance between the two fixed points (d), and between each one of these fixed points and the vehicle (d1,d2) are known, so the radius of the circumferences can be calculated, see Figure 6, and the (x,y) Cartesian position is resolved by equations (3) and (4).
When this schema with only two measurements (d1 and d2) is used, an alternative localization point appears. It's discarded because it is outside the working area. The system only works inside a predefined working area. The radius of each circle is the distance from each fixed point to theproto type. So Equation (3) is applied in order to calculate the vehicle localization (x,y):
d 1 2 = x 2 + y 2 d 2 2 = ( x d ) 2 + y 2
Solving Equation (3) for x and y Equation (4) is obtained:
x = d 1 2 d 2 2 + d 2 2 d y = d 1 2 x 2 = d 1 2 ( d 2 + d 1 2 d 2 2 ) 2 4 d 2
Based on Equation (4) the system sensitivity, Equation (5), can be calculated for the Cartesian localization variables (x,y). The error is presented as a function of the Cartesian positions in Figure 7. It can be seen a minimum position error at the cartesian position x = 500, y = 0. This combination produces a minimum distance (d1 = 500, d2 = 500) to each fixed point. According to Equation (2) and Figure 3 the minimum error is reached when the distance is small and this is the lowest distance for each distance:
Δ x = | x d 1 | Δ d 1 + | x d 2 | Δ d 2 x d 1 = d 1 d ; x d 2 = d 2 d Δ y = | y d 1 | Δ d 1 + | y d 2 | Δ d 2 y d 1 = d 1 ( d 2 d 1 2 + d 2 2 ) d 2 d 4 + ( d 1 2 d 2 2 ) 2 2 d 2 ( d 1 2 + d 2 2 ) d 2 ; y d 2 = d 2 ( d 2 + d 1 2 d 2 2 ) 2 d 2 d 1 2 ( d 2 + d 1 2 d 2 2 ) 2 4 d 2
The orientation of the prototype can be obtained if two localization systems are installed on the mobile device. These systems must be separated to get the Cartesian coordinates of each system (x1,y1), (x2,y2). The prototype orientation can be calculated with these coordinates using Equation (6) where xdif is the difference between x1 and x2 coordinate and ydif between y1 and y2. The error in the orientation is proportional to the distance of the systems installed in the prototype and the precision in the (x,y) calculus:
α = arctan ( y 1 y 2 x 1 x 2 ) = arctan ( y dif x dif ) Δ α = | α x 1 | Δ x 1 + | α x 2 | Δ x 2 + | α y 1 | Δ y 1 + | α y 2 | Δ y 2 α x 1 = y dif x dif 2 ( 1 + y dif 2 x dif 2 ) ; α x 2 = y dif x dif 2 ( 1 + y dif 2 x dif 2 ) α y 1 = 1 x dif ( 1 + y dif 2 x dif 2 ) ; α y 2 = 1 x dif ( 1 + y dif 2 x dif 2 )
Figure 8 shows the orientation error as a function of the distance between the sensors and orientation angle. The cartesian position of the vehicle is fixed to x = 500 m, y = 500 m in this graph. If the error in Cartesian position is represented, Figure 9 is obtained, where the distance between the two sensors in the prototype is fixed at 1 m. The error as a function of the orientation is plotted with different colors.

5. Non Static Measurements

If the prototype is moving, the frequency measurement changes as a function of the vehicle velocity Vν, and measurement time Tm Equation (7). The error increases with the prototype speed and with the measurement time Figure 10. For a mobile system better precision is obtained if small measurement times are used. Error will be proportional to Vν and Tm so the main error source is proportional to the prototype speed movement. Figure 10 shows the evolution of error as a function of speed and distance for different measurement times. The main error source is velocity, so in order to get a better distance estimation it's necessary to reduce the measurement time. A detail is presented in Figure 10 where the nonlinear error as a function of distance can be appreciated:
f = 1 T = 1 2 ( T d + d v ) f = 1 2 ( T d + d 0 + 1 T m 0 T m t V v T t v ) = 1 2 ( T d + d 0 + T m 2 V v v )
Another way to see the error is as a measurement delay. Position is not got in real time, the position is obtained T m V v 2 seconds before, when the prototype was located in a previous place. When the system stops, the position will be calculated again with good resolution.

6. Conclusions

A very simple prototype for distance and cable length measurements is built based on a simple algorithm. The basis of our device is continuous repetitions of an electric pulse that endlessly travels backwards and forwards through the distance or cable to be measured. The endless travel of the pulse generates a frequency that varies almost inversely with the distance to be measured. The frequency range and resolution of the distance measured will depend on the range of the distances to be measured, and the time delay it takes for the pulse to be repeated at each end. The proposed system uses a simple and low cost electronic device based on a basic microcontroller that performs the main tasks. The system has been successfully tested for distances from 0 to 500 m, with 10 cm accuracy. This system can be used as a local position system to get position and orientation of mobile systems.

Acknowledgments

This work was supported by the ‘Comision Interministerial de Ciencia y Tecnología’, Spanish Government, project DPI2007-64137.

References and Notes

  1. Hightower, J.; Borriello, G. Locations systems for ubiquitous computing. IEEE Comput. 2001, (34), 57–66. [Google Scholar]
  2. Tards, D.; Neira, J.; Newman, P.M.; Leonard, J.J. Robust mapping and localization in indoor environments using sonar data. Int. J. Robot. Res. 2002, 21, 311–330. [Google Scholar]
  3. Navarro, D.; Benet, G.; Martinez, M. Line based robot localization using a rotary sonar. IEEE Conf. Emerg. Tech. Factory Autom. 2007, 25-28, 896–899. [Google Scholar]
  4. Larsson, U.; Forsberg, J.; Wernersson, A. Mobile robot localization: Integrating measurements from a time-of-flight laser. IEEE Trans. Ind. Electron. 1996, 43, 422–431. [Google Scholar]
  5. Djugash, J.; Singh, S.; Corke, P.I. Further results with localization and mapping using range from radio. Int. Conf. Field Serv. Robot. 2005, 25, 231–242. [Google Scholar]
  6. Zhou, Y.; Lu, W.; Huang, P. Laser-activated RFID-based Indoor Localization System for Mobile Robots. Proceedings of the 2007 IEEE International Conference on Robotics and Automation, Rome, Italy, April, 2007; pp. 4600–4605.
  7. Hernández, S.E.; Torres, J.M.; Morales, C.A.; Acosta, L. A new low cost system for autonomous robot heading and position localization in a closed area. Auton. Robots 2003, 15, 99–110. [Google Scholar]
  8. Agrawal, M.; Konolige, K.; Bolles, R.C. Robust vision-based localization by combining an image-retrieval system with Monte Carlo localization. IEEE Trans. Robot. 2005, 21, 208–216. [Google Scholar]
  9. Menegatti, E.; Pretto, A.; Scarpa, A.; Pagello, E. Omnidirectional vision scan matching for robot localization in dynamic environments. IEEE Trans. Robot. 2006, 22, 523–535. [Google Scholar]
Figure 1. Block diagram of the prototype system.
Figure 1. Block diagram of the prototype system.
Sensors 09 10190f1
Figure 2. Frequency detected versus distance measured left, sensitivity as Δf/Δd versus distance right.
Figure 2. Frequency detected versus distance measured left, sensitivity as Δf/Δd versus distance right.
Sensors 09 10190f2
Figure 3. Distance versus errors as a function of measurement time Tm in seconds.
Figure 3. Distance versus errors as a function of measurement time Tm in seconds.
Sensors 09 10190f3
Figure 4. Frequency measured versus distance.
Figure 4. Frequency measured versus distance.
Sensors 09 10190f4
Figure 5. Terminal 1 Photograph, RF-transmitter Up-left, pulse repeater circuit up-right, and microcontroller circuit board bottom.
Figure 5. Terminal 1 Photograph, RF-transmitter Up-left, pulse repeater circuit up-right, and microcontroller circuit board bottom.
Sensors 09 10190f5
Figure 6. Localization schema, the distance between the two fixed points is known, and the prototype coordinates can be calculated using d1, and d2 distances.
Figure 6. Localization schema, the distance between the two fixed points is known, and the prototype coordinates can be calculated using d1, and d2 distances.
Sensors 09 10190f6
Figure 7. Localization error as a function of Cartesian positions.
Figure 7. Localization error as a function of Cartesian positions.
Sensors 09 10190f7
Figure 8. Orientation error angle as a function of distance between sensors and orientation angle for a fixed Cartesian position.
Figure 8. Orientation error angle as a function of distance between sensors and orientation angle for a fixed Cartesian position.
Sensors 09 10190f8
Figure 9. Orientation error angle as a function of Cartesian position for a distance between sensors of 1 m, each graph represents a different orientation.
Figure 9. Orientation error angle as a function of Cartesian position for a distance between sensors of 1 m, each graph represents a different orientation.
Sensors 09 10190f9
Figure 10. Distance calculus error as a function of prototype travel velocity with different measurement times.
Figure 10. Distance calculus error as a function of prototype travel velocity with different measurement times.
Sensors 09 10190f10
Table 1. Comparison with other distance measurement systems.
Table 1. Comparison with other distance measurement systems.
TechnologyResolutionPriceDistanceDetails
UltrasoundMedium, 3–5 cmLowLow, 8 metersVery low distance
Needs direct vision
Simple Electonics
LaserHigh, 2–5 mmHighHigh, KmNeeds direct vision
Picosecond electronics
VisionMedium, 10 cmLowLow, 20 metersComputer processing
Landmarks installed in the field
RadarLow, 30 cmHighHigh, KmPicosecond electronics
DGPSHigh, 10 cmMediumHigh, KmOnly outdoor use
Table 2. Frequencies and sensitivity versus distances: Td (μS) time delay for pulse repetition, f0 and f1Km frequency detected for 0 or 1 Km distance, Δf10d and Δf1Kmd sensitivity at 10 m and 1 Km respectively.
Table 2. Frequencies and sensitivity versus distances: Td (μS) time delay for pulse repetition, f0 and f1Km frequency detected for 0 or 1 Km distance, Δf10d and Δf1Kmd sensitivity at 10 m and 1 Km respectively.
Td (μS)f0 (KHz)f1Km (KHz)Δf0d
(Hz/m)
Δf10d
(Hz/m)
Δf100d
(Hz/m)
Δf1Kmd
(Hz/m)
0,15,000145.8161.3 × 103961548,944.5141.5
1500115.51661.11565.9939.8588.8
2.68186.683.1232.0226.3183.546.1
105037.516.6616.56215.6149.38
10054.840.1670.166560.165570.156
1,0000.50.4981.67 × 10−31.66 × 10−31.66 × 10−31.65 × 10−3

Share and Cite

MDPI and ACS Style

Hernández, S.E.; Acosta, L.; Toledo, J. Distance and Cable Length Measurement System. Sensors 2009, 9, 10190-10200. https://0-doi-org.brum.beds.ac.uk/10.3390/s91210190

AMA Style

Hernández SE, Acosta L, Toledo J. Distance and Cable Length Measurement System. Sensors. 2009; 9(12):10190-10200. https://0-doi-org.brum.beds.ac.uk/10.3390/s91210190

Chicago/Turabian Style

Hernández, Sergio Elias, Leopoldo Acosta, and Jonay Toledo. 2009. "Distance and Cable Length Measurement System" Sensors 9, no. 12: 10190-10200. https://0-doi-org.brum.beds.ac.uk/10.3390/s91210190

Article Metrics

Back to TopTop