SD Card Module

SD Card Module

17 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

See more
Co2 / Temperature And Air Quality Sensor Ks0457
R653.19
Aygo Front Bumper (with Fog Lamp Holes) 2011-2015
R4,381.25
Bee Trap for Outdoors Solar Powered with Led Light,hanging Design Bee Trap Reusable, Insect Traps F
R576.00
The Proficient Pilot, Volume 2 (9781560272823)
R375.00

Similar products

Sound module
R36.63
LM2596S-ADJ Module DC-DC Buck Regulator Power Supply Module
R408.00
RFID Card Reader Module 125KHZ
R103.78
MC34063A Boost Module Battery Booster Module
R336.00