This item has closed with no items sold
View other items offered by BotShop2863

Similar products

R30 shipping
TFT LCD Display 1.8 inch LCM, SPI SD-Card
R179.62
R30 shipping
TTGO ESP32-S WiFi Wireless Module Type-C Connector TF Card Slot Development Board
R384
R30 shipping
ESP32 TS V1.2 MPU9250 1.8 Inch TFT bluetooth Wifi MicroSD Card Slot Speakers Module
R730
R30 shipping
Ethernet Network Expansion Board with Micro SD Card (W5100)
R200

SD Card Module

New
R85.98
Closed 2 May 24 10:45
Shipping
Standard courier shipping from R60
R60 Standard shipping applies to orders under R100, in most areas in South Africa. R30 Standard shipping applies to orders over R100. Some areas may attract a R30 surcharge. This will be calculated at checkout if applicable.
Check my rate
Ready to ship in
The seller has indicated that they will usually have this item ready to ship within 3 business days. Shipping time depends on your delivery address. The most accurate delivery time will be calculated at checkout, but in general, the following shipping times apply:
 
Standard Delivery
Main centres:  1-3 business days
Regional areas: 3-4 business days
Remote areas: 3-5 business days
Get it now, pay later
Buyer Protection

Product details

Condition
New
Location
South Africa
Product code
MOD-130
Bob Shop ID
593183722

Read and write data from an SD card using your Arduino.

Pinout:

Gnd - Gnd on Arduino board
3.3V - not used
5V - 5V on Arduino board (in code below the 5V can be connected to digital pin 8 to draw power from there)
CS -  Digital pin 10
MOSI  -  Digital pin 11
SCK  -  Digital pin 13
MISO  -  Digital pin 12
Gnd - not used

Example

#include <SD.h>//Set by default for the SD Card Library//MOSI = Pin 11//MISO = Pin 12//SCLK = PIN 13//We always need to set the CS Pinint CS_pin = 10;int pow_pin = 8;float refresh_rate = 0.0;void setup(){  Serial.begin(9600);  Serial.println("Initializing Card");  //CS Pin is an output  pinMode(CS_pin, OUTPUT);  //Card will Draw Power from Pin 8, so set it high  pinMode(pow_pin, OUTPUT);  digitalWrite(pow_pin, HIGH);  if (!SD.begin(CS_pin))  {      Serial.println("Card Failure");      return;  }  Serial.println("Card Ready");  //Read the Configuration information (COMMANDS.txt)  File commandFile = SD.open("COMMANDS.txt");  if (commandFile)  {    Serial.println("Reading Command File");    float decade = pow(10, (commandFile.available() - 1));    while(commandFile.available())    {      float temp = (commandFile.read() - '0');      refresh_rate = temp*decade+refresh_rate;      decade = decade/10;    }    Serial.print("Refresh Rate = ");    Serial.print(refresh_rate);    Serial.println("ms");  }  else  {    Serial.println("Could not read command file.");    return;  }}void loop(){  String dataString = "Hello";  //Open a file to write to  //Only one file can be open at a time  File logFile = SD.open("LOG.txt", FILE_WRITE);  if (logFile)  {    logFile.println(dataString);    logFile.close();    Serial.println(dataString);  }  else  {Serial.println("LOG.txt");Serial.println("Couldn't open log file");  }  delay(refresh_rate);}

More from this seller

View all
JST Connector Right Angled 6-pin
R35.47
R30 shipping
2S Balance Li-ion Lifepo4 BMS
R143.26
R30 shipping
Grove - Light Sensor v1.2
R101.77
DIY electronic high voltage igniter Heating coil)
R88.32