SD Card Module

SD Card Module

New 15 available
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

See more
Naught - Extended Edition [Code in Box](NS / Switch)(New) - Perp Games 100G
New
R505.00
11% OFF
Multifunction Egg Cooker Double Layer
New
R204.00 R229.00
16% OFF
BRACKET PARTITION BOARD HANGING SET 30mm to 75mm
New
R648.33 R773.38
The Last Command Star Wars Timothy Zahn
Secondhand
R95.00

Similar products

150W Boost Module
New
R80.83
42% OFF
10Pcs Mini DC Adjustable Power Supply Buck Module Step Down Module
New
R427.44 R736.69
RIDEN USB Adjustable Constant Current Module With Fan Power Supply Module
New
R437.00
Breadboard Power Module
New
R65.90