Smartphone-Experiment: Sonar (en)

phyphox
37 followers
2 Video Views·Dec 5, 2022
Turn your phone into a sonar with phyphox! In this video I will explain how this works.
Get phyphox for free on Android and iOS: http://phyphox.org
Support us: https://phyphox.org/donate
You can also watch a German version of this video:
https://youtu.be/3JtJoJAAgKU
Twitter: https://twitter.com/rwth_phyphox/
Facebook: https://www.facebook.com/phyphox/
Hey folks, this is Sebastian and today I will demonstrate how to turn your phone into a sonar.
When you hear the word sonar you probably think of movies with sub-elements and in fact we're
talking about the same thing because a sonar is simply a device which sends out some sound
and then listens for its echoes and by measuring the delay of this echo it can then calculate the
distance of objects. Your phone can do that too and this is how. For this experiment you will
Phifox is available for free on Android and iOS. Just visit phifox.org and follow the link to the
respective app store. You will need damping material to build a cavity to shield unwanted
echoes. I use some packaging material but most soft materials should do the job. For example
you could use some sofa cushions. And you need a reflector. Anything hard and flat should do
A rule is nice to verify the results. The problem with this experiment is that pretty
much everything in your environment generates echoes. So you will get an echo from the floor,
from the walls, from the ceiling and about just any object in your room and the result would be
quite incomprehensible. So instead we will build a cavity and then set up a very defined reflector.
Use your damping material to shield your phone from all but a single direction.
Place your rule next to the phone. Note that on phones usually the speaker is placed on the
opposite side of the microphone making it hard to define the distance of zero. If you want an
exact definition you can try to attach an external speaker to your phone. You should open the
experiment sonar in the audio section of Phifox. You might want to connect a second device to get
your results as your phone is hard to reach from within the cavity. Visit phifox.org to learn more
about setting up the remote access. I will now start the experiment and use the tray to create
echoes at different distances. The phone uses its speaker to send out a so-called chirp which is a
special sound that can be easily recognized by Phifox. It is a simple tone that rises its pitch
over five milliseconds which is so short that you will perceive it as a click. Actually Phifox will
send five chirps so you will hear five fast clicks. Simultaneously Phifox will record everything with
the microphone and it will compare what it hears to the chirp it just sent out. The result is a
graph of how much the recording resembles the original sound over time which mathematicians
call a cross correlation. The graph shows at which time the recorded signal sounds like an echo
and using the speed of sound Phifox will display it not as a function of time but as a function
of the distance. Now in the experiment you will see that you can tell where the tray is as it
clearly produces a strong peak in the graph. Here it is at 50 centimeters, here it is at one meter
and here it is at two meters. That's it for the demonstration of the phone sonar.
If you want to learn about other phone experiments visit phifox.org and see you next time.
