How Do Ultrasonic Distance Sensors Work? - The Learning Circuit

element14 presents
27 Jan 202108:42

Summary

TLDRIn this 'Learning Circuit' episode, Karen discusses ultrasonic distance sensors, explaining how they function similarly to echolocation in nature. She covers the science behind calculating distance using the time it takes for sound to reflect off objects and return, the role of transducers, and the differences between piezoelectric and capacitive types. Karen also touches on the practical applications, limitations, and the future of these sensors in compact electronics.

Takeaways

  • 🐬 Ultrasonic sensors work on the principle of echolocation, similar to how dolphins and bats detect their surroundings.
  • πŸ›° The distance is calculated using the formula (1/2 * t * c), where t is the time for the sound to travel and c is the speed of sound.
  • πŸ”Š The speed of sound varies by medium, being approximately 767 miles per hour in air and 4.3 times faster in water.
  • πŸ‘‚ Ultrasonic sensors operate beyond the audible range for humans, which is above 20 kHz.
  • πŸ”Œ These sensors are transducers, converting electrical signals into sound waves and vice versa.
  • πŸ’  Piezoelectric and capacitive are the two types of ultrasonic transducers, each with different mechanisms for generating and detecting sound.
  • πŸ“‘ Capacitive transducers can be micro-machined, allowing for compact and integrated designs.
  • πŸ“Š The detection range and area of an ultrasonic sensor depend on its frequency and the angle at which sound is emitted.
  • 🚫 Factors like object size, distance, material, and shape can affect the sensor's ability to detect objects.
  • πŸ’§ Ultrasonic sensors are not affected by visual characteristics and can even detect clear plastic and water surfaces.
  • πŸ”© Commonly used ultrasonic sensors for hobbyist projects come pre-built into boards with pins for easy integration.

Q & A

  • What is an ultrasonic sensor and how does it function?

    -An ultrasonic sensor detects the distance of an object without physical contact by emitting ultrasonic sound waves and measuring the time it takes for the sound to return after bouncing off the object.

  • What natural examples of echolocation are mentioned in the video?

    -Dolphins and bats are examples of animals that use echolocation to detect their surroundings by emitting sound waves and interpreting the echoes that bounce back.

  • What is the formula used to calculate distance in ultrasonic sensors?

    -The formula is Β½ * t * c, where 't' is the time it takes for the ultrasound to travel to the object and back, and 'c' is the speed of sound.

  • Why is the distance formula multiplied by Β½ in ultrasonic sensor calculations?

    -The distance formula is multiplied by Β½ because the sound wave travels to the object and back, so the actual distance is only half of the total travel time.

  • How do piezoelectric ultrasonic transducers work?

    -Piezoelectric transducers use a crystal that flexes back and forth when an electric charge is applied, generating ultrasonic waves or detecting incoming waves by converting the vibration into electrical signals.

  • What is the difference between piezoelectric and capacitive ultrasonic transducers?

    -Piezoelectric transducers rely on a vibrating crystal to generate sound, while capacitive transducers use a diaphragm membrane that moves in response to electric charges, causing the membrane to vibrate and produce sound.

  • What are capacitive transducers (CMUTs), and why are they important?

    -Capacitive transducers (CMUTs) are micro-machined devices that operate similarly to piezoelectric transducers but are cheaper and easier to manufacture. They can be packed into arrays for larger bandwidth and integrated into circuits.

  • What factors can prevent an object from being detected by an ultrasonic sensor?

    -Objects may not be detected if they are too small, too close (in the blind zone), have a shape that reflects sound away from the sensor, or are made of materials that absorb sound.

  • How does the frequency of an ultrasonic sensor affect its range?

    -Higher frequency sensors work best for detecting objects at short distances, while lower frequency sensors are more suitable for long-range detection.

  • What advantages do ultrasonic sensors have in detecting objects, regardless of material?

    -Ultrasonic sensors are not affected by the color, transparency, or visual characteristics of an object, making them suitable for detecting clear plastic and even the surface of water.

Outlines

00:00

