Go Down

Topic: buzzing sound from TMRpcm (Read 1 time) previous topic - next topic

elsis310

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?

Grumpy_Mike

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

elsis310

#2
Dec 10, 2015, 04:00 pm Last Edit: Dec 10, 2015, 04:27 pm by elsis310
I tried 8Khz, 16 Khz and 22Khz using Itunes converter.

Should I try all the rest?



Grumpy_Mike

Quote
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.

prakhar123

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

Grumpy_Mike

Quote
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.

MarkT

"KHz"?  Did you mean "kHz" or "KiHz" ?  :)
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up