1

So in a previous post I asked if I could charge an SD card breakout board with a 3.7V LiPo battery, and I got a positive response, so I did it.

The problem is that it seems not to be enough, since, with the exact same wiring, if I supply it with my Arduino Uno, it works perfectly, but when I change the supply to the battery it gives an error. The following text is the result of an Arduino example script:

When connected with the Arduino:

Initializing SD card...Wiring is correct and a card is present. Card type: SDHC Volume type is FAT32 Volume size (bytes): 2696937472 Volume size (Kbytes): 2633728 Volume size (Mbytes): 2572 Files found on the card (name, date and size in bytes): SYSTEM~1/ 2017-04-27 15:20:04 WPSETT~1.DAT 2017-04-27 15:20:04 12 INDEXE~1 2017-04-27 15:20:14 76 TEST0.TXT 2000-01-01 01:00:00 49050 TEST1.TXT 2000-01-01 01:00:00 60231 TEST2.TXT 2000-01-01 01:00:00 1044 TEST3.TXT 2000-01-01 01:00:00 34831 TEST4.TXT 2000-01-01 01:00:00 189736 TEST5.TXT 2000-01-01 01:00:00 12419 

When connected to the battery:

Initializing SD card...initialization failed. Things to check: * is a card inserted? * is your wiring correct? * did you change the chipSelect pin to match your shield or module? 

or

Initializing SD card...Wiring is correct and a card is present. Card type: SD1 Could not find FAT16/FAT32 partition. Make sure you've formatted the card 

I've tried to supply the breakout board both through the 3V and 5V input. Can anyone notice what am I doing wrong?

9
  • 3
    Did you connect the ground of the SD card board to the ground of the Arduino? Commented Apr 28, 2017 at 13:22
  • 2
    Yes, all connected devices must share the same ground, otherwise they can't talk to each other. Commented Apr 28, 2017 at 13:28
  • 1
    Yes, you connect the battery ground to ground. There is only one ground. All "ground" points must be connected together. Commented Apr 28, 2017 at 13:30
  • 1
    ahh great that was it, thank you, and sorry for the lack of knowledge in electronics. Commented Apr 28, 2017 at 13:37
  • 1
    Don't be sorry. You learned something today. Commented Apr 28, 2017 at 13:50

1 Answer 1

2

You haven't connected the grounds together in your circuit. You need to connect all the grounds together so every connection has a return path back to where it came from. That means connect together:

  • An Ardino GND pin
  • The GND pin of the SD card breakout board
  • The negative (or ground) pin of the battery
0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.