πŸ”Š Introduction to Ultrasonic Sensors

The script introduces ultrasonic distance sensors, explaining how they function similarly to echolocation used by dolphins and bats. It details how these sensors emit sound waves that reflect off objects and return to the sensor, allowing for distance calculation using the formula (1/2) Γ— t Γ— c, where t is the time for the sound to travel and c is the speed of sound. The script also covers the difference between ultrasonic and audible frequencies, the use of ultrasound in medical imaging, and the two types of ultrasonic transducers: piezoelectric and capacitive. Piezoelectric transducers use a crystal that flexes when charged, while capacitive transducers use a vibrating membrane to generate and detect sound waves. The script concludes with a brief mention of how these sensors can be integrated into electrical circuits.

05:02

πŸ“‘ Applications and Limitations of Ultrasonic Sensors

This section discusses the practical applications of ultrasonic sensors, including their use in detecting objects at various distances and sizes. It explains the concept of a detection cone and how the frequency of the transducer affects the sensor's range, with lower frequencies being better for long-range detection and higher frequencies for short-range. The script also addresses potential issues such as blind zones, false positives from mounting positions, and the difficulty in detecting objects that are too close or made of sound-absorbing materials. Additionally, it highlights the advantage of ultrasonic sensors being unaffected by color or visual characteristics and their ability to detect clear plastic and water surfaces. The section concludes with a mention of hobbyist-friendly ultrasonic sensor boards and a teaser for a future video demonstrating a project using these sensors.

Mindmap

Keywords

πŸ’‘Ultrasonic Sensor

An ultrasonic sensor is a device that uses high-frequency sound waves to detect and measure the distance of objects. In the video, it is explained that these sensors operate without physical contact and are used in various applications, such as by dolphins and bats for echolocation and by ships for underwater detection with sonar. The sensor emits a sound wave and measures the time it takes for the echo to return, which is then used to calculate the distance to the object.

πŸ’‘Echolocation

Echolocation is a biological sonar system used by animals like dolphins and bats to navigate and locate objects by emitting sounds that reflect off objects and return to the emitter. The video script mentions that these animals use echolocation to detect their surroundings, which is analogous to how ultrasonic sensors work, emitting sound waves that echo off objects to determine their distance.

πŸ’‘Sonic Speed

Sonic speed, also known as the speed of sound, is the rate at which sound waves travel through a medium. The video explains that the speed of sound is approximately 767 miles per hour at sea level, and it varies depending on the medium, traveling 4.3 times faster in water than in air. This speed is crucial for ultrasonic sensors as it is used in the formula to calculate the distance of objects based on the time it takes for the sound to reflect back.

πŸ’‘Transducer

A transducer is a device that converts one form of energy into another. In the context of the video, ultrasonic sensors act as transducers by converting electrical signals into sound waves and vice versa. The script explains that ultrasonic sensors use either piezoelectric or capacitive transducers to generate and detect ultrasonic waves, which are used to measure distance.

πŸ’‘Piezoelectric

Piezoelectric refers to the property of certain materials that generate an electric charge in response to applied mechanical stress. The video script describes how piezoelectric devices, such as those used in ultrasonic sensors, use a crystal substance that flexes back and forth quickly when a charge is introduced, generating ultrasonic waves or vibrating in response to received waves.

πŸ’‘Capacitive Transducer

A capacitive transducer is a type of sensor that uses the principle of a capacitor, which consists of two conductive plates separated by a dielectric material. The video explains that in a capacitive ultrasonic sensor, one plate sits on a dielectric membrane above a cavity, and when current is applied, it causes the membrane to vibrate, generating ultrasonic waves. This type of transducer can be integrated into electrical circuits, making them compact and suitable for miniaturization.

πŸ’‘Frequency

Frequency in the context of the video refers to the rate of vibration of the ultrasonic sensor's membrane, which determines the pitch of the sound waves it emits. Higher frequencies result in shorter transmission distances, while lower frequencies are better for long-range detection. The script mentions that ultrasonic sensors work best at specific frequencies, depending on whether they are designed for short or long-range sensing.

