-->
Page 1 of 1

ESP8266 NodeMCU V3 pinouts for MOSI/MOSO/CLK and SDCARD

PostPosted: Thu Jul 27, 2017 2:27 pm
by mikesdowdell
I've started working with this V3 board in the Arduini IDE and most everything I've connected from one wire temp probes, RTC, LCD, ect have worked no problem. I think I have the correct pin identification chart (left side has GND/VUSB instead of RSV/RSV and the MOSO pin seems to be in a new position).

Image

I picked up a local OSEPP RTCSD-01 which has a DS1307 I2C real time clock with SDCARD. I was able to connect he pinouts and get the RTC working just fine (as long as the battery wasnt in, different problem, Iwill never buy OSEPP again) but no matter what I try, I cant interface the SDCARD correctly. The OSEPP documentation shows the following vague diagram for their OSEPP UNO(which I'm not using) config:

Image


And most importantly on the back side is the following:

Image

Based upon their documentation I haveConnected the following:

ESP8266 OSEPP
------------------------------------------------------
MOSI MOSI
MOSO MOSO
SCLK SCLK
3V VCC
GND GND

The following I used to get the RTC working but dont think its needed for the SDCARD but maybe this is where I'm wrong

ESP8266 OSEPP
------------------------------------------------------
D3 SDA
D2 SCL


I've attempted many of the default Arduino SD and libraries sketches, tried configuring the different pins, tried the OSEPP libraries but they dont seem to be compatible with the ESP8266, but nothing seems to work. I'm curious if maybe I'm misunderstanding the pin config and if so maybe someone can nudge me in the right direction. Perhaps I need the Cable Select set, although on this pinout I'm not sure how that is done.

Re: ESP8266 NodeMCU V3 pinouts for MOSI/MOSO/CLK and SDCARD

PostPosted: Fri Jul 28, 2017 3:01 am
by QuickFix
I don't see CS/SS (Chip Select/Slave Select) connected. :?

For SPI you should use D5, D6, D7 & D8 of the NodeMCU.
For I2C I always use D1 and D2 of the NodeMCU.

These lines are the prefered special functions for these pins:
Image

Re: ESP8266 NodeMCU V3 pinouts for MOSI/MOSO/CLK and SDCARD

PostPosted: Fri Jul 28, 2017 11:34 am
by mikesdowdell
How do pins 5,6,7,8 relate to the V3's s1 (MOSI), s0 (MISO), and sc (CS) pins as documented? Is this an arduino library difference or?