• The move to the new server is done. There are some software and database maintenance updates in process. This has us passing the hat around to help out. We appreciate any donations. Seriously, even a dollar helps. The payment page may be found here - https://www.audiokarma.org/support.html

Feedback sought on audio output circuit for Teensy 3.2

chushan

New Member
The first post in this forum make me feel a little nervous. Recently, I'm stepping up my Teensy carrier board game, and adding a header to output the DAC0/DAC08 signals. I haven't done analog anything for about 25 years, but here goes :-) This circuit goes on a carrier board for the Teensy that also interfaces with the rest of my system (robot.) I'd love some feedback from anyone who does audio/analog more regularly than me.

mVQ0q.jpg

The header conveniently also pulls 5V and 12V from the board for powering a small amplifier (one or a few Watts; typically something like HiLetgo 3-01-0453-A for 12V or PAM8403 for 5V; of course these don't actually meet the stated power, which is fine by me.)

The areas of consideration I have are:

1) Teensy DAC is 12 bit, and there's no anti-aliasing filter internally, so there will be some stair-stepping crunchiness. I need a bit of anti-aliasing filtering; it's more important to get somewhat smooth output up to 5 kHz than to get the highest sample rate entirely un-attenuated. That being said, this is for piping to two-inch speakers for robot speech and effect music, not for a Hi-Fi sound system, so an expensive (and big) brick wall filter isn't warranted. The 47 Ohm / 1 uF RC filter has a corner frequency of 3.4 kHz, which gives me about 18 dB attenuation at 20 kHz, which seems reasonable. I know that DC blocking is a high-pass filter, and I'm prepared to accept a high-pass filter with a corner frequency at 340 Hz from the 47 Ohm / 10 uF series pair. But how do these two filters interact?

2) The 5V rail is driven by a MuRata OKI-78SR05, which has some ripple at 400 kHz. Other than that, it's a great, reliable part. The 12V rail is driven by batteries or DC in, but also drives a number of motors, so there will be switching/EMI noise on that rail. In order to be nice to the amplifiers (who are cost-optimized, not quality-optimized,) I'm adding a bit of filtering on the power rails. I expect to draw 1A or less from either rail. Is this overkill, not enough, or about right? I'm using 6.3mm electrolytics for the 47 uF capacitors, and my main concern there is size -- anything significantly bigger would be a problem. The inductor is rated for 1.2A. An online calculator puts the Q of a 400 mOhm, 10 uH inductor, and 47 uF capacitor, at 1.15 and the corner frequency at 7.3 kHz, and a resonant frequency of 6.6 kHz. How should I think about this, if at all?

3) The amp will be right next to this board, so I don't worry about shielded connectors or balanced/differential signals or anything like that. But, isolating ground might be valuable in routing. So, what's the best ground pin on the Teensy to return the signals to? AGND or one of the GND pins, and if so, which? (I need to separate the signal ground and the power ground on the connector.)

4) How do surface mount X5R capacitors perform, audio-wise? Are they noisy? Do they pick up vibrations as microphones? Do I need to worry about mylar film capacitors and so forth? (Both 1 uF and 10 uF caps are X5R MLCC)

5) What else am I missing, or should think about? Any and all feedback happily accepted! (And thanks in advance)
Thanks all guys.
 
Register to hide this ad
I've never done anything with a Teensy, but plenty of Arduino stuff, only not with audio.

X5R and other ceramic caps are slightly microphonic, but this doesn't sound like a critical application. The biggest audio limitation sounds like the two-inch speakers, which for speech and effects -- is this for a toy of some kind? -- will be fine, and you probably can leave out the reconstruction filter (which is what I presume you mean -- anti-aliasing is at the ADC end), or treat it as non-critical. Likewise, a minimum of quick-n-dirty power supply filtering is probably fine as long as the hum isn't loud enough to be objectionable. If you've got noisy devices on the lines -- like DC motors -- you'll want plenty of bypass caps around the noisemakers.

By the way, you might find http://www.diyaudio.com/ a more helpful forum for invent-it-yourself audio. We tend to be a bit more about the mass-produced stuff here.
 
Back
Top Bottom