At 3:15 PM 5/28/96, Cobus deBeer wrote:
>Hi everyone
>
>Someone posted a question on how to drive a speaker from a PIC for use as a
>siren or alarm output. I have designed an alarm which has been in
>production for 18 months and we use the following:
>
+12V
|----|
__ _
/\ | |/ speaker
| |_|\
{Quote hidden}> ----|
> ____|
> ____ |/ |
> pin -> >--------| |-----|\_|/
> ---- | |\
> 3k9 \___
> BD681 |
> |
> GND
Cobus and others.
Above is a better solution to driving speaker with a darlington pair or
transistors in general. Remember that the current in an inductor doesn't
change instantanously. When you switch the transistor on and off, you are
basically changing the output impedence from low to high which allows
current to flow or not to flow. It's the high impedence state that the
problem. With the speaker inductance, when the transistor goes from on to
off, the impedence goes to low to high but the current still flows. This
inductive current going through the now high impedence will generate a high
voltage across the collector/emitter junction. Depending on the transistor,
you may exceed operating conditions.
By placing a diode across the speaker, you allow for a current path for
this inductive current when the transistor is off. The current will
dissipate quickly and not affect your sounds. Note the diode doesn't
conduct when the transistors are on.
Hope this helps.
craig
ps. Driving a speaker from a digital output is the first lesson I learned
in EE165 15 years ago.
________________________________________________________
Dr. Craig Hollabaugh
Wireless Scientific, Inc.
1890 South 14th Street
Building 100, Suite 105
Amelia Island, FL 32034
904 261 6977
904 261 2129 fax
spam_OUTwsciTakeThisOuT
magic-net.net
Or you might know me as
Dr. Craig Hollabaugh
Analog Microelectronics, Georgia Institute of Technology
.....hollaKILLspam
@spam@monique.adgrp.gatech.edu
or
Dr. Craig Hollabaugh
Aerospace Department, University of Texas, Austin
holla
KILLspamcfdlab.ae.utexas.edu