Using an arduino Uno for a bomb prop, I have a speaker I pulled out of a alarm clock (there are no markings so I cant give any specs, sorry) and a siren I got from Radioshack (part number 273-079, 6-14v DC) And have tried both of them and they output the same volume. Is this a problem with the code, or a problem with the audio?
I can post code if needed.
Thank you
Greg
EDIT: I'm pretty new to arduino, so I dont know the specific section of code to post, so i would have to post the whole thing.
2nd EDIT: I have a 5-pin pot, but i only know anything about the standard 3 pin pot, could i use this to solve my issue? and how would i wire it if so?
A piezo transducer can get pretty loud with high-pitch tones. For anything else you'll need a regular dynamic speaker.
You can't drive a regular 8-ohm speaker directly from the Arduino. You can use a MOSFET or transistor to boost the PWM, and if you want to amplify "clean" audio, you need an audio amplifier.
And, if you want it to really sound like an explosion, you need BIG speakers and BIG amplifiers.
2nd EDIT: I have a 5-pin pot, but i only know anything about the standard 3 pin pot, could i use this to solve my issue? and how would i wire it if so?
If it "clicks" when you turn it all the way down, the extra pair of terminals on the back are a switch. Otherwise, you'll need to check the pot with a multimeter to see what it does.