Piezo volume too soft

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Piezo volume too soft

Postby marknano » Sat Jun 23, 2012 8:17 pm

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.
marknano
 
Posts: 7
Joined: Thu Jun 14, 2012 7:47 pm

Re: Piezo volume too soft

Postby adafruit_support_mike » Sat Jun 23, 2012 9:39 pm

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.
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1393
Joined: Thu Feb 11, 2010 1:51 pm

Re: Piezo volume too soft

Postby marknano » Sun Jun 24, 2012 4:18 am

Removig the resistor did not do anything with the volume. I will try the transistor. Thanks.
marknano
 
Posts: 7
Joined: Thu Jun 14, 2012 7:47 pm

Re: Piezo volume too soft

Postby adafruit » Mon Jun 25, 2012 9:50 am

Try 4000 Hz - thats the loudest tone
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Piezo volume too soft

Postby marknano » Mon Jun 25, 2012 12:29 pm

adafruit wrote:Try 4000 Hz - thats the loudest tone


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.
marknano
 
Posts: 7
Joined: Thu Jun 14, 2012 7:47 pm



Return to Arduino Starter Pack

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]