Sound on my Teensy 3.x Carrier boards...

Not open for further replies.


Senior Member+
I have been thinking about making a simpler rev for the Teensy LC... But wondering about what I currently do for sound output.

My boards typically have a simple speaker. (, which I have a jumper that I optionally connect up to IO pin and use code like tone to make sounds. I like this with my robots as to know state changes and the like.

The buzzer is hooked up like:

Wondering if I rev board, would it make more sense to optionally connect to DAC? Could I then use some of teensy sound library? On setups with Linux boards, I at times generate PCM sounds or use Espeak...

If I do hook up to DAC, should I change the sound circuit?

option to connect to DAC easily worthwhile; Audio Library makes fine (excellent even, perhaps) use of the DAC as an output.
As I mentioned yesterday ( , I built the first of a smaller shield, for the T3.1/LC that I assembled the first one of yesterday...

With it, I am trying a simpler Speaker hookup as shown in (330 ohm Resistor and 100uf cap). Luckily I made the hook up to which pin be a jumper. By default I was hoping to try it out with the DAC (so setup, that can just use shunt to connect), but with this hookup, I am not getting really any sound out. If however I jumper it to lets say D6, I do get sound. (Not as much as when I had a transistor circuit, but enough).

Currently using the speaker/buzzer (, which I have used on other boards. I can use tone and the like to make notes...

If I wish to maybe use the audio library, suggestions for small onboard speaker and circuit would be appreciated... I really don't need much sound on these boards, mainly used for things like knowing when the voltage is getting too low, or some form of acknowledgment that a new command/mode was accepted...

thanks again
I could attempt to parley any amount of stuff I have seen for single supply audio amplification but you and I are both better off derferring to such as imho.

If you even have half an inkling of schematics then switch to pictures mode and look at them, look for something you could see yourself willing to deploy and click away for the page the picture comes from - 'middle' clicking on links (in decent browsers) opens the link in a new tab, dunno why I choose now to mention.

I'm fairly sure I could draw a (almost-passing-for-reasonablish) single supply amplifier that might suffice but I sure would make the EE at work look at it properly before posting anywhere anyone but he might see - half the results from Google will be rubbish (or practically advert for spec'd device) but half the remaining results (I) should (hope) range from as good or heaps better than I would draw.

Basis of a good single supply amplifier will be making a virtual ground halfway between 'supply neg' and 'supply pos' with reasonable attempt at stability (pair of [strikethrough]100K[/strikethrough] matching (prefer higher-ish value to decrease supply drain) resistors with a 22uF electro from node/VGND to GND is OK, opamp driven VGND is better if near digital circuitry imho (but gaurd against coupling digital noise to basis of VGND)) and then referencing the actual 'audio signal' to that alone should be great.

If you post back indicating a circuit you are considering deploying to amplify for small speaker I will notice within a reasonable time and if so confident you won't complain after I recommend it I will, otherwise I will make EE look at it and pass you ensuing verdict.
Last edited:
That circuit appears to be designed to couple digital pulses to the speaker, as pulses.

To use the DAC, you'd want a more sophisticated analog circuit to actually buffer the analog voltage.
Thanks Paul,

As I mentioned in other thread, I am going to see what it sounds like through a simple LM386 circuit since I can breadboard it and Radio shack carries part...
Not open for further replies.