Author Topic: Audio Beamforming with Speakers from AVR  (Read 4961 times)

0 Members and 1 Guest are viewing this topic.

Offline lgarboTopic starter

  • Newbie
  • Posts: 3
  • Country: us
Audio Beamforming with Speakers from AVR
« on: November 30, 2016, 08:35:25 pm »
I'm trying to use between 8 and 16 speakers to beamform an audio signal to direct it in a certain direction. The sounds I'm generating aren't particularly complex (I'm currently generating the sound using PWM on a ATTiny). I know that the audio is low enough frequency I could phase shift digitally with 8 to 16 DACs, however that seems like overkill and a major unnecessary expense in terms of board space, processor time, and components.

Talking to a friend, I found out there are RF phase shifters that work in the GHz range. I searched around and couldn't find anything below 1GHz. This seems to be exactly what I'm looking for except in the AF frequency range. Does such a component exist? If not am I missing a simple solution? Some sort of buffer?
 

Offline 1design

  • Regular Contributor
  • *
  • Posts: 166
Re: Audio Beamforming with Speakers from AVR
« Reply #1 on: November 30, 2016, 08:50:13 pm »
Delay lines are impractical at audio wavelengths. In audio all-pass filters are used as a passive solution and variable buffers as the active solution. You can buy a mid range car stereo and it has time shifts for each speaker so you can do phase/time alignment in a car environment. They are done by buffering the channel for N number of samples.

BR
 

Offline LaserSteve

  • Super Contributor
  • ***
  • Posts: 1599
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #2 on: November 30, 2016, 08:55:09 pm »
Analog AF phase shifters are often known as All Pass Filters...   Analog  Circuits for  Fixed shifts of 90 degrees for creating SSB radio signals over limited voice frequencies  are readily available, but wide range phase shifting has little use outside of Sonar , Some concert grade speakers, car audio, and a  few crazy music synthesizer folks.   

Your probably up a creek looking for discrete modules.

Steve
« Last Edit: November 30, 2016, 08:58:58 pm by LaserSteve »
"I calculated the stored energy, and it is enough to play the Dance / DJ Extended edition of "Baby Shark" in all 100 headsets for the production floor team simultaneously over 100,000 Times."

Well, I had to explain it to my boss, somehow.  He's an Accountant,  not a PHB.
 

Offline ehughes

  • Frequent Contributor
  • **
  • Posts: 410
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #3 on: November 30, 2016, 09:16:27 pm »
Back up for a second.     Is this a narrow band tone you are trying to beamform?     If not,  your approach will not be functional


   What is the geometry of your array?   How did you get to this geometry?   How are are planning on computing your phase shadings?

Depending on what you are trying to do,   You could use amplitude shading only.

I think your time would be better spend doing some simulations in Julia to assess what you you really before you build any hardware.

That and get a copy of Kindler/Frey (Acoustics) and study the chapter on array/beam forming.
 
The following users thanked this post: 3db


Offline lgarboTopic starter

  • Newbie
  • Posts: 3
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #5 on: December 01, 2016, 03:50:16 am »
Wow, lots of great info!

@ehughes, the signals are discrete tone so beamforming should generally be possible. I'm intrigued by the amplitude shading and I'll certainly read more.

Otherwise, it seems the best option would probably be a multichannel DAC chip. From what I can tell the all pass filters would end up being more complex!
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9780
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Audio Beamforming with Speakers from AVR
« Reply #6 on: December 01, 2016, 04:24:41 am »
What about a FPGA driving some MOSFET output stages, with the PWM implemented in the FPGA itself?
Cryptocurrency has taught me to love math and at the same time be baffled by it.
Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
BTC: 18813fu8LQEdDwH9YLM1ABed3XwCfeSeFi
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #7 on: December 01, 2016, 04:32:30 pm »
Another thing to keep in mind is that unless you're setting this up in an anechoic chamber, or at least a room 99% covered in drapes and carpet, you're not going to notice a huge beamforming effect.  The reflections from hard surfaces, particularly walls, floor, ceiling, ...  will fill in the sound.  Add to that the ear's logarithmic response and, it's actually quite difficult to hear a difference between supposed peaks and nulls in the acoustic field.

To get a feel for this you could set up two speakers playing the same sinusoid in phase, then walk a line broadside to them.  Can you hear the interference peaks and nulls predicted by theory?  If not, you won't be hearing them in your more complex setup either.
« Last Edit: December 02, 2016, 12:09:30 am by mark03 »
 

Offline barry14

  • Regular Contributor
  • *
  • Posts: 102
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #8 on: December 01, 2016, 11:20:47 pm »
Analog delay lines at audio frequencies to do beamforming was once widespread in sonar designs.  The advent of digital signal processing brought an end to that.  However, analog delay lines do work well and have the advantage of no power required, low noise since it uses passive L's and C's, and the ability to form 2 beams in opposite directions from one delay line.  We took advantage of that in a sonar system that I worked on which had an operating band of 2 to 8 kHz.  We had five delay lines which formed a total of 10 beams across a 180 wide sector. Another advantage of the analog delay line is that it is easy to implement amplitude shading (to reduce sidelobe levels) internal to the delay line.  The main disadvantage of analog delay lines is that they generally must be custom made for each application which, of course, can make them relatively costly.
 

Offline LaserSteve

  • Super Contributor
  • ***
  • Posts: 1599
  • Country: us
Re: Audio Beamforming with Speakers from AVR
« Reply #9 on: December 02, 2016, 05:23:30 am »
After building some 4 driver, 39 inch long, line  arrays for my church, I found there is only a limited frequency range where I could hear actual near field  lobing at.

 Bass for example is at least a twenty foot long wave in air.  So walk-by lobe testing is tricky in compact arrays unless you find the right frequency range.

I started using Holm Impulse software and a reference mic so I could really dial the space in. Holm Impulse is freeware, and worth playing with.

Steve
« Last Edit: December 02, 2016, 05:27:56 am by LaserSteve »
"I calculated the stored energy, and it is enough to play the Dance / DJ Extended edition of "Baby Shark" in all 100 headsets for the production floor team simultaneously over 100,000 Times."

Well, I had to explain it to my boss, somehow.  He's an Accountant,  not a PHB.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->