Skip to main content

Questions tagged [sd-card]

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.

Filter by
Sorted by
Tagged with
22 votes
1 answer
28k views

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's user avatar
7 votes
3 answers
1k views

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 ...
eszik.k's user avatar
  • 121
3 votes
2 answers
11k views

SD.begin() fails second time

When I remove the SD card and try to open a file, I can detect the error properly. But how do I detect that the card has been replaced after an error? My first thought was to call SD.begin() again ...
Alex Shroyer's user avatar
1 vote
1 answer
3k views

Adding data to an SD card file

I'm reading data from the Shinyei PPD42 particle sensor unit. Everything seems to work, but I'm encountering two problems When I restart Arduino, the file is not being extended, nor overwritten. It ...
Michael's user avatar
  • 13
1 vote
1 answer
297 views

Unexpected character added to char buffer array in serial monitor only when SD card initialized

I'm getting an unexpected extra character added to the serial monitor print line only when I initialize an SD card in the code. Normal The code below gives me this expected result in the serial ...
Dashiell Rose Bark-Huss's user avatar
13 votes
3 answers
41k views

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 ...
Ashish Ranjan's user avatar
7 votes
7 answers
10k views

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-...
Andrea Ciufo's user avatar
4 votes
1 answer
3k views

SD card initialization fails randomly

I have a SD card reader that is working fine exept that sometimes SD.begin fails for no apparent reason. To work around this issue I have put the SD.begin in a while loop and then I display the error ...
Aoaoaoappa's user avatar
3 votes
2 answers
2k views

Need help with 2X3 matrix for braille

I'm an intermediate Arduino progammer, and I'm making an electronic braille display for my friend. You can think of this display as an array of 28x3 LEDs(one braille character contains a maximum of ...
Tanishq Jaiswal's user avatar
2 votes
4 answers
1k views

Power suply for MicroSD card breakout board

I'm developing a project and I need to connect to my Arduino Mini with a SD card breakout board. The problem is that I can't plug it directly to the Arduino since it is already powering some sensors ...
arduinoFan's user avatar
2 votes
4 answers
26k views

SD card fails to initialize

I know this question has be asked before on this site. However it was never really answered. I have an Arduino Uno. I am trying to get it to read a 2 GB SDHC Micro SD card. The problem is, the SD card ...
Alex Weber's user avatar
1 vote
2 answers
541 views

Can I connect to WiFi with an Arduino, "wireless SD shield" and XBee

I want to create a growhouse sensor system. I have an Arduino UNO, wireless SD shield and I have just ordered a series 2 XBee XB24. Any info I find seems to revolve around having 2 Arduinos and 2 ...
user3596317's user avatar
1 vote
1 answer
1k views

ArduCAM OV2640 and microSD card module -- SPI problems

So what I'm trying to do is use the ArduCAM OV2640 (2MP Mini) to take a timelapse. Of course the first thing I have to do it to get it to take a picture and write it to an SD card. The thing is, the ...
Luke Thistlethwaite's user avatar
1 vote
2 answers
1k views

SD card failed to initialize [closed]

I have a Pro Micro board and I try to make it list my files as in the example of the Arduino IDE. The pins I use are the following: board micro sd module D4 ---> CS D15 ---> SCK ...
George Sp's user avatar
  • 153
1 vote
1 answer
306 views

Efficient way to save accelerometer data on sd card

I have analog accelerometer that transfer acceleration on 3 axis with frequency 5 kHz. I want to store that data in SD card for in txt file. My sketch is the following: void loop() { // Get raw ...
Kracozebr's user avatar
  • 111
1 vote
1 answer
327 views

Substring: What is causing my output to be truncated?

I suspect that I might be using too many resources, because of the strings, but I am new to Arduino, so not sure where I am going wrong. Any help would be appreciated. What it should do when complete:...
E_Ja's user avatar
  • 21
0 votes
2 answers
2k views

Why can I power an SD card reader from a digital pin?

I'm trying to understand the power requirements of an SD card. I have a cheap breakout board from eBay that includes built-in level shifters, so I can plug it in directly to my Arduino. I provide ...
Tyler's user avatar
  • 217
0 votes
1 answer
4k views

Arduino: load variables with values read from SD card

I am having a bit of trouble loading values stored on an SD card and assigning them to variables within my program. I can achieve this as one big block of data, but would much prefer them to be saved ...
user4163554's user avatar
0 votes
2 answers
5k views

NodeMCU V3 + SD Card with Arduino IDE Not working

I am trying to connect CATALEX MicroSD Card adaptor to new NodeMCU V3 and PIN configuration are as below, NodeMCU ---------> SD Card GPIO13 (D7) ------> MOSI GPIO12 (D6) ------> MISO GPIO14 ...
Akshay's user avatar
  • 3
0 votes
1 answer
493 views

Arduino Due not properly detecting SD card

I have an SD breakout for my Due that isn't properly detecting the SD card. On one card, it cannot detect at all, and the other it says that the SD isn't formatted with FAT, even though it is. Here is ...
tuskiomi's user avatar
  • 205
0 votes
1 answer
5k views

esp32 cam and PIR sensor

I have tried all the GPIO pins listed here:I am following this tutorial to save a picture using the ESP32 cam board. I am trying to add a PIR sensor. https://randomnerdtutorials.com/esp32-cam-take-...
David Graff's user avatar
0 votes
1 answer
818 views

Conflict between SD card shield and accelerometer

I'm trying to get the SD card (Adafruit microshield SD card) and an MPU6050 accelerometer to work at the same time. When I connect the SD card to the Arduino (without the accelerometer), it's ok; When ...
natalie's user avatar
0 votes
1 answer
824 views

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the ...
TSauer52's user avatar
0 votes
2 answers
100 views

Sketch Memory in Pro

void storedata(File filename ,int type , String data) { if(type == 1){ Serial.println("Group Creation"); } //Storing Data into file pinMode(10, OUTPUT); if (!SD.begin(...
Dinesh Thiyagarajan's user avatar