Problem with playing a .wav file from Zero

Hey guys, I recently got my Arduino Zero and I am trying to play a wav file from it through the AudioZero library. The library doesn't works for me, however. At first I tried to play a file with a bit rate of 1411kHz, but the output was just noisy with no clear sound at all. After that, I tried to convert the file on the internet to a lower bit rate and now it's 705kHz (which, as I understood, corresponds to 8bit, which should be alright), but now the speaker doesn't play anything at all, it's completely quiet. I am using the code from the example of the library (link). If you guys have any idea as to where the problem is, or what I did wrong, I would appreciate it a lot. If you feel like I don't know enough, and think that links might be better, I'd be happy to read them.

I am using the Madiuno board.

Thank you in advance.

Hi, what amplifier and speaker are you using? The output highly depends on those.

My amplifier is the TDA7052 and the speaker is a small standard 8Ohm 2W speaker. They both worked alright when I connected them to my function generator and sent them a sine wave, so I assume the problem lays on the Arduino.

Playing audio files with arduino is sometimes really a mammoth task. Often we see that the ARduino is OK, so are the amp and speaker. Still no desired output. Because either they are not compatible with each other or some other circuitry is needed.

I think it's a safer choice to choose the MAX98357 I2S Amp Breakout board as shown here: https://docs.arduino.cc/tutorials/generic/wave-playback

If you decide to stick to the amp that you're using, you can follow this too: Linking audio amp problem. - #12
I'm sorry I cannot find any Arduino based tutorial on TDA7052.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.