Poll
Question: Am I suppose to use a 100K or 100 olm resistor?
100K olm - 0 (0%)
100 olm - 1 (100%)
Total Voters: 1

Pages: [1]   Go Down
Author Topic: Piezo Buzzer not playing melody  (Read 1646 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 1
Posts: 273
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My piezo buzzer is not playing the melody after i upload the software.  i'm just doing the premade example for tone.  Should I be using a 100 olm resistor or 100K olm resistor.  Is there such thing as 100 olm resistor?  i definitely think I have the wiring correct because i pulled and reconnected after first failure.  the piezo has the short leg to ground and long leg to 100K resistor connected to pin 8.
Logged

peace*&^

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8701
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Tone tutorial (http://www.arduino.cc/en/Tutorial/Tone) calls for an "8 ohm small speaker" and "100 ohm resistor".  If you substitute a Piezo Speaker you should look at the "Play Melody" tutorial: http://www.arduino.cc/en/Tutorial/PlayMelody

Hint: No resistor needed for the piezo speaker.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
God Member
*****
Karma: 1
Posts: 547
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Err make sure your Piezo is not a self driven one like a Sonalert. If it is marked with + and - and chimes when a battery is applied you need to obtain a non driven piezo.
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 273
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh you guys are right.  I should be using a 8 ohm speaker for the software I'm uploading.  I will now try the piezo buzzer code.
Logged

peace*&^

Copenhagen, Denmark
Offline Offline
Edison Member
*
Karma: 32
Posts: 1204
Have you testrun your INO file today?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is not the software. Both software examples work with both coil and piezo speakers. They both just turn an output pin up/down fast enougfh so you hear a tone.

The point is that IF your "piezo" is not just a plain "stupid" piezo speaker, but a "complicated" buzzer, neither software will work as ajofscott explained. (My initial kit had that problem, the kit supplier had put the wrong type in it)

If it is the right piezo speaker, and it still does not work the other possibilities might be: it is busted, you've got the wrong pin or such like.
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 273
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yeah i got it working with both hardware items - piezo buzzer and 8-ohm speaker.  However that 8-ohm speaker is super quiet.  I seriously got to hold the speaker up to my ear to hear it.  Anyone else experience this?  what is the fix?
Logged

peace*&^

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33375
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Anyone else experience this? 
Yes what do you expect putting so little into an 8 ohm load with a 100R resistor you are only pushing 8% or so of the output into the speaker. You need to do this because the output current of the arduino is limited.

Quote
what is the fix?
Use a transistor to amplify it and connect it to the speaker through a large (100uF or above) capacitor.
Logged

Pages: [1]   Go Up
Jump to: