SD Card issues with Arduino UNO R3

I'm using this circuit to connect the SD Card to Arduino with this code:

#include <SD.h>
#define SD_ChipSelectPin 4
#include <TMRpcm.h> 
#include <SPI.h>

TMRpcm tmrpcm;   // create an object for use in this sketch

void setup()
{
  tmrpcm.speakerPin = 9; 
  //tmrpcm.soundBuff = 500; 
  Serial.begin(19200);
  if (!SD.begin(SD_ChipSelectPin)) 
  {  
    Serial.println("SD fail");  
    return;   // don't do anything more if not
  }
  tmrpcm.setVolume(6);  
  Serial.println("Let's Go");
  tmrpcm.play("pipssd.wav"); //the sound file "music" will play each time the arduino powers up, or is reset
}

void loop()
{  
  if(Serial.available())
  {    
    if(Serial.read() == 'p')
    { //send the letter p over the serial monitor to start playback
      Serial.println("ok");
      tmrpcm.play("pipssd.wav");
    }
  }
}

When I connected the circuit and uploaded the code, the ON light reduced and stopped.
There is not a connection issue, so I think the Arduino UNO got fried.

I have not connected a speaker to it, because i had not yet received the amplifier module.

Please help,
Thanks.

Did you try removing everything and running "blink without delay ?"

Yes, that worked. but when i add the connections back, the light still goes off...

It's probably the speaker red wire pulling down the supply . Pull it out and see it the PS recovers. The speaker impedance is probably a short.

Hmmmm. :roll_eyes:

I had not connected the speaker because I did not have the LM386 module which I was supposed to connect to the speakers [Figured this out the hard way after burning one Arduino Uno board :sweat_smile:]. But on using a new UNO R3 board, the light is still getting switched off.

You haven't eliminated the SD board as a point of failure.

I have tried other new micro SD card readers. Having the same issues with them...

I helped you out with the original conundrum - getting the TPRpcm going.
At that point all was well - or so it seemed.
{SOLVED} SD Card audio player not working - Using Arduino / Programming Questions - Arduino Forum
What transpired in the meantime?
I still have mine set up and it's still working.

Yes, So what basically happened was, that time the Micro SD Card reader was working, but when I connected the speaker [10w, 4 OHM] directly to the Arduino UNO R3, the UNO R3 was ruined and wouldn't start.

After that I used a new UNO R3 board with a new Micro SD Card reader, but then I started having this issue.

To this board I had not connected the speakers as I did not have the LM-386 amplifier and didn't want to ruin the new board also...

I don't see a bad output taking down the whole show.


Image of the Arduino UNO (connected to power source and GND and VCC of Micro SD card reader connected)


Image of Arduino UNO (connected to power source without GND and VCC of Micro SD card reader being connected)

And in this state it will not run an SD example?

In the first there IS no power to the SD.
In the second there is NO power to the SD.
Isn't that indicating a problem with the SD?

A demo of my working example --

I have tried 3 Micro SD card readers, none of them worked (2 were new ones, 1 was the old one which i used with my old uno r3)...

Should I try connecting the speaker (now that i got the lm368 amp)?

I don't know.
What else have you tried to get going on the other UNOs ?
Is there an IC or other component that gets hot ?

I re-did the connection 4-5 times, Tried 3 SD card readers and also tried 2 UNO R3s.

Hey,

I really don't know how, but now the SD Card reader is working, and with the speaker too...
I did the same connections again with the old SD card reader and it worked...

Thanks for your help and time :smile: really appreciate it.

Thanks once again.

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