370 likes | 531 Views
Digital Audio Sound System. ECE 345 – Senior Design Chris Gouveia Lawrence Lau December 4, 2003. Overview. Background Goals Initial Design Design Decisions Challenges Final Design Testing Final Analysis. Typical Sound System. Our Digital Sound System. Transmitter. Receiver.
E N D
Digital Audio Sound System ECE 345 – Senior Design Chris Gouveia Lawrence Lau December 4, 2003
Overview • Background • Goals • Initial Design • Design Decisions • Challenges • Final Design • Testing • Final Analysis ECE 345 Senior Design - Gouveia, Lau
Typical Sound System ECE 345 Senior Design - Gouveia, Lau
Our Digital Sound System Transmitter Receiver ECE 345 Senior Design - Gouveia, Lau
Our Digital Sound System • Project Benefits • Eliminates long cable runs • Minimizes cable clutter • Reduces cost • Reduces noise • Lowers the number of fault points • Simplifies system installation • Allows system to be upgraded to a digital one easily ECE 345 Senior Design - Gouveia, Lau
Our Digital Sound System • Transmitter • Input analog sound from source • Convert audio to digital format • Output Ethernet packets onto network • Receiver • Input Ethernet packets from network • Convert audio to analog format • Amplify output • Output analog audio to destination ECE 345 Senior Design - Gouveia, Lau
Goals • 96kHz, 24 bit sampling • Stereo signaling • High fidelity • Minimal delay ECE 345 Senior Design - Gouveia, Lau
Design Process • Start from the ends • Analog to Digital converter needed • Digital to Analog converter needed • Network processors in the middle • Microcontroller or microprocessor controlled • Glue logic ECE 345 Senior Design - Gouveia, Lau
Functional Diagram Process Analog Signal A/D Conversion Collect Several Samples Create Network Packet Pass to Ethernet Controller Transmit Amplify Signal D/A Conversion Buffer Samples for D/A Decode Network Packet Pass to Controller Receive ECE 345 Senior Design - Gouveia, Lau
Block Diagram Transmitter Sound Source Analog Circuitry Analog to Digital Converter Controller Ethernet Controller/PHY Speaker Analog Circuitry Digital to Analog Converter Controller Ethernet Controller/PHY Receiver ECE 345 Senior Design - Gouveia, Lau
Initial Analysis • Digital audio data rate ECE 345 Senior Design - Gouveia, Lau
Initial Analysis • Digital audio sampling rate ECE 345 Senior Design - Gouveia, Lau
Initial Analysis • Digital audio buffering rate ECE 345 Senior Design - Gouveia, Lau
Performance Requirements • 96 kHz sampling • 24 bit fidelity • Less than 5% harmonic distortion • 15ms maximum delay ECE 345 Senior Design - Gouveia, Lau
Design Decisions • Analog and Digital Converters • Sampling rate • Bit depth • Interface • Microcontroller • Clock speed • Memory • Ethernet capabilities ECE 345 Senior Design - Gouveia, Lau
Design Decisions • Microcontroller • Motorola Coldfire 5282 Microcontroller • Analog to Digital Converter • Texas Instruments PCM1804 • Digital to Analog Converter • Texas Instruments PCM1716 • Amplifier • National Instruments LM4832 ECE 345 Senior Design - Gouveia, Lau
Challenges • Microcontroller operating system • Documentation • Microcontroller I/O • Crystal Oscillator • Power ECE 345 Senior Design - Gouveia, Lau
Challenges • Microcontroller operating system • Scheduling algorithm • Slightly limited feature set ECE 345 Senior Design - Gouveia, Lau
Challenges • Documentation • Poor documentation of system functions and examples • Made coding difficult • Required digging down into system code to understand functionality ECE 345 Senior Design - Gouveia, Lau
Challenges • Microcontroller I/O • Minimum of 24 I/O pins required • Not enough general purpose I/O pins • Data bus requires protocol • No daughter processor to perform protocol with microcontroller ECE 345 Senior Design - Gouveia, Lau
Challenges • Crystal oscillator • Unable to provide clean and stable clock source • Dirtied power and ground planes ECE 345 Senior Design - Gouveia, Lau
Challenges • Power ECE 345 Senior Design - Gouveia, Lau
Final Design Transmitter Analog Circuitry Analog to Digital Converter Sound Source Speaker Amplifier Digital to Analog Converter Controller Receiver ECE 345 Senior Design - Gouveia, Lau
Final Design • Successes • Microcontrollers communicated via UDP • A/D and D/A transmitted audio • Microcontroller controlled D/A and amplifier • Failures • Transmit audio data using microcontrollers ECE 345 Senior Design - Gouveia, Lau
Testing • Spectrum analysis • Signal to Noise Ratio • Total Harmonic Distortion ECE 345 Senior Design - Gouveia, Lau
Testing • Spectrum analysis • 10 second sound sample • 1kHz tone • 10kHz tone ECE 345 Senior Design - Gouveia, Lau
Testing • Spectrum analysis • 10 second sound sample • Dave Matthews Band – Crash Into Me • MP3 encoded • Captured using a consumer sound card • Control sample – Blue • Sample through system - Red ECE 345 Senior Design - Gouveia, Lau
Testing ECE 345 Senior Design - Gouveia, Lau
Testing • Spectrum analysis • 1 kHz tone • Generated by function generator • Captured using a consumer sound card • Control sample – Red • Sample through system - Blue ECE 345 Senior Design - Gouveia, Lau
Testing ECE 345 Senior Design - Gouveia, Lau
Testing • Spectrum analysis • 10 kHz tone • Generated by function generator • Captured using a consumer sound card • Control sample – Red • Sample through system - Blue ECE 345 Senior Design - Gouveia, Lau
Testing ECE 345 Senior Design - Gouveia, Lau
Testing • Signal to Noise Ratio • SNR is 45.5 dB • Affected by high noise floor • Determined using Distortion Analyzer and a 1kHz test tone ECE 345 Senior Design - Gouveia, Lau
Testing • Total Harmonic Distortion • Measured using Distortion Analyzer • Sinusoid generated by function generator • Output fed through commercial mixer to generate differential output required by Distortion Analyzer ECE 345 Senior Design - Gouveia, Lau
Testing ECE 345 Senior Design - Gouveia, Lau
Final Analysis • If we had one more month: • Use an FPGA to offload data gathering from microcontroller • Let microcontroller only send network traffic • Use a clock buffer and PLL to provide stable clock source • Use separate logic and analog power sources • Develop cleaner power regulation ECE 345 Senior Design - Gouveia, Lau
Questions ? ECE 345 Senior Design - Gouveia, Lau