3

I'm using the https://github.com/TMRh20/TMRpcm/wiki library to play wav files from an SD card to a speaker I have attached to my Arduino.

I have run separate tests/programs that ensures:

  1. my speaker is connected properly and can play sound
  2. my SD file is connected properly as it can read and files, text files.

However, I'm trying to use the tmrpcm.play("example.wav") command and nothing is happening. I used wav files that for sure works (from a demo I found online) so it's not the wav file problem.

Anyone have any clue on what is going on and how I can fix this?

Greenonline
3,1527 gold badges36 silver badges48 bronze badges
asked Oct 25, 2015 at 5:59

1 Answer 1

3

This is now 5 months later - but I recently had the same problem.

Because the TMRpcm library plays through pulse width modulation, make sure your speakers are hooked up to a PWM capable pin.

That caused me no end of headaches trying to figure out.

Greenonline
3,1527 gold badges36 silver badges48 bronze badges
answered Mar 14, 2016 at 0:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.