Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By johnTravolta
#47943
Elwood wrote:SDWebSever working fine, SD card initialized

Short answer – connect GPIO15 on ESP8266 to GND through a 10k resistor. Then connect CS from SD card directly to GPIO15.


Just registered to thank you. That was the fix; just got my nodemcu and SD just wouldn't work.
User avatar
By liminal18
#50784 Hey Folks,

I have a nodemcu v 1.0 with a catalex sd card reader. I'm using the arduino ide.

I believe I follwed the isntructions correctly I have:

CS -> D4
SCK -> D5
MOSI -> D7
MISO -> D6
VCC -> 3v3
GNd -> GND

using the arduino sd test I have

#define PIN 2

Serial.println("Initializing SD card... on pin");
Serial.println(PIN);
if (!SD.begin(PIN)) {
Serial.println("initialization failed!");
return;
}

result:
Initializing SD card... on pin
2
initialization failed!

I have also tried

CS -> D8 and PIN 15 into SD.begin

neither works. The sd card is fat32 formatted with a master boot record on Mac.


Any idea what I'm doing wrong? Using female to female connectors was using a breadbard before. :D
User avatar
By JaPa
#53330 Hello everyone.

Thx for all your hard work :) thanks to that I've been able to setup my own ESP-07 with a SD Card.
Now I have just 2 questions to all of you:

1. Is there any chance to put together CaptivePortal with a web server so i can hold my own www on a SD card and set up my own network with DNS redirections?

2. Is there any chance to play MP3 or videos from SD card?

theat is in the code:
if(path.endsWith(".src")) path = path.substring(0, path.lastIndexOf("."));
else if(path.endsWith(".htm")) dataType = "text/html";
else if(path.endsWith(".css")) dataType = "text/css";
else if(path.endsWith(".js")) dataType = "application/javascript";
else if(path.endsWith(".png")) dataType = "image/png";
else if(path.endsWith(".gif")) dataType = "image/gif";
else if(path.endsWith(".jpg")) dataType = "image/jpeg";
else if(path.endsWith(".ico")) dataType = "image/x-icon";
else if(path.endsWith(".xml")) dataType = "text/xml";
else if(path.endsWith(".pdf")) dataType = "application/pdf";
else if(path.endsWith(".zip")) dataType = "application/zip";

Can i add my own file types?