Shop OBEX P1 Docs P2 Docs Learn Events
How to connect a 8-Ohm speaker to the BS-2? — Parallax Forums

How to connect a 8-Ohm speaker to the BS-2?

nboucqueynboucquey Posts: 3
edited 2006-05-01 13:17 in BASIC Stamp
I have to connect a 8-Ohm Speaker to my BS-2. How?

Can I connect it directly or via a transistor?

Thanks.

Nicolas

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-28 20:21
    Hello,

    ·· There is an example schematic for this right in the Editor Help File under the FREQOUT command.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-04-28 20:30
    When I just saw your thread topic I was going to jokingly reply to directly connect it, but after reading your post I want to emphasize that is not what you want to do, neither will a transistor really work for driving the speaker. You need something more complex if you want to be able to play a variety of sounds, check out this http://www.parallax.com/dl/docs/prod/boards/PDBSchem.pdf#page=3. This is the schematic for the speaker on the Professional development board, so it will work.

    Or follow Chris' advice since it will likely be a simpler circuit to construct.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    1+1=10
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2006-04-28 22:01
    Hi EveryOne

    In this schematic It dose not put a # to this chip
    Can any one tell me what chip was used in this link below

    http://www.parallax.com/dl/docs/prod/boards/PDBSchem.pdf#page=3.
    This is the schematic It dose not put a chip #

    I want to built this circuit

    Thanks to any one that can help with this

    Sam
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-04-29 14:04
    Nearly any op amp would work, but the chip used on the PDB is LM386.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    1+1=10
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-29 15:04
    Pity that we've forgotten, or relegated to obscurity, our old friend -- the audio output transformer (still available at Radio Shack.)

    Post Edited (PJ Allen) : 4/29/2006 3:18:46 PM GMT
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-04-29 15:34
    For anyone that is lurking, 8 ohm or 4 ohm or even 16 ohm speakers are a 'no, no!' The same goes for any transformer in that range.

    Consider Ohms law ([noparse][[/noparse]E=IxR] 5volts / .025 amps = 200 ohms) and you will see why people are suggesting 220ohm resistors as protection for the Stamp.

    Anything much lower will burn out the I/O pins.

    Thus, the handy LM386 is recommended. Is that the handy little 5 watt audio amp chip?

    If you just want to get sound, a transistor or a darlington might do the trick too.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-29 15:40
    I wasn't advocating a transformer to the STAMP output (but I'll have a think on it), rather using a transistor, of course part of the WAM kit, and a couple of resistors, along with the audio output transformer (1k:8).· All this stuff where nothing·is any good·if it ain't an IC is tiresome.· I was hoping someone might figure, "hey, audio transformer, what's that?"
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-04-29 15:49
    I actually have a PA transfromer from RadioShack, multi-tap to provide the proper coupling given the amplifier's power and speaker's ohmage.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    1+1=10
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-29 19:44
    · OK -- proof positive.· I am getting good volume from a circuit using an audio transformer.· As a matter of fact, it's running right now and driving me to distraction.
    · It's a 1kohm:8ohm audio transformer.· The only other components needed are a 10uF cap and a 330ohm resistor.· I'm using a HomeWork Board, which has the built-in 220ohm resistors on the I/O.· If that's not your situation, use a 470ohm instead of the 330ohm.
    · Drawing/schematic attached.


    **** Post Edit ****

    · My nearest Radio Shack still stocks·the "miniature audio output transformer", #276-1380 273-1380.· [noparse][[/noparse]N.B. -- Don't buy the other one, the 1:1,·it's for something else.]
    · Also, they've had outstanding pricing (I think) on 'AA' & 'AAA' batteries·selling·40-packs for $19.99 [noparse][[/noparse]that's 50c each].· Well, they've made it even better, those same 40-packs are now $16.99 [noparse][[/noparse]that's 43c each]!!!· The packs I bought are dated for 2010 (so it's·not like a sale on lunch-meat.)·
    · Zip-Zaps are Clearance Priced, too -- $12.47.

    Post Edited (PJ Allen) : 4/30/2006 4:08:54 PM GMT
    668 x 294 - 44K
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2006-04-30 00:37
    ·Hi Paul Baker

    Thanks for your reply

    Sam

    ·
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2006-04-30 00:54
    ·Hi PJ Allen

    Thanks for posting this

    Pity that we've forgotten, or relegated to obscurity, our old friend -- the audio output transformer (still available at Radio Shack.)· audio_xfmr.jpg · 44KB (image/pjpeg)

    That just what i was looking for

    Sam





    Post Edited (sam_sam_sam) : 4/30/2006 12:57:02 AM GMT
  • SSteveSSteve Posts: 808
    edited 2006-04-30 05:07
    PJ Allen said...
    My nearest Radio Shack still stocks the "miniature audio output transformer", #276-1380
    I believe you meant 273-1380. Unless they've changed numbering and you're looking at some old stock.

    Thanks for pointing that out. As a newcomer to the hardware side of things it's good to hear about other ways to do things. Especially when they are cheap enough to experiment with just for the fun of it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-04-30 11:27
    Actally, the part count with the transformer is minimal. And I really like that even if others may say the sound quality is not as good [noparse][[/noparse]not much wattage].

    Just to re-emphasize the problem. Don't EVER put the 8 ohm side of the transformer to the BasicStamp. That 220 ohm resistor may be there to save you on the Homework board, but not in all situations.

    Everything under 200 ohms should be questioned.
    Everything over 25ma should be questioned.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-30 13:42
    SSteve -- Yes, you're right, it is 273-1380.· It's me tired old eyes (presbyopia & astigmatism); I'm getting on, now, y'know.

    Kramer -- You're right, nobody·better put an 8ohm speaker directly to the output ("double-plus un-good" ).

    · The PBASIC Help shows one way to use a speaker.· They use a 47ohm resistor in series with an 8ohm speaker.· I can tell you that using the transformer,·however imperfect,·results a lot more volume at the speaker, because it doesn't·have nearly·all the output across the non-transducing resistor (as in the PBASIC resistor-speaker configuration.)

    · nboucquey wanted to know of some way to do this.· I assumed it was for tones, alarms, beeping purposes (and for such I reckon this is a winner.)
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-05-01 13:17
    I went shopping today and came across a 400 ohm to 8 ohm transformer. [noparse][[/noparse]Not at a Radio Shack, they don't exist in Taiwan]
    I suppose that can squeeze about as much volume as possilble out of a BasicStamp without an amplifier.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.