MicroSD card breakout conneted to Huzzah 8266

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
sys64738
 
Posts: 12
Joined: Sun Sep 29, 2013 12:20 pm

MicroSD card breakout conneted to Huzzah 8266

Post by sys64738 »

Hi
I have the following hardware
MicroSD card breakout board
https://www.adafruit.com/product/254
Adafruit Feather HUZZAH with ESP8266 WiFi
https://www.adafruit.com/product/2821

I connected both devices according to:
https://learn.adafruit.com/micropython- ... s/hardware (last picture on page)

I always receive an error when I try to start the initialization of the SD card lib.

Code: Select all

#include <SPI.h>
#include <SD.h>
...
const int chipSelect = 15;
...
Serial.print("Initializing SD card...");
pinMode(SS, OUTPUT);

if (!SD.begin(chipSelect)) {
     Serial.println("initialization failed!");
     return;
 }
Serial.println("initialization done.");
...
I always receive "initialization failed!". I have tried to reformat the card to be sure to have a FAT32 file system with no success/no change.
What can I do to debug this issue?

TIA
Josef

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: MicroSD card breakout conneted to Huzzah 8266

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
sys64738
 
Posts: 12
Joined: Sun Sep 29, 2013 12:20 pm

Re: MicroSD card breakout conneted to Huzzah 8266

Post by sys64738 »

Hi Mike,
I have soldered the headers of the board again. The error has disappeared.
Now the code works as it should, thanks for giving me the hint to check the hardware.
Nevertheless I added a picture of my hardware.

Merry Christmas and happy new year
Josef
Attachments
hardware overview
hardware overview
DCP_0047.JPG (333.09 KiB) Viewed 282 times

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: MicroSD card breakout conneted to Huzzah 8266

Post by adafruit_support_mike »

Glad to hear you got it working. Happy hacking!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”