SD Card Module

SD Card Module

15 available / new
R62.23
Shipping
R65.00 Standard shipping applies to orders under R100.00, in most areas in South Africa. R35.00 Standard shipping applies to orders over R100.00. Some areas may attract a surcharge surcharge. This will be calculated at checkout if applicable.
Check my rate
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
Seller
Buyer protection
Get it now, pay later

Product details

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

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

sd-card-module-fritzed
#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 Pin int 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); }
Add to cart

Recently viewed

Jiageng JG989 Battery Load Tester 6V And 12V
R492.00
Lego (U) ~ Plate Round 1 x 2 with Open Studs ~ [Black]
R1.50

Similar products

Breadboard Power Module
R65.90
3pcs DC 9V 600mA Precision Switch Power Module Buck Module AC To DC Step Down Module Converter
R477.00
Sd Card Breakout Board Smp0018
R65.54
RFID Card Reader Module 125KHZ
R103.78