πŸ’‘Blind Zone

The blind zone is a term used in the video to describe the area too close to the ultrasonic sensor where objects cannot be detected. If an object is within this zone, the sensor will not be able to register it because the sound reflects back too soon after being emitted. This concept is important for understanding the practical limitations of ultrasonic sensors in close proximity detection.

πŸ’‘Detection Range

Detection range is the distance within which an ultrasonic sensor can effectively detect objects. The video script explains that this range is influenced by the frequency of the transducer's vibration and the size of the object. Larger objects can be detected from farther away compared to smaller ones, which may only be detectable within a limited distance.

πŸ’‘Hobbyist Sensors

Hobbyist sensors refer to pre-built ultrasonic sensors that are designed for use by hobbyists and makers. These sensors often come with a board that helps process the data and have pins for power, ground, and signal transmission. The video mentions that these sensors are commonly used in projects to measure distance, offering a practical application of the technology discussed.

Highlights

Ultrasonic sensors detect object distances without physical contact.

Dolphins and bats use echolocation, similar to how ultrasonic sensors work.

Ships and submarines use sonar to detect underwater objects, similar to how ultrasonic sensors function.

The formula for calculating distance with ultrasonic sensors is 1/2 * t * c, where t is the time and c is the speed of sound.

Sound travels faster in water, about 4.3 times faster than in air.

Ultrasonic sensors generate and detect sound waves through a vibrating membrane.

Humans can hear sounds between 20 Hz and 20 kHz, but ultrasonic sensors operate above 20 kHz.

Ultrasound is used in medical imaging, and ultrasonic sensors use sound waves to measure distance.

Ultrasonic transducers can be piezoelectric or capacitive.

Piezoelectric devices use a crystal substance that flexes to generate ultrasonic waves.

Capacitive transducers are built similarly to capacitors with charged plates that move to generate ultrasonic waves.

Capacitive transducers are micro-machined and can be used in arrays to increase bandwidth.

Most commercial ultrasonic sensors currently use piezoelectric technology, but capacitive technology is emerging.

Ultrasonic sensors detect objects within a cone-shaped detection area.

Objects need to be large enough and close enough to be detected by ultrasonic sensors; materials that absorb sound may be difficult to detect.

Transcripts

play00:01

the following program is brought to you

play00:02

by element 14

play00:04

the electronics community where you can

play00:05

connect and collaborate with top

play00:07

engineers from around the world

play00:09

join now at element14.com presents

play00:13

hi i'm karen and welcome back to the

play00:15

learning circuit in this lesson i'm

play00:16

going to talk about ultrasonic distance

play00:18

sensors

play00:19

let's do it

play00:19

[Music]

play00:25

an ultrasonic sensor can detect the

play00:27

distance of an object within its range

play00:29

without requiring physical contact in

play00:32

nature

play00:33

dolphins and bats are two animals that

play00:34

can detect their surroundings by using

play00:36

echolocation

play00:37

both creatures emit sound waves which

play00:39

echo off nearby objects

play00:41

bouncing waves back towards the animals

play00:44

the animals use these echoes to locate

play00:46

and identify objects in their

play00:47

surroundings

play00:50

ships and submarines use the same

play00:51

technique to detect objects under water

play00:53

with sonar

play00:55

the time it takes for the sound to

play00:57

reflect back to the sonar is used to

play00:58

calculate the distance of the objects

play01:01

the formula for calculating distance is

play01:03

one half t

play01:04

times c t is the time it takes for the

play01:08

ultrasound to travel to the object

play01:10

and return to the sensor since that's

play01:13

twice the distance between the sensor

play01:15

and the object

play01:16

we multiply by half so that the distance

play01:18

is only counted once

play01:20

then times c the speed of sound or sonic

play01:23

speed

play01:24

the speed of sound is about 767 miles

play01:27

per hour at sea level

play01:29

but sound can travel 4.3 times faster in

play01:32

water than in air

play01:34

ultrasonic sensors use a vibrating

