buzzing sound from TMRpcm

Hello everyone :)

I'm using a piezo, sd card, Arduino Uno and wires to play a song with the TMRpcm library.

The sd card works ok and the arduino finds the correct songs.

I adjusted the file to be in WAV format, 8 bit and all the other settings.

When I use the tmrpcm.play(“file.wav”); function, the piezo plays buzzing sound.

I used instead of the piezo another speaker, and the problem is still there...

Help me please !!

What should I do?

That will happen if your sampling frequency is too low what are you using?

I tried 8Khz, 16 Khz and 22Khz using Itunes converter.

Should I try all the rest?

Should I try all the rest?

No I wouldn't bother.

Have you tried using a speaker or headphones in place of the piezo? These are not really speakers and have a sharp resonance in their response and that could be causing you the excess noise.

hi you could set the song above 32hz and then try it should work

hi you could set the song above 32hz and then try it should work

No it will sound dreadful. Now 32KHz might be a place to start.

And don't resurrect a three year old post if you have nothing sensible to say.

"KHz"? Did you mean "kHz" or "KiHz" ? :)