====== Ultrasound ======
===== Summary =====
Ultrasonic sensors are based on measuring the properties of sound waves with frequency above the human audible range. They are based on three physical principles: time of flight, the Doppler effect, and the attenuation of sound waves. Ultrasonic sensors are non-intrusive in that they do not require physical contact with their target, and can detect certain clear or shiny targets otherwise obscured to some vision-based sensors. On the other hand, their measurements are very sensitive to temperature and to the angle of the target.
===== Introduction =====
Ultrasonic sensors "are based on the measurement of the properties of acoustic waves with frequencies above the human audible range," often at roughly 40 kHz ((Miranda, E., and M. Wanderley. 2006. //New Digital Musical Instruments.// Middleton, Wisconsin: A-R Editions, Inc.)). They typically operate by generating a high-frequency pulse of sound, and then receiving and evaluating the properties of the echo pulse.
Three different properties of the received echo pulse may be evaluated, for different sensing purposes. They are:
* Time of flight (for sensing distance)
* Doppler shift (for sensing velocity)
* Amplitude attenuation (for sensing distance, directionality, or attenuation coefficient)
===== Modes of Operation =====
==== 1. Time of Flight ====
=== 1A. Reflection Mode ===
In reflection mode (also known as "echo ranging"), an ultrasonic transmitter emits a short burst of sound in a particular direction. The pulse bounces off a target and returns to the receiver after a time interval **t**. The receiver records the length of this time interval, and calculates the distance travelled **r** based on the speed of sound **c**:
**r = c * t**((Pallàs-Areny, R., and J. Webster. 2001. //Sensors and Signal Conditioning, 2nd ed.// Toronto, Ontario: John Wiley & Sons.))
{{:sensors:ultrasound_echo_ranging.jpg|The principle of echo ranging. Illustration from Wikipedia: http://en.wikipedia.org/wiki/File:Sonar_Principle_EN.svg}}
Very often, separate transmitting and receiving transducers are placed immediately next to each other, housed as a single unit. (The PING))) Range Finder, Omega flowmeter and Migatron high-accuracy sensor below are all designed this way.) In these cases, the distance calculated will be twice the distance from the sensor to the target.
Using proper coordination, a single transducer can be used for both emitting the pulse and receiving the echo. Note that it takes time for the transducer to change modes, presenting a challenge to short-distance measurement.
=== 1B. Direct Measurement Mode ===
In this mode of operation the transmitter and receiver are two separate units that move relative to each other. For example, the receiver can be fixed to a target that moves relative to a stationary transmitter, or vice-versa.
{{:sensors:ultrasound_echo_ranging2.jpg|Diagram of direct measurement}}
Multiple transmitters can be used to increase the directionality of the transmitted pulse. Lima et al.((Lima et al. 1996. Dance-music interface based on ultrasound sensors and computers. //Proceedings of the III Brazilian Symposium on Computer Music held in Recife, Brazil.//)) placed multiple ultrasonic transmitters on a performer, whose signals were received by multiple receivers in the performance space, enabling a computer program to triangulate the performer's position.
==== Doppler Shift ====
When a wave reflects off of a moving object, its frequency is shifted by an amount proportional to the velocity of the object. This fact can be exploited in ultrasonic sensing by having the receiver measure not the time of flight but the frequency of the returning echo pulse. Knowing **fe** and **fr**, the frequency of the emitted and received pulse, respectively, the velocity **v** of the target may be calculated:
**fe - fr = 2 fe (v / c) cos(A)**((Pallàs-Areny, R., and J. Webster. 2001. //Sensors and Signal Conditioning, 2nd ed.// Toronto, Ontario: John Wiley & Sons.))
where **A** is the angle between the target's and the pulse's lines of motion.
==== Amplitude Attenuation ====
Ultrasonic sound attenuates much faster than audible sound when propagating through air. By measuring the intensity of the returning pulse, an estimate of the distance travelled can be made using the following equation:
**I = I0e-ax** ((Pallàs-Areny, R., and J. Webster. 2001. //Sensors and Signal Conditioning, 2nd ed.// Toronto, Ontario: John Wiley & Sons.))
where **I** and **I0** are the received and the original intensities, respectively, and where **a** is the attenuation coefficient (a property of the medium) and **x** is the distance travelled by the wave. Attenuation may also be caused by an increased angle between the target and receiver, which may even deflect the echo somewhere else and not be heard at all. The effect of distance and angle on the amplitude of the received signal is illustrated in the following images from (Miranda & Wanderley 2006).((Miranda, E., and M. Wanderley. 2006. //New Digital Musical Instruments.// Middleton, Wisconsin: A-R Editions, Inc.))
{{:sensors:ultrasound_proximity_1.jpg?400|Ultrasound emitter and receiver a certain distance apart}}
{{:sensors:ultrasound_proximity_2.jpg?400|Bringing the emitter and receiver closer together greatly reduces the attenuation of the signal}}
{{:sensors:ultrasound_proximity_3.jpg?400|Angling the emitter and receiver away from each other increases the attenuation of the signal}}
===== Making Measurements =====
The three methods above make use of different physical principles, but they all employ the same measuring procedure. In each case, an ultrasonic sound wave is created, received, and evaluted.
==== Generating the ultrasonic signal ====
Ultrasound is most commonly generated as a direct conversion from electrical energy. This is accomplished by applying a rapidly oscillating electrical signal to a [[piezoelectric_ceramic_film|piezoelectric crystal]] attached to a mounting. The charge causes the crystal to expand and contract with the voltage, thereby generating an acoustic wave. The waves are later detected by a piezoelectric receiver, which converts the waves back into voltage using the same method.
The signal may also be generated by consumer electronics products, but great care must be taken to ensure that the signal is not attenuated in this range. Speakers typically have filter circuits to prevent ultrasonic propogation, and the frequency response of many microphones roll off in this range. This is partly because of the amount of ultrasound present in our daily life; percussive sounds and metallic ringing both contain ultrasounic frequencies.
==== Pulsed vs. continuous measurement ====
Time-of-flight-based sensing requires emitting a pulse and waiting for it to return. This waiting time limits the speed with which successive measurements can be made, without risking confusion. However, Doppler- and attenuation-based sensing devices do not have the same restrictions: a constant wave of ultrasound may be emitted, and the received wave's attenuation or frequency continuously analyzed. This may make measurements speedier, effectively increasing the sensitivity of the sensor.
===== Considerations =====
The main advantage of ultrasonic sensors is that measurements may be made without touching or otherwise impeding the target. In addition, depending on the distance measured, measurement is relatively quick (it takes roughly 6ms for sound to travel 1m). However, many factors such as temperature, angle, and material may affect measurements.
Here is a list of pitfalls in ultrasonic sensing:
* **Weather.** Temperature and humidity affect the speed of sound in air. Therefore, range finders may need to be recalibrated to make accurate measurements in a new environment. (Or, an on-board temperature sensor may be incorporated.)
* **Currents.** Temperature variations and air currents can create invisible boundaries that will reflect ultrasonic waves, so care must be taken to avoid these.
* **Angle.** For the transmitted wave to echo back to the receiver, the target surface must be perpendicular to the transmitter. Round objects are therefore most easily sensed since they always show some perpendicular face. When targeting a flat object, care must be taken to ensure that its angle with respect to the sensor does not exceed a particular range.
* **Dead-zone.** Ultrasonic sensors typically have a "dead zone" immediately in front of them in which objects cannot be detected because they deflect the wave back before the receiver is operational. (This is because reverberations from the transmitter force the receiver to pause a moment before beginning to listen for the echo.((UltraSound Technology Information Portal. Accessed 17 April 2009.)))
* **Material.** Some materials are more absorbent than others, and these will reflect less ultrasound. This complicates using the attenuation method to measure the distance of arbitrary objects.
===== Devices =====
{{template>device
|company=Jameco Electronics
|model=40TR16F-R
|sources=[[http://www.jameco.com/\|Jameco]] US$ 7.95
|description=Ultrasonic sensor transmitter/receiver pair, used for motion or distance sensing
|resources=[[http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=136654&\|Jameco product page]]
|notes=40(+/-1)kHz center frequency, 3.5-4.0kHz bandwidth \\
Transmitter sound pressure level: 119dB \\
Receiver sound sensitivity: 65dB
|datasheet=[[http://www.jameco.com/Jameco/Products/ProdDS/136654.pdf\|40TR16F-R]]
|variants=Jameco's earlier [[http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=139492&\|40TR12B-R]] has nearly identical [[http://www.jameco.com/Jameco/Products/ProdDS/139492.pdf\|specs]], with identical center frequency, slightly wider bandwidth (5.0 kHz) and quieter transmitter (112dB) and less sensitive receiver (67dB)
}}
{{template>device
|company=Parallax Inc.
|model=PING))) Ultrasonic Distance Sensor (#28015)
|sources=[[http://www.parallax.com/\|Parallax]] US$ 29.99\\
[[http://www.hvwtech.com/\|HVW Technologies]] US$ 29.99\\
[[http://www.lynxmotion.com/\|Lynxmotion]]\\ US$ $27.95
|description=Ultrasonic range finder, single transmitter/receiver unit
|resources=[[http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor\|Using PING))) with Arduino]]
|datasheet=[[http://www.parallax.com/Portals/0/Downloads/docs/prod/acc/28015-PING-v1.5.pdf\|28015-PING-v1.5.pdf.pdf]]
|notes=Interfaces easily with BASIC stamp or Arduino (resources contain sample code)\\
Maximum echo pulsewidth: 18.5ms (minimum number of measurements per second roughly 50) \\
Range: 2cm-3m
}}
{{template>device
|company=Omega
|model=FD-400
|sources=[[http://www.omega.com/\|Omega]] US$ 1695.00
|description=Doppler flowmeter
|resources=[[http://www.omega.com/Manuals/manualpdf/M4329.pdf\|User manual]]
|notes=Sensor clamps on to pipe; connected to monitor \\ Sensing range 0.05-9 m/s (+/-2% of calibrated span) \\
Liquid must contain "100 ppm of useful sonic-suspended reflectors greater than 100 microns." \\
1-60 second response time
|datasheet=[[http://www.omega.com/Green/pdf/FD-400.pdf\|FD-400 series]]
|variants=FD-400 series products range from $1696 to $2185, with variations in output power.
}}
{{template>device
|company=Migatron Corp.
|model=RPS-412A
|sources=[[http://www.migatron.com/how_to_pay.htm\|Migatron]] price not listed
|description=High accuracy distance sensor
|resources=[[http://www.migatron.com/products/rps-412a-v-1/index.htm\|User manual]]
|notes=High-accuracy: +/-0.002 inches or 0.05% of range at 25C. 3-10" or 3-16" range. \\
Built-in temperature sensor automatically compensates (50 times per second) for changes in speed of sound due to environmental effects \\
Sturdy stainless steel housing \\
Input voltage 20-30 V; output signal 0-10 V.
NB: Company product page has many broken links
|datasheet=[[http://www.migatron.com/products/rps-412a-v-1/index.htm\|RPS-412a]]
}}
===== Media =====
{{:sensors:ping.jpg?200|PING))) connected to an Arduino.}}
{{youtube>shXYxU98GZE}}
===== External Links & References =====
==== Resources ====
* [[wp>Ultrasonic_sensor]]
* [[wp>Ultrasound_flow_meter]]
* Massa, D. 1999. [[http://www.sensorsmag.com/articles/0299/acou0299/index.htm\|Choosing an ultrasonic sensor for proximity or distance measurement]]. Sensorsmag. 1 February.
* Ultrasound Technology Information Portal. [[http://www.us-tip.com/serv1.php]]
* Wilson, J. 2005. //Sensor Technology Handbook.// Oxford, UK.: Elsevier.
* Pallàs-Areny, R., and J. Webster. 2001. Sensors and Signal Conditioning, 2nd ed. Toronto, Ontario: John Wiley & Sons.
* Joseph J. Carr. 1993. Sensors and Circuits. Upper Saddle River, NJ: PTR Prentice-Hall, Inc.
==== Applications ====
* Audio Spotlight. [[http://www.holosonics.com/\|Holosonics]]
* Marshall, Mark. The T-Box. [[http://www.marktmarshall.com/projects/t-box\|Project description]].
* Raes, Godfried-Willem, 1999/2004. //[[http://www.logosfoundation.org/ii/gesture-instrument.html|Gesture Controlled Musical Instruments - A Practical Report]]//
* Taxonomy of Realtime Interfaces for Electronic Music Performance. Tag: [[http://vipre.uws.edu.au/tiem/?tag=ultrasonic|ultrasound]]
* Vogt, F. et al. 2002. Tongue 'n' groove: An ultrasound based music controller. //Proceedings of the 2002 Conference on New Instruments for Musical Expression.// [[http://www.google.com/url?sa=t&source=web&ct=res&cd=6&url=http%3A%2F%2Fwww.nime.org%2F2002%2Fproceedings%2Fpaper%2Fvogt.pdf&ei=4THoSYT8BpHDtwfCtMyQBg&usg=AFQjCNGPUrBCflY6H4BCWWltqpuJQ5l4jA\|PDF]]
* Some industrial applications [[http://www.migatron.com/apps.htm|link]]
{{tag>Sensor Ultrasound Distance Flow}}