Re: Low-pass filter and amp design
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Fri, 02 Dec 2005 09:17:23 -0800
mjt@xxxxxxx wrote:
A filter cut off of 4.5kHz is not the right choice for a sampling rate of 9kHz. It may be fine for your PWM frequency, but if you try to generate audio at close to 4.5kHz you'll hear significant aliasing.I'm seeking some advise on designing a low-pass filter and amp circuit. Unfortunately I've never been trained in electronics, so I'm learning things as I need to!
My application is portable, battery based. The battery is rated as 9.6v and there will be a regulated supply at +5v for the CMOS area. I'm looking to generate an audio signal from a PIC (or similar) using PWM. The digital side I'm fine with, its the analogue side I don't know. I need to clean up the PWM signal and output it to a speaker at reasonable volume.
I have the following objectives:
* Minimise power usage where possible * Have a shut-down signal that puts the audio circuit in to standby * Keep the component count as low as possible * It has to be cheap
The audio quality doesn't have to be hifi level, a reasonable quality is fine. I've looked at loads of possible circuits, but I can't find anything concrete on how to calculate values to filter at the right frequency. Incidentally I expect the sample rate to be around 9Khz, therefore a cut-off at 4.5Khz would be best. The modulation frequency from the PWM is going to be around 36Khz. These aren't fixed figures just yet, because I need to do a bit more research on the chip capabilities. If possible I'll run it on a higher PWM frequency, but these values are good indicators for the end design.
Thanks in advance for any help given!
Michael
You have to ask yourself: What is the highest frequency that I'm going to play, and what's an acceptable amount of aliasing? That, plus the sampling rate, will tell you the order of the filter you'll need. I'd probably choose a 3kHz filter because it's standard telephone-quality. You can, if you're clever, get a 3-pole filter with a single amplifying element. If you're a beginner just find a cookbook 2-pole audio filter and use that; if it's not enough filtering then cascade two of them.
--
Tim Wescott Wescott Design Services http://www.wescottdesign.com .
- References:
- Low-pass filter and amp design
- From: mjt
- Low-pass filter and amp design
- Prev by Date: Re: using a current to measure a time interval
- Next by Date: Re: how can i make a amplifer
- Previous by thread: Re: Low-pass filter and amp design
- Next by thread: Re: Low-pass filter and amp design
- Index(es):
Relevant Pages
|