I have an Arduino Uno Wifi (Rev2) and I want to play a sound file. I found two libraries so far but neither of them work. The TMRpcm library (https://www.arduino.cc/reference/en/libraries/tmrpcm/) only works on the base Arduino Uno and anther library called AudioZero (https://www.arduino.cc/reference/en/libraries/audiozero/) does not seem to be compatible with Arduino Uno Wifi. Is there any other library that I could use to play a sound file. I have an SD card attached and a library that can read in a .wav file but no library to actually output the sounds on a basic speaker.
I need to use the Arduino Uno Wifi for what I am trying to achieve since communicating with the internet is crucial. Using a base Uno with a wifi attachment did not prove to be promising since the attachment acted as it's own board and need to be flashed.
-
The Uno a) doesn't have analog outputs and b) only a tiny RAM. You better look for a more suitable microcontroller or at least a hardware extension to do the job of buffering and playing the output signal.Sim Son– Sim Son2022年04月12日 15:55:24 +00:00Commented Apr 12, 2022 at 15:55
-
Hi @SimSon thank you for your reply. Do you have any recommendations? I have only used the Arduino Uno so far and I am not very familiar with other microcontrollers.ndrb– ndrb2022年04月13日 04:12:58 +00:00Commented Apr 13, 2022 at 4:12
-
I have no experience with playing audio files on microcontrollers, but I'd personally start with a controller that has a reasonably large RAM (e.g. ESP32) and an external DAC.Sim Son– Sim Son2022年04月13日 10:43:26 +00:00Commented Apr 13, 2022 at 10:43
-
If the controller is compatible with the Arduino environment, there shouldn't be much difference from how you would program the UnoSim Son– Sim Son2022年04月13日 10:45:06 +00:00Commented Apr 13, 2022 at 10:45
1 Answer 1
No sounds library seems to exist that is compatible with the architecture of the Arduino Uno Wifi specifically. Other micro-controllers need to be looked into.