Author Topic: Transistor with Buzzer  (Read 6188 times)

0 Members and 1 Guest are viewing this topic.

Offline metRo_Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: pt
Transistor with Buzzer
« on: September 08, 2013, 08:54:53 pm »
Hi,
I'm trying to drive a buzzer using a BC547 and it is driven by microcontroller. The microcontroller is an Atmega328p.

Connecting the buzzer directly to the IO make a loud beep but using the BC547 I almost can't hear it.

The buzzer is http://www.pololu.com/catalog/product/1260, what do you think is happening?



Thanks :)
« Last Edit: September 08, 2013, 09:04:19 pm by metRo_ »
 

Online Andy Watson

  • Super Contributor
  • ***
  • Posts: 2124
Re: Transistor with Buzzer
« Reply #1 on: September 08, 2013, 09:03:34 pm »
The buzzer appears to a be a piezo (nothing more) which behaves as a capacitor. To make it operate you have to drive current into it and then draw the charge back out, that is you have to sink and source current - a single transistor will only do one. 

Edit: Ooo! a circuit has appeared! But it doesn't change my previous explanation. When you close the switch the "speaker" will charge up. Then, when you open the switch, .... nothing happens, the piezo remains charged.  The datasheet specifies that the speaker is designed to be driven with a 9V p-p square wave, i.e. you have to drive it with a square ware, it's not a buzzer. You could try a resistor across the speaker terminals to remove the charge.
« Last Edit: September 08, 2013, 09:22:57 pm by Andy Watson »
 

Offline metRo_Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: pt
Re: Transistor with Buzzer
« Reply #2 on: September 08, 2013, 10:40:03 pm »
Thanks for your explanation :)

The resistor make effect but it still doesn't make louder noise than direct driven by the IO pin.

How can I do that with two transistors? I think I'll need a H-bridge.
 

Online Andy Watson

  • Super Contributor
  • ***
  • Posts: 2124
Re: Transistor with Buzzer
« Reply #3 on: September 08, 2013, 11:16:17 pm »
Do you need the extra transistor(s) ? I'm not an ATmega expert, but I believe it has several outputs which are capable of driving tens of mA (both sink and source). I would connect the piezo direct to the processor - possibly with a 100-200R resistor in series to limit the switching current. If you want to bridge to increase the volume - use two outputs.

 

Offline metRo_Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: pt
Re: Transistor with Buzzer
« Reply #4 on: September 08, 2013, 11:27:27 pm »
after you tell me it is a piezo and it is diferent from normal speakers I searched on internet about it and I to get it louder I need to increase the voltage.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10234
  • Country: nz
Re: Transistor with Buzzer
« Reply #5 on: September 08, 2013, 11:34:14 pm »
Try a 470 ohm resistor across the piezo.  That will allow current to flow through the transistor.
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf