I’m doing a “wearable technology” project that requires playing recorded voices with a small speaker. I stored some wav. files (I used Itunes to convert them) in an Adafruit microSD breakout. I followed the example in this link to play .wav files using the TMRpcm library :
The guy from the electronics department from my college gave me a couple of transistors and I ended up making the circuit suggested in the link above with a 2N4401 transistor.
The speaker I bought is a 16 ohm, 0.5 W speaker, this exact one :
I followed the example step by step and still can’t play an audible .wav file from the microSD breakout.
I thought I might have burned the speaker, so I decided to test it by following this example that plays a simple melody using the tone() command : https://www.arduino.cc/en/Tutorial/toneMelody
The speaker actually works perfectly and the melody is played well and pretty loud.
So if the circuit with the transistor and the speaker are both working fine, I can’t figure out what the problem is.
I made sure the microSD breakout board is working too, because I tested some of the examples from the Adafruit Tutorial and they worked fine.
I hope someone can help me figure out what’s going on, and if you need any other information just let me know!