Connect Nodemcu and Micro SD-card Without SD-card Shield

About: Computers, Electronics, DIY

What you need:

1. Berg strips (male) (7-Pins)

2. Micro SD adapter

3. Dupont jumpers (Male to female) (7 jumpers)

4. Nodemcu

5. Breadboard

Pre tin the end of berg strips, apply flux to the pins of micro sd adapter, gently place the berg strip over adapter and heat each pin with the soldering iron, half a second each is enough.
And you are done!

now the wiring part -->

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1:

Connect as shown in the schematic,

SS --> D2 (GPIO 4)

MOSI --> D7 (GPIO 13)

SCK --> D5 (GPIO 14)

MISO --> D6 (GPIO 12)

VCC --> 3v3

both GND --> GND (GND pin between MOSI and 3v3 pins is optional )

Format the sdcard to FAT32 filesystem put some sample files in there.
Connect USB cable upload testcode (nodemcu_sdcard.ino) using Arduino IDE
If everything goes as planned, you should get filesystem info on the serial console as shown in the image.

Be the First to Share

    Recommendations

    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest

    2 Discussions

    0
    None
    fmarzocca

    3 months ago

    sdcard:32:1: error: 'Sd2Card' does not name a type

    Which SD.h library are you using? The one installed in Arduino IDE is different from your calls.

    1
    None
    Swansong

    1 year ago

    Thanks for sharing :)