<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="None">
  <name>Design Decisions for Audio Localization Implementation</name>
  <metadata>
  <md:version>1.3</md:version>
  <md:created>2004/12/15 10:00:34 US/Central</md:created>
  <md:revised>2004/12/15 15:55:31 US/Central</md:revised>
  <md:authorlist>
      <md:author id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:author>
      <md:author id="joecole">
      <md:firstname>Joseph</md:firstname>
      
      <md:surname>Cole</md:surname>
      <md:email>joecole@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="joecole">
      <md:firstname>Joseph</md:firstname>
      
      <md:surname>Cole</md:surname>
      <md:email>joecole@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>beamforming</md:keyword>
    <md:keyword>design</md:keyword>
  </md:keywordlist>

  <md:abstract>In this section, we will go over the design decisions we had to make in the course of our project, including determining how many microphones we should use, as well as the spacing of the array.</md:abstract>
</metadata>

  <content>
    <para id="p1">
      With the <cnxn document="">theory</cnxn> out of the way, we
      have to face the real world and set more constraints.   
    </para>
    <section id="s1">
      <name>The Number of Microphones</name>
      <para id="s1p1">
	In this project, we are using the TI TMS320C6211 DSK board.
	This board has two channels that sample at 48 kHz and another
	channel that samples at 8 kHz.  Since we are not interpolating
	our signals, the sampling frequency is increasingly critical,
	so we can only use <emphasis>two microphones</emphasis>.
	<cnxn target="s1p1f1"/> shows what happens to the beampattern
	when we use reduced sampling frequency.
      </para>
      <figure id="s1p1f1">
	<name>Beampattern with Reduced Sampling Frequency</name>
	<media type="image/jpg" src="figure9.jpg"/>
      </figure>
    </section>
    <section id="s2">
      <name>Array Spacing</name>
      <para id="s2p1">
	In order to find the best array spacing (theoretically), we
	have to go through a few calculations.  In our most extreme
	case, the signals will be hitting our array from 180°.
	This gives us perfect destructive interference, as our phase
	difference will be <m:math><m:pi/></m:math>.  Therefore, we
	only need half of the wavelength:
	<equation id="s2p1e1">
	  <m:math>
	    <m:apply>
	      <m:eq/>
	      <m:ci>d</m:ci>
	      <m:apply>
		<m:divide/>
		<m:ci>λ</m:ci>
		<m:cn>2</m:cn>
	      </m:apply>
	    </m:apply>
	  </m:math>
	</equation>
	We can find λ by dividing the frequency of our sine
	wave (500 Hz) by the speed of sound (346.287 m/s):
	<equation id="s2p2e2">
	  <m:math>
	    <m:apply>
	      <m:eq/>
	      <m:ci>λ</m:ci>
	      <m:apply>
		<m:divide/>
		<m:ci>c</m:ci>
		<m:ci>f</m:ci>
	      </m:apply>
	      <m:apply>
		<m:divide/>

		<m:cn>346.287</m:cn>
		<m:cn>500</m:cn>
	      </m:apply>
	      <m:cn>0.69</m:cn>
	    </m:apply>
	  </m:math>
	</equation>
	and our array spacing <m:math><m:ci>d</m:ci></m:math> ends up
	being 0.345 m.
      </para>
    </section>
  </content>
  
</document>
