ESP8266 12E NodeMCU 1.0 pin mapping for micro sd card?

Naim Rajiv picture Naim Rajiv · May 28, 2017 · Viewed 8.4k times · Source

I tried several pin conifguration to connect nodemcu and micro sd card. However, I had not any luck to successfully connect to sd card. I followed esp8266 forum and some other solution! I need your suggestions :)

Answer

Naim Rajiv picture Naim Rajiv · May 28, 2017

The pin mapping that SD card attached to SPI bus as follows:

  • MicroSD => ESP8266
  • MOSI(DI) -> D7 (GPIO13) HMOSI
  • MISO(DO) -> D6 (GPIO12) HMISO
  • CLK -> D5 (GPIO14) HSCLK
  • CS -> D2 (GPIO4)
  • VDD -> Vin/3V3
  • GND -> GND

All other pin that available in microsd will not need to use!

After connecting all pin, you can test one of the example that given in by default. For example, In Arduino IDE you can use this example, File -> Examples -> 8266(SD) -> CardInfo