pizo project

I put a pizo on a breadboard. Connected the - lead to ground and the + lead to a switch. Then connected the other side of the switch to 9v battery.

When I press the button the pizo makes a crackling sound. I don't know if that's because I'm doing something wrong or not.

Do I need some type of resistor or something in the circuit?

I just want the pizo to make a full tone like it does when its connected to the Arduino. Why do I get this crackling sound?

When I press the button the pizo makes a crackling sound.

Sounds about right.

To make that sort make a sound you have to press that button 2000 times a second, which of course you can't. Therefore when you attach it to an arduino pin you should make that toggle at that speed. Use the tone function. Connect a 100R resistor in seriese with it.

Weren't you using the tone() function on the arduino? If so you are turning the pin on and off very rapidly to cause sound to come out of the piezo speaker.

Hi,

I'm trying to do this specific project without the arduino attached. Would it be possible to use a timer or something to make that sound happen?

Thanks for explaining why I was only hearing the crackling sound.

Would it be possible to use a timer or something to make that sound happen?

Yes use a NE555 chip to make an oscillator.

OK thanks. I found a schematic that will help me make the circuit.