Playing Wav File from Micro SD- Card using Arduino Uno

Hey,
I need Help with my Project. Im trying to Play an Wav File using the TMRpcm Libary. I attached the jumpers
in the right way, also i changed the Wav file to 16Khz, Mono and 8.Bit. Also i Formatted the Micro SD Card to FAT 16. But Still it wont work. When i power the Arduino On i just hear 3 Knocks and thats it.
Here is my code:

#include <TMRpcm.h>
#include <SPI.h>
#include <SD.h>
#define CHIP_SELECT_PIN  4
#define SPEAKER_PIN      9
TMRpcm tmrpcm;

void setup( ) {
tmrpcm.speakerPin = SPEAKER_PIN;
Serial.begin( 9600 );
while ( !Serial ) /*mt*/ ;
if ( !SD.begin( CHIP_SELECT_PIN ) )
  Serial.println( "SD fail" );
else {
  tmrpcm.play( "ton.wav" );
  delay( 5 );
}
}

void loop( ) {
}

Also some Photos. Please Help me I am not finding the Problem. Also sorry for my bad English :slight_smile:[code][/code]

Here Are the Photos

20170409_154410[1].jpg

It seems you are feeding 5V signals into a 3V3 SD card. Are their level translators on the SPI lines?

Please read this:-
How to use this forum
Because your post is breaking the rules about posting code.

Yea I think so heres the link to the Sd card adapter:https://www.geras-it.de/arduino-kompatibel/erweiterungs-boards-shields/micro-sd-speicher-board-modul-tf-kartenleser-memory-shield-spi-fuer-arduino/a-604/?ReferrerID=7.00

Thanks for changing it to use code tags.

Does the program ever reach the loop function? Put a print statement in it to show that it reaches that far.

If it does then try some examples in the SD library to see if the SD card is reading correctly.

Then try the none SD card examples in the TMRpcm library to check out the audio side of your wiring.

If all that passes then it has to be the format of the data on the SD card.

When i am trying to read the file with an example from the SD Libary its just saying:

Initializing SD card...initialization failed!

The Arduino (ATmega chip) does not have an analogue output.

You will need an extra device to convert the digital signals of your WAV file into an analogue signal.
Analogue output just generates a PWM signal.

arduinoaleman:
The Arduino (ATmega chip) does not have an analogue output.

You will need an extra device to convert the digital signals of your WAV file into an analogue signal.
Analogue output just generates a PWM signal.

@arduinoaleman please read the thread from the start and do some research before you offer advice.

What Should i do now ? Buy a new Micro Sd Reader or what ?

DiDi231:
When i am trying to read the file with an example from the SD Libary its just saying:

Initializing SD card...initialization failed!

And it did not say that before?

Anyway, this indicates a problem with the formatting, or the wiring of the SD card reader.

But I checked the wireing many times and formatted it too. I am using this picture :

Also here my Problem in a video:- YouTube

But I checked the wireing many times and formatted it too.

You might have, but you have not found the problem, maybe you are missing something.

As to the layout:-
I would not run the ground through the SD card.
I would not even use that audio circuit ( no capacitors )
These are probably not the root cause of your problem. Have you tried a different SD card?

The Same happens with an other sd card. What should i do? Change anything in my wireing ?

It is hard to say because you are in command of all the system, and we have incomplete knowledge of it.
The circuit has been made many times before, so it is unlikely that it is wrong. So basically either you have faulty components, faulty wiring or you are misunderstanding something. It can be nothing else.
By faulty wiring that includes wires going into the right place but not making proper contact. I see you are using solderless bread board and that can cause problems with intermittent connections. If it were me I would have made it on strip board, all soldered up.

What you really need is an oscilloscope and the skill to use it. Then you could look at the signals and find out what is going wrong.

Maybe you could go to a local hack space for some help, or a local collage.