-->
Page 20 of 22

Re: Everything about Esp8266 and SD cards

PostPosted: Fri Apr 01, 2016 8:32 pm
by martinayotte
Of course, this can be a good workaround, handshaking between both MCUs, but it need to be bi-directional somehow...

Re: Everything about Esp8266 and SD cards

PostPosted: Tue May 24, 2016 11:22 am
by johnTravolta
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.

Re: Everything about Esp8266 and SD cards

PostPosted: Fri Jul 15, 2016 2:47 am
by liminal18
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

Re: Everything about Esp8266 and SD cards

PostPosted: Fri Aug 19, 2016 8:27 pm
by JaPa
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?