Go Down

Topic: Which resistor with Piezo speaker (Read 947 times) previous topic - next topic

jsusnik7

Hello!

I'm beginner and I don't know which resistor can I use for Piezo speaker. At Tone tutorial is written to use 100 ohm resistor with speaker, but I don't have it because I've bought this starter kit. Which resistor in this kit can I use instead of 100 ohm ?

Thanks!  :)

Jack Christensen

Looks like there are some 220-ohm resistors in that kit, one of those should work fine. Might not be quite as loud is all.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

meanpc

You don't need to use a resistor with a piezo, according to what I've found by searching the net.  I've been using my piezo without a resistor with no problems.  If you have a potentiometer, you could use it to vary the volume though.

Here's a link to an old thread:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265926572
http://www.meanpc.com

jsusnik7

What about Tone2 tutorial, where I need 4.7K resistor - Can I use 10K instead?

Thanks! :)

jackrae

You need to do some basic reading about resistors so's you understand what they are and how you can use them in combination. 

For 100 ohm you could have used 2 x 220 in parallel and ended upo with 110  -  near enough for your needs.   For 4k7 you could use 2 x 10k in parallel to end up with 5k  -  again near enough for your needs.

Jack Christensen

jackrae is spot on. OTOH, the resistor values in either tutorial aren't terribly critical, so experiment. Try a 10K instead of 4.7K, then try two 10Ks in parallel and observe the difference in the circuit behavior. Piezo transducers are primarily a capacitive load, and so can draw large current spikes for brief intervals every time the pin toggles. The 100? resistor is to limit this inrush current so as not to exceed the limits of the microcontroller. A lot of people drive piezos without a resistor, I've done this a fair amount and no smoke yet, but using the resistor is definitely the conservative approach which will treat the MCU more gently.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

jsusnik7

Thanks for help!

Can you please link me a good book / article / tutorial or something, because it's real that I don't know anything about resistors. I've bought Arduino for hobby and I know some small basics about electricity, but that's all. I actually don't know where to start searching for those things because I don't want to get bad basics from newbie tutorials.

Go Up