play01:37

membrane to both generate

play01:38

and detect the sound used to determine

play01:40

distance

play01:42

humans can typically hear sounds within

play01:43

the acoustic frequency range of 20 hertz

play01:46

up to 20 kilohertz above 20 kilohertz is

play01:49

the ultrasonic range

play01:52

ultrasonic sounds are those with waves

play01:54

with a frequency above the upper limit

play01:56

of human hearing

play01:57

ultrasound is used in medical imaging

play02:00

the faster the membrane vibrates the

play02:02

higher the frequency

play02:04

ultrasonic sensors convert energy

play02:05

between electrical signals and sound

play02:07

waves

play02:08

making them transducers a transducer

play02:11

is a device that converts a signal from

play02:13

one form of energy to

play02:14

another in this case electric current

play02:18

and sound waves

play02:19

ultrasonic transducers typically

play02:21

function in one of two ways

play02:23

piezoelectric or capacitive i've talked

play02:26

about piezoelectric devices before in

play02:28

previous learning circuit videos

play02:30

like with microphones and speakers and

play02:32

accelerometers

play02:34

you can find the links to those videos

play02:35

in the description below

play02:37

piezoelectric devices use a crystal

play02:39

substance that when a charge is

play02:41

introduced

play02:42

the particles rearrange causing a

play02:44

membrane or diaphragm to flex back and

play02:46

forth very quickly

play02:47

in ultrasonic sensors the diaphragm

play02:49

movement can either generate ultrasonic

play02:52

waves

play02:52

or will vibrate in response to received

play02:55

waves

play02:55

and translate that energy into

play02:57

electrical signals

play02:59

the other type of transducer is

play03:00

capacitive

play03:02

let's look back at what we learned about

play03:03

capacitors in a previous video

play03:05

capacitors have two conductive plates

play03:07

separated by a dielectric material

play03:11

when connected to power one plate gains

play03:13

electrons

play03:14

becoming negatively charged while the

play03:16

second plate loses electrons

play03:18

becoming positively charged in a

play03:20

capacitive transducer

play03:22

one plate or electrode sits on a

play03:25

dielectric membrane

play03:26

which is suspended above a cavity in its

play03:28

silicon substrate

play03:30

the substrate acts as the second

play03:32

electrode

play03:33

when current is applied to the

play03:34

transducer the electrodes become

play03:37

charged and the top plate is attracted

play03:39

to or repelled by

play03:40

the lower plate moving the membrane

play03:45

applying an alternating current can

play03:46

cause this to happen quickly

play03:48

making the membrane vibrate and act as a

play03:50

diaphragm generating ultrasonic waves

play03:54

it's helpful to understand that sound

play03:55

waves are just moving air

play03:58

when a diaphragm vibrates air is pushed

play04:00

out in waves at the same frequency as

play04:02

the vibration

play04:05

when the sound reflects off nearby

play04:07

objects and bounces back

play04:09

it is again airwaves of a certain

play04:11

frequency that cause the diaphragm to

play04:13

vibrate

play04:14

and the transducer converts this energy

play04:16

to electrical signals in the form of

play04:18

alternating current

play04:20

each ultrasonic sensor emits sounds in a

play04:22

specific frequency

play04:24

so whatever frequency it emits is the

play04:26

same frequency it is looking to detect

play04:28

this is why sounds of other frequencies

play04:30

don't affect the sensor's readings

play04:32

capacitive transducers often abbreviated

play04:35

to cmut

play04:37

are micro machined the micro machine man

play04:39

hey presenting the genuine original

play04:40

closely collectable most mighty

play04:41

miniature episodes of the real things

play04:43

micro machines i'm not talking about the

play04:45

tiny toy cars from the 80s

play04:47

more like men's technology unlike

play04:49

piezoelectric transducers

play04:51

siemens can be manufactured using

play04:53

methods similar to mems

play04:55

and integrated directly into electrical

play04:57

circuits

play04:58

not only does this make them cheap and

play04:59

easy to manufacture but they can be

play05:01

