Piezo volume too soft
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 7
- Joined: Thu Jun 14, 2012 8:47 pm
Piezo volume too soft
I need the piezo speaker that came with the arduino starter kit to make a loud buzzer when called. The tone that comes out of it is very soft. I connected It to pin 9 in series with a 100ohm resistor to ground. The code that i use to call it is "tone(9, NOTE_C4, 1000)". First argument is the pin#, 2nd is the note, and the 3rd is the duration. I dont need a complicated sound. Just a basic loud buzzer enough to be heard from 20 feet. Please help.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Piezo volume too soft
First, try removing the 100ohm series resistor. A piezo element is roughly like a capacitor electrically, so you don't have to worry about current flowing through it. All the resistor does is slow down the current charging the piezo element, which means it moves slower, thus producing less volume.
If that doesn't do the job, try the reference circuit in the datasheet:
http://www.tdk.co.jp/tefe02/ef532_ps.pdf (last page)
An Arduino can only deliver about 40mA of current per pin, so it's not really an audio drive circuit. A good transistor can move a lot more current (the 2N7000 mosfet is rated for 500mA of pulsed current, and the SS8050 bipolar can swing 1.5A aound).
A transistor will also let you use a separate, higher voltage power supply for the piezo element. It's rated for up to 30v, so a 12v wall wart should give you plenty of power.
If that doesn't do the job, try the reference circuit in the datasheet:
http://www.tdk.co.jp/tefe02/ef532_ps.pdf (last page)
An Arduino can only deliver about 40mA of current per pin, so it's not really an audio drive circuit. A good transistor can move a lot more current (the 2N7000 mosfet is rated for 500mA of pulsed current, and the SS8050 bipolar can swing 1.5A aound).
A transistor will also let you use a separate, higher voltage power supply for the piezo element. It's rated for up to 30v, so a 12v wall wart should give you plenty of power.
-
- Posts: 7
- Joined: Thu Jun 14, 2012 8:47 pm
Re: Piezo volume too soft
Removig the resistor did not do anything with the volume. I will try the transistor. Thanks.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Piezo volume too soft
Try 4000 Hz - thats the loudest tone
-
- Posts: 7
- Joined: Thu Jun 14, 2012 8:47 pm
Re: Piezo volume too soft
Please send me a code that will make me produce 4000hz. I am new o arduino and I do not know about sounds yet. Thanks.adafruit wrote:Try 4000 Hz - thats the loudest tone
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Piezo volume too soft
There is a functin for that in the Arduino language:
http://arduino.cc/en/Reference/Tone
http://arduino.cc/en/Reference/Tone
- hydronics
- Posts: 53
- Joined: Thu Jul 25, 2013 2:20 pm
Re: Piezo volume too soft
I figured it out how to make a Piezo loud after way too long of tinkering! You can use 5V and you get a ton of noise.. The trick is to add an Auto-transformer to the circuit that you can get at the dollar store. I made an instructable on it here:
http://www.instructables.com/id/How-to- ... iezo-LOUD/
If anyone can identify this dollar store part on Mouser, that would be cool. cheers, tom
specs: Pin-1/2 ~154 ohms Pin 2/3 ~ 8ohms. Not sure on the inductance.
http://www.instructables.com/id/How-to- ... iezo-LOUD/
If anyone can identify this dollar store part on Mouser, that would be cool. cheers, tom
specs: Pin-1/2 ~154 ohms Pin 2/3 ~ 8ohms. Not sure on the inductance.
Please be positive and constructive with your questions and comments.