Test Module SD / MicroSD via SPI For Arduino & ESP8266
In this opportunity to test an SD Module and MicroSD with Arduino and ESP8266, in advance thanks to ICStation.com.
We will not do a detailed tutorial on introduction to SD since there is already great documentation regarding the subject in intenet, but indicate the applications available for these modules.
I introduce the SD module and Micro SD refence HW-SD001 works with any MCU.
In basic applications it allows writing and reading files
In more complex applications allows creation of web servers using shield ethernet or ESP8266, tests in next tutorials.
- SDs use SPI protocol
- The SD in this case allow FAT 32 and FAT 16 formats (recommended)
- Open and close files for both reading and writing.
This module is suitable for any MCU that supports SPI protocol:
- Voltage: 5v and regulated to 3.3v
- Allows reading Type 2 Cards (* depends on the code in the MCU at the same time)
- Slot for MicroSD by pin CS1
- Slot for SD by pin CS2
Note: Generally the SD modules bring “CS” for the control of a single slot in case it allows 2 SD “CS2” and MicroSD “CS1”.
I have done an introduction and basic tests of the module HW-SD001 with Arduino Mega R3 and ESP8266 12E NodeMCU.
Connections / Pinout
Note: Do not join CS1 and CS2.
Tutorial : Test Module SD / MicroSD via SPI For Arduino & ESP8266
This module works perfectly on both platforms, in future tutorials we will create more complex and complete applications with ESP8266.
Upcoming module integrations SD and ESP32.
The advantages of this module is to have the provision for both “SD and MicroSD” types, we have not performed simultaneous reading tests but we assume that it depends on the mainly code in Arduino IDE and SPI protocol.