AM Ultrasonic Transmitter And Receiver

AM ultrasonic transmitter and receiver

Most often ultrasonic transducers are used for distance measurements, and in the DIY world, usually as a way for robots to detect obstacles. But for a weekend project, [Vinod.S] took the ultrasonic transmitter and receiver from a distance-meter module and used amplitude modulation to send music ultrasonically from his laptop to a speaker, essentially transmitting and receiving silent, modulated sounds waves.

The transmitter and receiver
The transmitter and receiver

For the transmitter, he turned an Arduino Pro Micro into a USB sound card which he could plug into his laptop. That outputs both the audio signal and a 40 kHz carrier signal, implemented using the Arduino’s Timer1. Those go to a circuit board he designed which modulates the carrier with the audio signal using a single transistor and then sends the result out the ultrasonic transmitter.

He took care to transmit a clear signal by watching the modulated wave on an oscilloscope, looking for over-modulation and clipping while adjusting the values of resistors located between the transistor, a 5 V from the Arduino and the transmitter.

He designed the receiver side with equal care. Conceptually the circuit there is simple, consisting of the ultrasonic receiver, followed by a transistor amplifier for the modulated wave, then a diode for demodulation, another transistor amplifier, and lastly a class-D amplifier before going to a speaker.

Due to the low 40 kHz carrier frequency, the sound lacks the higher audio frequencies. But as a result of the effort he put into tuning the circuits, the sound is loud and clear. Check out the video below for an overview and to listen to the sound for yourself. Warning: Before there’s a storm of comments, yes the video’s shaky, but we think the quality of the hack more than makes up for it.

What else can you do with the ultrasonic transducers? You could wire a bunch of them to a Raspberry Pi to make a piano interface. Or you could use a larger transducer to make an affordable ultrasonic soldering iron.

22 thoughts on “AM Ultrasonic Transmitter And Receiver

    1. yes, I just tried last night and it worked, but my laptop cuts off at 45ish kHz so I had to use 30kHz as the carrier wave. you don’t even need the arduino, as you can do the modulation in audacity.

    1. Like how, I’m having a mental fart. Like noted above with an up converter from the laptop speakers and a microphone plug with transducer, then downconverter using speakers in another radio? Shifting phase would be a RC circuit, other than a mixer requiring an oscillator or maybe advanced IC/FPGA…. hhmmm…

    2. I had the idea last night to use a ELF/VLF antenna directly from the speaker output and speaker input. I’m guessing an AM antenna like ferrite loopstick or even better lower magnetic permeability material core tuned for the audio connections optimal range is more passive. Would be interesting to determine the most directional smallest design. Like a spiral conical core and winding maybe?

  1. >”Due to the low 40 kHz carrier frequency, the sound lacks the higher audio frequencies.”

    That’s not the issue. The RC filter is set at 1.6 kHz which is mainly responsible for the poor high frequency response.

    The reason is that a simple RC lowpass filter drops only -20dB per decade, so in order to get rid of the 62.5 kHz PWM frequency you have to set the filter really low. At 6.2 kHz cutoff frequency, you still got 10% of the original PWM signal present in the output.

    To get better fidelity out of the system, you might as well transmit the PWM signal as-is because the loudspeaker won’t play it back. It’s only a problem if you have proper speakers, or really tiny tinny speakers because those can reach ultrasound frequencies and may burn with you pushing a 62 kHz square wave through.

    1. Or, to put it otherwise, the loudspeaker sees the PWM waveform as a full swing 5 Volt peak to peak square wave and tries to play it back. A common midrange speaker has too much impedance at that frequency to do anything – it just blocks the current – but a small speaker like an earbud or a tweeter will pull watts of power and burn your tiny amplifier as well as itself.

      That’s why you filter the PWM out, and in this case it means anything up from 1.5 kHz gets attenuated. A critically damped RLC filter would drop -40 dB per decade and allow you to lift the cutoff frequency to around 6-8 kHz without letting too much of the PWM frequency through.

      If you want to go hi-fi with this, you need second and third order filters on both ends.

      1. Exactly, and the signal can be reconstructed at the recieving end, which achieves automatic gain control.

        You could probably get away with transmitting at 44.1 kHz as well.

  2. You can modulate your audio in audacity, you can even do FM. My laptop will happily play up to 45ish kHz from the internal speares, and I guess most laptops will do. you can use a good mic on another computer with some SDR and you can easily demodulate the audio and even get full 20khz audio from it. alternatively you can use an audio amp (my akai goes all the way up to the 45kHz my laptop outputs) and use a wire as an antenna instead of the speakers, and you’ll have your own LF radio wich you can pick up using a wire connected to a good soundcard. 30kHz seemed to be the best carrier frequency for me, since the laptop refuses to play anything above 45kHz even after setting the output sampling rate to 192kHz. I tested all of this and everything worked very nicely, to my surprise.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.