Is it dangerous to connect a 8 ohm speaker to a bs2?
Tobi
Posts: 5
Hi everybody,
In this article http://forums.parallax.com/showthread.php?p=536748
Third posting, written by Jon Williams, is a sentence which frightens me.....
Jon Williams wrote, that you should not connect a speaker directly to a bs2,and now i´m asking myself what would happen if you would do, what would happen.
Would it be okay to put a transistor between port and speaker?
Thank you for answering,
a scared Bs-Newbie
Tobi
In this article http://forums.parallax.com/showthread.php?p=536748
Third posting, written by Jon Williams, is a sentence which frightens me.....
Jon Williams wrote, that you should not connect a speaker directly to a bs2,and now i´m asking myself what would happen if you would do, what would happen.
Would it be okay to put a transistor between port and speaker?
Thank you for answering,
a scared Bs-Newbie
Tobi
Comments
It's a "current thing"; meaning, an 8 ohm resistance would allow more current to flow through the BS2 pin than the BS2 can safely provide and wind up damaging the circuitry "behind the pin".
If the BS2 pin "high level" was 5 volts, then with an 8 ohm resistance connected to it (and the other end to ground), 625mA would be the end result if the BS2 could supply it. However, the BS2 has a 20mA per pin limit and anything over that will likely damage the device.
Later,
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
I don't know - just think'n out loud.
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
After writing the message, i was thinking about the prob and found the solution.
Writing down something seems to clear the mind (next time i will write my question on a piece of paper, and then when my mind doesn´t clear, i´ll post a question )
I´ll go to bed now, cause it´s bedtime here now
Tobi
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
the solution was to use a piezo speaker, or to use a transistor in front of the speaker.
Tobi (trying to go to bed )
I'll check tonite and report back. Your consideration of time constants is much more scientific than my quick 10-100 swag! There's some current lag due to the inductance of the speaker coil which limits the current inrush as the cap charges. So I suspect the Stamp could handle the brief current rush from a 100 uF cap (if a 10 uF is OK), but I'll defer to the experts!
Which reminds me that yet again, I missed a key opportunity to use my favorite Hollywood line to sum up my simple electrolytic solution:
POP A CAP IN ITS RAGGEDY Smile!
Edit: Yep, even my old BS1 Parallax handbook calls for a 10 uF cap, so keep that value low. They and the link above both call for 32-40 ohm speakers, too!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
Post Edited (erco) : 4/14/2010 2:15:52 AM GMT
Don't leave out the protection diode! A speaker is an inductive device, just like a relay or solenoid.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 4/14/2010 5:48:10 AM GMT
Comes as a little 8 pin DIP and @ $1.49 (Radio shack).·· (It might look like the ATTiny13 in the soundPAL schematic...that certainly looks like the same pin config.· But my memory is hazy.)
It's cheaper than transistor/cap/resistor & my time are worth seperately.
Oh and having hooked a Dishawasher to a bs1-ic... DON'T FORGET TO MAKE CERTAIN YOUR CLAMPING DIODES ARE CONNECTED.· (ie: I ran the wire from the darlington...left it in the bundle...so much pain.)
LM386 Tech specs here.
RadioShack sales info here.
One caveat....lately, you need to order your parts online.· Cellphone commisissions have put most stores into blowing off thier parts inventory.· They may show a part on inventory that they don't know (& typically don't care) they "lost".·· I've taken to rummaging Radio shacks as I happen to drive by for my common use stuff.
BTW, the use of the capacitor v/transistor was already well discussed.
I just wanted to add 2 cents that using a disc Capacitor doesn't draw much charge current and should always be you D/C filter goto for allowing sound "A/C signal" through with no relatively no D/C flow.· Of course, let's not go using monster values here common sense still applies.
{edited RE:clamping}
Post Edited (sumdawgy) : 4/14/2010 1:42:30 PM GMT
I've used it many times, and had a lot of fun with it. I posted source code on here about a month ago to play Amazing Grace.
I used a small 2" or so speaker. I think it was a 4ohm speaker.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
The use of a higher impedance speaker would certainly help the situation, but in the long run...if I were to attempt this...I'd use a buffer/drive/something-or-other in between the speaker and stamp; better protection for the Stamp and more oportunities for active filtering to "shape" the sounds.
Later,
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (davejames) : 4/14/2010 3:07:47 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
First I wanna thank everybody who answered my question! So many solutions for one problem!
Would it be ok to·link it to the User FAQ?·It may·be helpful for·other users.
@Erco: i´m using a script for the bs 1 project board, written by a german teacher. There´s a circuit for a speaker, which i would use for my BOE. I didn´t know that there are no 220 ohm safety resistors on the BOE.
Greetings, Tobi