View previous topic :: View next topic |
Author |
Message |
Gio
Joined: 22 Sep 2010 Posts: 3
|
Speaker for EX_TONES.C ? |
Posted: Wed Sep 22, 2010 2:52 am |
|
|
Hello!
What kind of buzzer is suitable for use with the example
EX_TONE.C, connected as described in the file?
I saw that there piezo buzzer, electromechanical passive and active.
Thanks in advance
Gio
Code: |
//// EX_TONES.C
////
//// This example plays the song "Happy Birthday."
////
//// Configure the CCS prototype card as follows:
//// Connect the positive wire of the speaker to pin B0
//// Connect the negative wire of the speaker to Gnd
|
|
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Sep 22, 2010 2:00 pm |
|
|
A piezo buzzer will work, but it won't be very loud.
An 8 ohm PC will also not be very loud, because the PIC pin doesn't
have enough output current capability to drive it properly. |
|
![](templates/subSilver/images/spacer.gif) |
Gio
Joined: 22 Sep 2010 Posts: 3
|
|
Posted: Sat Sep 25, 2010 4:38 am |
|
|
Thank you for answer.
If PIC pin doesn't have enough output current capability to drive a buzzer or speaker, there is a risk of damage to the pin?
Gio |
|
![](templates/subSilver/images/spacer.gif) |
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Sun Sep 26, 2010 6:42 am |
|
|
Gio wrote: | If PIC pin doesn't have enough output current capability to drive a buzzer or speaker, there is a risk of damage to the pin?
Gio |
Probably not for a short term experiment. But I would never build a commercial product that way. One reason is that if something taps the speaker it may generate a voltage spike back into the PIC that would NOT be good.
You should have the PIC drive a small audio amp, that then drives the speaker. Consider the TDA7052 or something similar. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
![](templates/subSilver/images/spacer.gif) |
anglab
Joined: 27 Sep 2010 Posts: 4
|
|
Posted: Mon Sep 27, 2010 1:02 pm |
|
|
In my project I use magnetic buzzer /GSM type/ or 8-16 ohm speaker, driving by emitter follower /BC639/, for this song. |
|
![](templates/subSilver/images/spacer.gif) |
|