tightly packed into arrays

play05:03

with seamlets that use a variety of

play05:05

frequencies yielding an overall larger

play05:07

bandwidth

play05:09

this is still a relatively new concept

play05:11

in the field of ultrasonic transducers

play05:13

so most commercial ultrasonic sensors

play05:15

still use piezoelectric technology

play05:17

but since humans are obsessed with

play05:19

making our electronics as small and

play05:20

compact as possible

play05:22

i'm guessing that will change pretty

play05:23

quickly in the years to come

play05:25

while some sensors use a separate sound

play05:28

emitter and receiver

play05:29

it's also possible to combine them into

play05:31

a single device

play05:32

having an ultrasonic element alternate

play05:34

between emitting

play05:35

and receiving signals the sound from the

play05:39

emitter comes out at an angle

play05:40

resulting in a cone-shaped detection

play05:42

area

play05:43

this shape will vary slightly depending

play05:45

on the model

play05:47

notice that most of these models can

play05:49

detect up to between 5 and 15 feet away

play05:52

and in particular on these hrlv models

play05:55

the different fields show the detection

play05:57

of various diameter objects

play05:59

a smaller object like a one-quarter inch

play06:02

dowel can only be detected for a limited

play06:04

distance

play06:05

while a larger object can be detected

play06:07

from farther away

play06:09

the range of an ultrasonic sensor is

play06:11

determined by the frequency of vibration

play06:12

of the transducer

play06:14

as the frequency increases the sound

play06:17

waves transmit for progressively shorter

play06:19

distances

play06:20

so long-range ultrasonic sensors work

play06:22

best at lower frequencies

play06:24

and short-range ultrasonic sensors work

play06:26

best at higher frequencies

play06:30

detection is dependent on the ultrasound

play06:32

reflecting off the objects

play06:33

and back to the sensor there are a

play06:36

variety of factors that can prevent an

play06:38

object from being detected

play06:40

as stated the object has to be close

play06:42

enough and large enough

play06:44

if an object is too close to the sensor

play06:47

it may be in what is known as the blind

play06:49

zone

play06:56

single unit sensors can only emit or

play06:58

detect at any given time

play07:01

if it is emitting it cannot detect

play07:03

objects that are too close

play07:05

will reflect sound too soon to be

play07:07

detected

play07:09

if the sensor is mounted too low the

play07:11

floor may give off false positives

play07:14

the object also needs to be shaped in a

play07:16

way that the waves are reflected back

play07:18

and not in a direction away from the

play07:20

sensor

play07:22

materials that absorb sound don't

play07:24

reflect it well

play07:25

so they may be difficult to detect

play07:28

a fortunate feature is that ultrasonic

play07:30

sensors are not affected by color

play07:32

or other visual characteristics of the

play07:34

detected object

play07:36

and can even detect clear plastic and

play07:38

the surface of water

play07:40

some units are even fully enclosed and

play07:42

waterproof in order to be used for water

play07:44

level sensing

play07:46

the ultrasonic sensors most commonly

play07:47

used by hobbyists

play07:49

come pre-built into boards that help

play07:50

process the data

play07:53

these will have pins for power and

play07:54

ground and either one or two pins

play07:57

used to trigger the signal emitted out

play07:59

and detect the echo signal that is

play08:01

received

play08:03

while there are a variety of sensors

play08:05

that can simply detect movement or an

play08:06

object in its range

play08:08

ultrasonic distance sensors are special

play08:10

in that they can tell just how far away

play08:11

that object

play08:12

is be sure to check out my next video

play08:15

where i show how to use one of these

play08:16

handy devices

play08:17

in a project in the meantime as usual if

play08:20

you have any comments or questions about

play08:22

what i talked about in this video

play08:23

you can find me maker karen by posting

play08:26

on the element 14 community on

play08:28

element14.com forward slash

play08:29

the learning circuit happy learning

play08:41

you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Ultrasonic SensorsDistance MeasurementEcholocationTransducersDIY ProjectsElectronicsMakersEducationalTechnologyInnovation