SD cards are often used with the Arduino Ethernet Shield. They stand for "secure digital cards" and fit into one's palm. They range from 256MB to 128GB, although most Arduinos only use 4GB. There are also SD micro cards, a smaller version of the cards.
Questions tagged [sd-card]
377 questions
22
votes
1 answer
How to access multiple SPI interfaces on Arduino
I have worked on SPI devices connected with an Arduino one at a time. How do I work with two different SPI devices at the same time?
Abhishek Kulshrestha
- 327
- 1
- 3
- 8
13
votes
3 answers
How to increase SD card write speed in arduino
I'm creating a data-logger system which logs data in SD card at a high speed of about 20000-30000 bytes per second. But the SD library in arduino currently writes data at about 4500-5000 bytes per second which is too slow.
I've read this hack to…
Ashish Ranjan
- 455
- 1
- 5
- 15
7
votes
3 answers
Multiple SPI device
I want to connect Ethernet board (W5100 HR911105A) to Arduino Leonardo with SPI and I also want to connect SD reader.
When I test these boards separately everything working. But when I connect them on the same board the program fails at…
eszik.k
- 121
- 5
7
votes
3 answers
Can I connect an SD card shield to Digispark ATtiny85 board?
I have a Digispark ATtiny85 Arduino board (as shown in the picture). Can I connect a SD card shield to this board as a normal Arduino? How can I do that I'm new to this field?
knobiDev
- 183
- 2
- 8
7
votes
7 answers
Understanding why should avoid “String” and alternative solutions
Why “Strings” are bad for Arduino?
Which is the most efficient and fastest solution to read and store the data from Accelerometer and GPS?
Stings are evil for Arduino
An Uno or other ATmega328-based board only has 2048 bytes SRAM.
The SRAM is…
Andrea Ciufo
- 235
- 1
- 3
- 9
7
votes
2 answers
arduino creates strange files in SD card
I'm new to Arduino and electronics. I want to make a project including SD data-logger, but I had a problem. I would appreciate if someone show me where I made a mistake.
Firstly, circuit was set up as in picture:
I am using 8 Gb micro SDHC card…
dursung
- 71
- 1
- 1
- 2
7
votes
1 answer
Playing audio files with sine wave from arduino
So, when searching for a way to play audio files through the Arduino, I came across this site: How to play WAV audio files with Arduino Uno and MicroSD card
This seems like a really good library (although I haven't had the time to really play around…
jaredad7
- 173
- 7
6
votes
1 answer
Serial.write and Serial.println return different values? Cannot use correct ones
I have a text file on an SD card, and I am trying to print the lines to the serial monitor.
This Code Works:
#include
#include
File myFile;
void setup()
{
Serial.begin(9600);
Serial.print("Initializing SD card...");
…
user3151828
- 65
- 1
- 7
6
votes
1 answer
How do I specify a working directory when saving to SD card?
I'm trying to datalog to a EyeFi SD card by writing to a file with a jpg extension. Here's that portion of my code so far:
// see if the directory exists, create it if not.
if( !SD.exists("/DCIM/100NIKON") )
{
if( SD.mkdir("/DCIM/100NIKON") )
…
user2218339
- 219
- 3
- 12
6
votes
3 answers
Crash when datalogging MPU-6050 to SD card
On an Arduino Pro Mini, I'm using Jeff Rowberg's stuff in i2cdevlib to read from the MPU6050, and using SdFat to write data to an SD card. Each part in isolation is fine, but when both DAQ and logging are in use the Arduino locks up after a few…
Craig Graham
- 201
- 1
- 6
6
votes
1 answer
Can an Arduino emulate a USB mass storage device?
Question:
Can I connect an Arduino's USB port to the USB port of another embedded device that is expecting a USB thumb/flash device?
Or, can I connect a USB module to this embedded device, with the other end connected to GPIO's of the Arduino?
This…
SaundersB
- 163
- 1
- 1
- 4
6
votes
2 answers
Logging multiple gigabytes of data with Arduino
I have Arduino Uno with SD card shield. I'm planning to log a huge amount of data from various sensors - including accelerometers and 3D compass - to the SD card.
However, I have understood that Arduino, 64GB SD, FAT and large amount of data are…
Olli
- 265
- 2
- 10
5
votes
0 answers
SPI between Master arduino and Slave arduino
How can I send the string from Slave SPI to Master SPI?
I want to write code in Bare Metal.
The problem which I am facing is I can't make out what will be my blocking function in Master SPI code when receiving data from slave SPI.
As my SPIF bit is…
Kunal
- 81
- 1
5
votes
5 answers
Combining Strings into a datestamp
I'm creating a weather station / environmental datalogger and am saving my data to a SD card Breakout. The SD card works fine but I would like to name the files I am saving on it after the date when the readings were taken.I've tryed multiple things…
SquarePie
- 93
- 1
- 5
5
votes
1 answer
Reading SD card with Sparkfun MP3 Shield
So I am using an Arduino Mega with the Sparkfun MP3 shield. And I can't seem to read the µSD card. It's formatted in FAT32 and it has a single .txt file on it. I always get this error:
SD initialization failed.
Do not reformat the card!
Is the card…
Michidez
- 83
- 4