Steering Sound With Phased Array

entiresystem

[Edward] and [Tom] managed to build an actual phased array speaker system capable of steering sound around a room. Powered by an Atmega 644, this impressive final project uses 12 independently controllable speakers that each have a variable delay. By adjusting the delay at precise intervals, the angle of maximum intensity of the output wave can be shifted, there by “steering” the sound.

Phased arrays are usually associated with EM applications, such as radar. But the same principles can be applied to sound waveforms. The math is a little scary, but we’ll walk you through only what you need to know in case you’re ever in need to steer sound with a speaker and a servo phased array sound system.

The physics of a phased array system can be demonstrated with a diffraction grating.

 

Doubleslit3Dspectrum

 

The above animation shows what happens to a waveform as it passes through openings in a barrier. By counting the number of openings, obtaining the distance between the openings and combining this knowledge with the properties of the incoming waveform, one can find the area of most intensity.

 

PhasedArray

 

This is the phased array setup. If you consider each speaker as openings, you can apply the same technique. [Edward] and [Tom] hammered it out, and found that the output intensity can be calculated by the following equation:

 

Untitled

 

Where vs = speed of sound, d = distance between speakers, and td  = a time delay. By varying the time delay, you vary the angle of maximum intensity. [Edward] and [Tom] tested their theory in MATLAB, and it worked!

Below is the theorized output of several frequencies with no delay.

zerodegrees

 

This is the output with a .3ms delay.

15degrees

 

Be sure to check out [Edward] and [Tom’s] project for complete details, source code, schematics, ext. Below is a video showing the project working in real-time.

34 thoughts on “Steering Sound With Phased Array

  1. In addition to steering the sound as described in the build you could focus the sound at a certain distance from the speaker array but delaying progressively from the outer speakers to the center one (with the greatest delay) . Changing the delay to change the distance.
    This is fundamentally the way ultrasound imaging and steered Doppler works. There is a flat transducer with many pizeo elements that are fired with delays to focus the beam of sound for imaging or angle it for steered Doppler.

  2. Hmm, does the same formulas work backwards for microphones? Or how much more code does that require :). It would be fun to have an array of microphones and extract n distinct sound streams, isolated by their location rather than frequency.

    1. Fundamentally yes, this works in reverse to figure out where sound originated from. In the simple sense, that’s how your hearing works. You work out from when you hear the sound at the various locations the angle the sound occurs at. You have to come up with the fast matching to locate sound captured at one mic and locate the same sound on the other mics. As you noted, you have to isolate each sound from the others, a non-trivial task. Single frequency pulses, where everyone plays nice, stays on a single frequency, and you can use simple FFTs to break them apart, then figure out when they arrive at each mic. Reality is that you have something closer to noise, and you have to correlate what might match up (guess), then see if the guessed original sounds appear on other mic inputs. Just figuring out what sound is from a single source it a huge problem in itself, figuring the angle it trivial once you have figured out how to separate the various sounds.

    2. Yes it’s possible. All those antenna arrays (e.g. LOFAR) use this principle. The difficulty doesn’t lie in “how much code”, but “what kind of mathematics”. But you can do some fun things with it, like recording the inputs and “pointing” the array at a later moment.

    1. They manipulated the math to get something that would work for all frequencies. They said that phase / frequency was equivalent to a time delay, but did not elaborate on this. They we’re not sure it would work, but verified it in matlab.

  3. Very interesting project for sure, I just wonder how noticable the effect is? I don’t think it would be as though there is no sound when the main lobe is steered away from you to deafening when it is… it would be like playing with the pan knob on a stereo system (remember those days?) or a phase shifter guitar effect. And as someone pointed out and is is apparent in the spectral analysis above, frequency is a factor, as each band would need to be shifted a different amount. You could probably strengthen the effect by splitting the sound into sperate bands via a filter array and then shift them individually before brodcasting.

  4. I was in a museum the other day and they had a flat speaker that directed the sound towards the viewer of a video screen. And at TED I saw a similar device that was able to direct sound at one particular person in the audience. I think it boils down to simulating a parabola shaped transmitter…

    1. Actually, there is at least one company I am aware of commercially producing focused arrays based on this phased array principle which targets museums and other such venues. They boast some pretty high-profile installations, for example the Country Music Hall of Fame. I got a tour of their production facility years ago when I was in middle school; the guy who runs the company is married to my then English teacher. http://www.dakotaaudio.com The demo was pretty awesome; I was astounded at how well these things worked.

  5. interesting, the hardware looks very much like a wave field synthesis setup, although the goal appears to be different.
    Whereas WFS uses the speaker array to simulate sound waves originating at virtual locations in a 3D space, this project focuses more on the effect at a certain point in front of the speakers.

  6. Hmmm…. SAR applied to sound never occurred to me. Excellent thinking!

    Applications… hmmm.. haunted houses. Ohhh… I got it! A new way to screw with the squirrels in the yard! Furry little things, should be able to give them the impression they’re being petted! Neighbors cats too!

    As for a practical application, maybe get rid of that groundhog for good.

    1. I agree with tjbaudio. I sell and install the Renkus-Heinz digitally steerable arrays. They work very well in sound reinforcement. Especially popular in large churches. They can throw sound 250′ easily. Beamware is RH’s software package to calculate the parms and upload to the DSPs.

  7. I just designed an audio system for a lobby space with a few speaker arrays just like this (for music, tv playback, speech, and performances). It is very cool stuff. I wish more facilities used the technology. We might actually be able to hear what people are saying over PA systems.

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.