I have a speaker / amplifier with 3 pins (S V G). Leaving out what I've discussed in a previous post, I now have G wired to Ground (with a resistor) and I'm getting sound out of the speaker by transmitting Frequency, Duration, Color from digital pin 6 to V.
I've tried wiring V to 5v and transmitting other values to S, it didn't work.
Problem now (apart from the wasted pin) is that it's too quiet. There is a volume knob built into the speaker / amplifier but even with this right up, it's too quiet. Any tips on making it louder?
(can I also wire V to 5v? change the resistor? etc.?)
Eliminate the resistor. Wire up both vcc to v and ground to g and try the tone() command on the S pin. Why would you not think all three pins are needed?
Also I read somewhere, possibly in Tone documentation, that not using the resistor would blow it up. I'm willing to try it if it's tried and tested. Or as last resort at risk of $10 part...
Try it. It'll work. its an ACTIVE device and needs power to run. It doesn't produce much sound w/o power and S will NOT overload your arduino.
You can also wire a small speaker direct. others say not, hut ive got several boxes chiming. Im only playing short tones (clock chimes)
Wow, should have turned the volume knob back down before testing. That was very loud Yes resistor was a major problem. Also had to feed voltage from the same side of speaker that the signal was coming from (the opposite side of the ground). Or at least it didn't work until I did that. Thanks very much