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
12 votes
3 answers
40k 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
3 answers
8k views

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's user avatar
  • 183
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
7 votes
2 answers
10k views

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 ...
dursung's user avatar
  • 71
7 votes
1 answer
1k views

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 (...
jaredad7's user avatar
  • 173
6 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
6 votes
1 answer
3k views

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 <SPI.h> #include <SD.h> File myFile; void setup() { Serial.begin(...
user3151828's user avatar
6 votes
1 answer
8k views

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

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 ...
Craig Graham's user avatar
6 votes
2 answers
625 views

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 ...
Olli's user avatar
  • 265
6 votes
1 answer
13k views

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 ...
SaundersB's user avatar
  • 163
5 votes
1 answer
2k views

Use LED on pin 13 again after using the SD library

The question in short: On an Arduino UNO or Nano using the SD library, is it somehow possible to use the LED on pin 13 (or any other pin that is used by the library) again after finishing all SD ...
Johannes Maibaum's user avatar
5 votes
5 answers
4k views

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 ...
SquarePie's user avatar
5 votes
1 answer
856 views

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 ...
Michidez's user avatar
5 votes
0 answers
337 views

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 ...
Kunal's user avatar
  • 81
4 votes
2 answers
11k views

How to use a microSD card reader with SCK instead of CLK?

I've bought this microSD reader/writer: http://www.ebay.com/itm/131132034753 I've found only one tutorial, where the pins are similar to my pins, but in the example there is a CLK instead of SCK: ...
Iter Ator's user avatar
  • 141
4 votes
2 answers
613 views

Writing to sd card with a sampling rate 50ms or less? I have a sketch that writes to sd every 1s but jams at faster sampling rates. Please help?

My code below reads data from an ADC and 3 digital pins via a Mega and prints to an SD Shield (Deek Robot). I want to be able to read the data every 50ms (20ms ideally). I can't get below 250ms. I've ...
Microk's user avatar
  • 115
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
4 votes
1 answer
223 views

Arduino IDE Based Data Logger - Stops Running

I have created a data logger that writes to a MicroSD on a user defined interval. The data logger also has the ability to use an xBee unit to transmit the data received to a base station. This is ...
Alex Bohleber's user avatar
3 votes
4 answers
18k views

What do these pins mean? Where should I plug them in?

I am trying to collect data from the arduino into a SD card for the first time, so I bought the adapter at my local electronics/arduino shop. However, I could not find an explanation as to what each ...
Nick Heumann'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
3 votes
2 answers
5k views

What is the best way to get more RAM for a sound buffer?

The problem: How to extend the memory for a sound buffer (intensively used) if: SD card library supports only one file open at a time (and I have one open already) EEPROM chips are able to stand ...
P.W.'s user avatar
  • 317
3 votes
2 answers
251 views

Writing a 1Mb bitmap to an SDcard with only 96kB RAM

My goal is to have an Arduino Due (96 KB RAM) write a +-1MB bitmap to an SD card. I have an array of a several coordinates on my Arduino Due and I would like to generate the bitmap where all the ...
Sven Onderbeke's user avatar
3 votes
3 answers
3k views

How to remove SD card safely

I’m constructing an arduino based sytem that uses a SD card and I’m looking for a way to safely remove the card from the system during operation. One way would probably be to turn of the arduino ...
NoobPointerException's user avatar
3 votes
2 answers
10k 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
3 votes
1 answer
3k views

Using TMRpcm library, the audio does not play

I'm using the https://github.com/TMRh20/TMRpcm/wiki library to play wav files from an SD card to a speaker I have attached to my Arduino. I have run separate tests/programs that ensures: my speaker ...
kailia's user avatar
  • 31
3 votes
2 answers
2k views

Nextion Display not getting updated data

I am using an Arduino Mega to display the readings of 4 pots on a Nextion Display as well as store them on an SD Card with a time stamp. I keep getting: recvRetCommandFinished err on the serial ...
Niteesh Shanbog's user avatar
3 votes
1 answer
262 views

Wire SlaveReceiver : will the registered function in onRecieve interrupt/conflict with loop block?

I am currently researching on I2C, and I made a configuration that has MasterWriter that transmits data to a SlaveReceiver that will store the data received from Master, into an SD card, and then ...
aharahap3112's user avatar
3 votes
2 answers
5k views

Creating a file in an SD card

I have an Arduino Mega connected to an SD card reader (Catalex branded), that at least detects the card as it displays the info of the card. But when I try to create a file, it does not create it. I ...
Miguel Sanz Narrillos's user avatar
3 votes
1 answer
124 views

Can I use GSM and Data Logger Shield at the same time on one Arduino?

Me and my classmates are trying to make an arduino base project where we will be using sensors, GSM, and Data logger shield. We want the arduino to store the data collected and at the same time send a ...
nivibarrios's user avatar
3 votes
1 answer
1k views

SD.begin() causes SD card to pull 20mA in idle mode. Seem high?

I'm working on a project that uses an Atmega328p as the primary controller. I am using the Arduino libraries for programming. I currently have an SD card in the project. I've done quite a bit of ...
Izzo's user avatar
  • 243
3 votes
1 answer
649 views

SD print in script works in setup but not loop

I am a bit of a novice with the Arduino, and have had to learn a lot for my High Altitude balloon launch. I am getting ready to launch this, but for some reason, my datalogger, printing to an SD card, ...
Panda0nEarth's user avatar
3 votes
1 answer
5k views

Using SD card shield on Arduino Due

I have a Seeed Studio SD card shield (V3) that I am trying to use on my Arduino Due. I am having trouble using the SD examples that come with the Arduino IDE. They worked fine on my Arduino Uno by ...
bestfriendkumar's user avatar
3 votes
0 answers
112 views

Keypad - Speaker - Interference

I am trying to build a system, that plays specific audios (.wav files) from a SD-Card, according to the key combination that has been pressed. I am using: 4x4 Membrane 4 Ohm Speaker MicroSD Card ...
D_0's user avatar
  • 31
3 votes
0 answers
2k views

How to extract fingerprint template from Arduino Fingerprint Sensor

How to extract fingerprint template from Arduino Fingerprint Sensor and store it to SD card module using adafruit library and then search/import it from SD card module when tapping the fingerprint? ...
Time Gold's user avatar
  • 103
3 votes
0 answers
366 views

I want to save the value of the scanned barcode on an SD Card (in a text file may do)

serial monitor output #include <usbhid.h> #include <usbhub.h> #include <hiduniversal.h> #include <hidboot.h> #include <Wire.h> #include <SPI.h> #include <SD.h&...
Vikas Pathak's user avatar
3 votes
0 answers
215 views

Scheduling and BLE Read on demand

I'm building a data logging device with BLE capability using RFduino. Sensors are read using timer interrupt to a buffer. When the buffer is full, then the whole buffer is written to SD card. At the ...
Dzung Nguyen's user avatar
3 votes
0 answers
125 views

Yún not detecting SD card

My Arduino Yún is not detecting my previously working SD card. The metal contacts are closed. There is no dmesg output after plugging in the SD. It does not detect a different SD. Any ideas for what'...
Alexander M's user avatar
3 votes
0 answers
829 views

Read from the SD card - ACMD41 times out

I'm trying to read from the SD card using an Arduino Pro Mini (3.3 V), Pololu micro-SD reader (the 3.3V one) over a SPI protocol. I've tried both the SD library from Arduino SDK, and the Adafruit one....
kamituel's user avatar
  • 141
3 votes
0 answers
2k views

Cannot access SD card on Yun

I have a brand new 8GB micro SD card freshly formatted as FAT in my Yun. When I run df -h, I don't see the card's capacity included. When I enter cd /mnt/sda1, it says can't cd to /mnt/sda1. When I ...
sscirrus's user avatar
  • 177
3 votes
0 answers
2k views

Interfacing SD card with arduino without shield

I am trying to connect SD card with arduino without using a shield. To convert to 3.3v, I have used voltage divider circuit as described in these two sites: http://garagelab.com/profiles/blogs/...
explorer's user avatar
  • 379
2 votes
3 answers
13k views

Arduino SD Card open file modes append / overwrite

Running Arduine IDE SD DataLogger Example, my data gets appended to a txt file. File dataFile = SD.open("datalog.txt", FILE_WRITE); if (dataFile) { dataFile.println(dataString); dataFile.close(); ...
tony gil's user avatar
  • 362
2 votes
2 answers
595 views

Read one byte from file and convert to decimal

Ok, I'm fairly new to Arduino and I'm trying to read bytes from a file in an SD card and convert to integer values (0-255). I have a file, with 1 byte on it (128 int value, created in Python, can ...
melev's user avatar
  • 71
2 votes
1 answer
159 views

How can I do web hosting having all the code of the site stored on an SD?

I am carrying out this project in which the Arduino acts as a web server and hosts a website in which I show the constantly updated temperature of a laboratory. The problem is running all this code in ...
Leo's user avatar
  • 23
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
2 votes
1 answer
2k views

How to pass a filename to a function? What type of variable is the filename?

In the example below, I have two functions that write numbers to two different files on an SD card. I'm using the SdFat library. Is there any way I can combine the two functions into one, so that I ...
Jerry's user avatar
  • 533
2 votes
2 answers
722 views

read first line from sd card and save the position for again reading from sd card

I am reading sd card .txt file, I want to read the first line then how to save the position of the pointer for the next line read?
Shrikant Nikam'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
2 answers
109 views

Do (cheap) SD modules support file I/O?

I noticed there are cheap SD modules and complete SD shields. I assume the last are used for a 'final' product and not for bread-boarding (?) However, I was wondering, is there also a difference in ...
Michel Keijzers's user avatar

1
2 3 4 5
8