CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Speaker for EX_TONES.C ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Gio



Joined: 22 Sep 2010
Posts: 3

View user's profile Send private message

Speaker for EX_TONES.C ?
PostPosted: Wed Sep 22, 2010 2:52 am     Reply with quote

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   
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 22, 2010 2:00 pm     Reply with quote

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.
Gio



Joined: 22 Sep 2010
Posts: 3

View user's profile Send private message

PostPosted: Sat Sep 25, 2010 4:38 am     Reply with quote

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
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sun Sep 26, 2010 6:42 am     Reply with quote

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.
anglab



Joined: 27 Sep 2010
Posts: 4

View user's profile Send private message

PostPosted: Mon Sep 27, 2010 1:02 pm     Reply with quote

In my project I use magnetic buzzer /GSM type/ or 8-16 ohm speaker, driving by emitter follower /BC639/, for this song.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group