MISSING: documented circuit setup for propeller audio output
WBA Consulting
Posts: 2,934
In attempting to make a quick point to someone about the basic setup for an audio output circuit for the Propeller to connect it to a small amplifier circuit, I could not find anything in the Propeller Manual, PE Kit PDF, Propeller Datasheet, the Learn.Parallax site, or anywhere else. The only audio circuits I could find were on Parallax Product schematics (demoboard, PropBOE, QS HIB, etc) which of course are all different for various reasons.
Am I simply missing something or is there no clear detail for the basic circuit for audio output from the Propeller posted anywhere?
Am I simply missing something or is there no clear detail for the basic circuit for audio output from the Propeller posted anywhere?
Comments
Radio Shack does sell some amp that's been discussed here. I used it a long time ago to drive a speaker...
Most of my boards use the MAX4410 as audio amp and Parallax uses a similar chip...
In the Prop Tool you can view the "Demo Board Schematic" to see what they did...
https://www.dropbox.com/sh/qwhixzvtlrvp1u1/_rcN6Ncv27/Schematics#f:simple_audio_circuit.JPG
This was adopted from @Ahle2 who seems to be our resident "picky ear" (I mean that in a very nice way! so thickheaded here, that I couldn't tell the difference between one and another)
Jeff
VGA connections are another that I have seen different. What's the difference between the 240/470 pair and the 240/560 pair? (The Hydra has the 240/560 and the Demoboard/PropBOE use 240/470)
EDIT: The Hydra manual has some good background on Audio, VGA, and NTSC. Maybe that can be rolled over for the AppNote?
In that example, 26 and 27. So if you're only interfacing with one pin in these circuits, do you just set both pins as the same? (so instead of 26,27, set 10 in OBC's example)
Looks like the PlaySound is "stereo" whereas OBC's is mono.
The comment in the code says it's monophon but sent out on two channels with two DUTY-Counter DACs.
So you can disable one channel by deleting the lines with PinL, or better make a little modification, so that the object is usable with one or two channels:
Andy
I don't think that Ahle2 will agree wirth the values in that circuit. The circuit itself is okay, but the filter has a cutoff frequency of only 1.45 kHz, which makes the sound muffled. Better values for the R-C filter are for example 330 Ohm and 47nF instead of 1.1k and 100nF.
Andy
Sorry for the late reply due to this half-way around the world effect.
Another nice thing about differential is that it avoids the pop that comes from a single-ended output suddenly rising to the 1/2 scale bias point. Chips like tjhe MAX4410 include special pop suppression circuitry.
I demand instant gratification! hehe jk - turns out it's good to try reading comments on objs! And Ariba, for my particular application it won't matter if it's muffled or not, since what i'm modeling is muffled by tissue! (human heartbeat)
I would definitely not agree. When did I say those values were good?
As far as I can remember I have been saying that R=1k and C=7.5nF are good values (-3dB cutoff at 21.2 kHz) and gives less distortion than using a lower value on R.
/Johannes
I was thinking of taking out the opamps/LEDs section, but otherwise keeping the rest the same?
Integrated stereo headphone amplifiers such as the ones found on many Parallax products contain both channels as well as in internal charge pump that generates a negative power supply. E.g. MAX4411. That avoids the necessity for the large output capacitor between the circuit and the headphone, and it reduces the "pop" that you might hear when the single-supply circuit first turns on.