Reply to topic  [ 3 posts ] 
WeMos D1 Mini SD Card Shield (HCWEMO0004) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 713
Post WeMos D1 Mini SD Card Shield (HCWEMO0004)

This shield is designed for use with the WeMos D1 mini and mini Pro development boards (see item HCWEMO0002). The shield provides a means of allowing a WeMos D1 mini to directly communicate with most types of microSD card. The shield is also compatible with the standard Arduino SD card library. The shield is supplied with 3 sets of headers (requires soldering) which allow for multiple compatible shields to be stacked on top of each other.



D1 Mini (Shield)
D5 (CLK)
D8 (CS)

Example Arduino Sketch:

/* WeMos SD Card example - Created by */

#include <ESP8266WiFi.h>

/* Include the standard SD card library */
#include <SD.h>

#define SD_CARD_CD_DIO D8 /* DIO pin used to control the modules CS pin */

File SDFileData;

/* Initialise serial and DIO */
void setup()

  /* Initialise the microSD card */
  if (!SD.begin(SD_CARD_CD_DIO))
    /* If there was an error output this to the serial port and go no further */
    Serial.println("ERROR: SD card failed to initiliase");
    Serial.println("SD Card OK");
   /* Check if the text file already exists */
     /* If so then delete it */
     Serial.println("test.txt already exists...DELETING");
  /* Create a new text file on the microSD card */
  Serial.println("Creating test.txt");
  SDFileData ="test.txt", FILE_WRITE);
  /* If the file was created ok then add come content */
  if (SDFileData)
    SDFileData.println("It worked !!!");
    /* Close the file */
      Serial.println("Error writing to file !");

/* Main program loop */
void loop()
  /* Nothing to do !*/

Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.

Tue Nov 22, 2016 4:16 pm

Joined: Sat Oct 28, 2017 10:15 am
Posts: 4
Post Re: WeMos D1 Mini SD Card Shield (HCWEMO0004)
What size SD cards (capacity) can this module take?

Kind regards

Sat Oct 28, 2017 10:37 am
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 779
Post Re: WeMos D1 Mini SD Card Shield (HCWEMO0004)
The reader talks to the card in SPI mode. Hardware wise I don't believe there is any size limitation. The maximum size card you can use is more a limitation of the software library you will be using. For instance the Arduino SD card library supports cards formatted as FAT16 or FAT32. FAT16 as a maximum size limitation of 2GB and FAT32 a maximum size of 32GB.

Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Sun Oct 29, 2017 7:55 am
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to &
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD