Uno R4 Minima library to play wavs

Hi
Can anyone please help me out with this problem?
I’ve purchased a Uno R4 Minima to play wavs from an SD card. I chose this board because I hear it has on board DAC. However, my sketch will not compile using the library “TMRpcm.h”.
Having read up on this, I believe its because this board is a Renesas Uno board.
The warning I am getting is :
“library TMRpcm claims to run on avr architecture(s) and may be incompatible with your current board which runs on renesas_uno architecture(s).”
The relevant lines in my sketch :

#include <SD.h>
#include <TMRpcm.h>
TMRpcm tmrpcm;
void setup()
{}
void loop()
{
tmrpcm.play("1.wav");
}

(as soon as I add “#include <TMRpcm.h>” I get the warning)
Hoping that the above is enough information to explain the issue.
Thanks

2 Likes

Hey @Chris282006
I’ve done a bit of reading and it seems like the error is still valid. TMRpcm was not designed to work with renesas architectures. I’ve had some good experiences with Mozzi which got support for renesas a few years ago. Maybe that will fit your use case? Have a read of this.

1 Like

Hi Pixmusix
Thanks for your reply.
Do you know the easiest way to achieve a simple setup, to play wavs from a SD module, through an Arduino to an amp? I’m about ready to pull my hair out!
I’ve an Arduino Uno, Arduino Uno r4 Minima, Mega 2560, MKR VRS SD card module, MKR VRS amp plus speaker.
I’ve got a nice little sketch which flashes LEDs and runs servos, but I am completely stuck on the audio!
Any more help would be much appreciated.
Thanks
Chris

Does the quality have to be really good? Like pro? :slight_smile: What the context?

No, not pro. Just playing snippets of audio and speech. The project is game orientated for fun.

1 Like

Since the Uno R4 Minima uses a Renesas chip, you may need a library that specifically supports this architecture for audio playback.

I’ve decided to use the mega 2560 r3 board and purchase a DAC to handle the audio. It seems to be the simplest way. Thanks

2 Likes

If you just need some simple quick audio you could just use your tmrpcm code above using your arduino uno.