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.

80 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
367 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
216 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
837 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
0 answers
190 views

SD card breakout sometimes does not initialise (SPI connection - Teensy 3.2)

I have connected this Adafruit SD Breakout to a Teensy 3.2 over SPI. Because Teensy 3.2 is 3.3 V, I've connected the 3.3 V pin of the Teensy to the 3V pin of the SD breakout. See sketch below. I'm ...
daniel's user avatar
  • 185
2 votes
0 answers
216 views

Low Power, SD Card module and SCK

in order to minimise power consumption in a project using the Arduino Nano, I need to set pin D13 to HIGH after using it as SCK for transferring data to an SD card module (I use the SD.h module. I ...
Kilroy's user avatar
  • 49
2 votes
0 answers
70 views

SD Card Initialization Failed, cannot add inactive module

Just to preface I am not that great at coding or anything and I am currently building sensors off of Oregon State University's Smart Rock sensor code, so the code I am being used is not mine. I am ...
Bryce K's user avatar
  • 21
2 votes
0 answers
206 views

Writing file from SD card to ethernet client stops sending after about 2980 characters, STM32f7 board

I am attempting to write a file found on an SD card to a connected Ethernet client. The file opens fine, and we have no problems writing to the client. For testing purposes I also write the lines read ...
JackOfAllTrades99's user avatar
2 votes
0 answers
381 views

Reading byte per byte from a txt file on SD Card without using the 512Bytes buffer

I am trying to read every sequenced-byte that is located on a txt file in the SD card. I have been reading quite a lot about the SPI and SD libraries, But I have found a lot of different information ...
DEMPEROR's user avatar
2 votes
0 answers
560 views

Save data from an LCD KeyPad Shield to an sd card

I'm developing a project that requires save data from a sensor that is connected in a LCD keypad shield, the information should be save in a file into SD card. My code #include <LiquidCrystal.h&...
Juan Perez's user avatar
2 votes
0 answers
158 views

Combining mysensors with SD card (on an Ethernet Shield v2)

I'm trying to combine a MySensors network with the usage of a SD card. Currently I'm working with the SD card reader on the EthernetShield v2. The NRF24L01+ chip I'm using is also using SPI but we ...
imacbest's user avatar
  • 121
2 votes
0 answers
744 views

Error while creating file on sd card

I want to create a file and read it form sd card by arduino. I have used sd card module. I have used this following code. In serial monitor it says "SD card is ready to use." But it can't read or ...
habla's user avatar
  • 21
2 votes
0 answers
140 views

Digital Music Player (SD to USB)

I own a couple of digital in-ear headphones that connect to my phone using USB (some micro, some type C), i.e. they have a built-in DAC and amp. Now instead of having to carry my phone along to listen ...
Untribium's user avatar
2 votes
0 answers
635 views

How can I transfer multiple frames from the Arducam's fifo buffer to file without zero padding?

I've been unable to resolve a coding problem I've been having with the Arducam Mini 2MP and I was hoping someone might be willing to give me some pointers or clear up any apparent misconceptions I've ...
Joe McArdle's user avatar
2 votes
0 answers
90 views

Bug read an image from SD card and draw it on TFT

I have developed a code to read an image stored on my SD Card and display it on a TFT. I can read the image from the SD Card successfully but I cannot draw it on the TFT. I dunno where is the bug. ...
NSmit's user avatar
  • 21
2 votes
0 answers
84 views

Program does not seem to be passing from setup to loop, or printing to SD card

I am trying to write code to test servo motors using an encoder. I create a file in the setup part, and then set 1500 microseconds to 0 for the encoder. However, if I try to print something to the SD ...
Greg Kosinski's user avatar
2 votes
0 answers
289 views

Get MP3 play length

I'm creating a project where music gets played that is the same length or slightly shorter than the given time (minutes:seconds). For this I have a Sparkfun MP3 shield, which also has a microSD slot. ...
Michidez's user avatar
2 votes
1 answer
1k views

Arduino Mega2560, Ethernet Shield & OV0706: "Camera not found"

I want to take a picture with the OV0706 and save it to an SD card. I'm using an Arduino Mega2560, Ethernet Shield (with SD slot) and an OV0706. I tried the tutorial for this camera from Adafruit, but ...
YTZ's user avatar
  • 149
2 votes
0 answers
217 views

Connection between Matlab and Arduino

I'm trying to connect Maltab and Arduino by this code: arduino=serial('COM7','BaudRate',9600); fopen(arduino); But I get this message: Open failed: Port: COM7 is not available. No ports are ...
Jack Sparrow's user avatar
2 votes
0 answers
420 views

Adding more storage to microprocessor 3.3v trinket

Project: I'm a software guy trying to learn more about hardware so I've decided to do a project that uses a small micro controller which plays short sound clips over a .5w speaker. The ...
Joe Jankowiak's user avatar
2 votes
0 answers
700 views

Can I use an Arduino Due as a flash drive?

More specifically, can I use an Arduino Due to have an interface that can plug in/out of a USB port on a computer, connect it to an SD card or similar via a sd card logging shield, and have it present ...
user2813274's user avatar
2 votes
0 answers
2k views

Write with SD card; flush versus close?

I've got an application that requires moving to specific points on a file on an SD card, reading, modifying and then writing an update. The file is fixed size. The code has no problems moving to the ...
Bob's user avatar
  • 21
2 votes
0 answers
287 views

Problems when communicating with SD card using ethernet shield

I am using the "SD read/write" code from the Arduino IDE examples to test an ethernet shield (clone). The problem is that although a file is created no data is stored in it. When running the serial ...
diego-v's user avatar
  • 41
2 votes
0 answers
3k views

How do I read from an SD card on the Yun?

I'm trying to read a small file off the SD card installed in a Yun. Here's the sketch: #include <FastLED.h> #include <FileIO.h> #define WIDTH 32 #define HEIGHT 1 #define NUM_LEDS (WIDTH *...
Robert Atkins's user avatar
2 votes
0 answers
504 views

Openlog + Lilypad Simple board - not writing to SD card

I'm desperately trying to get my openlog to work and write data out to a micro SD card with no luck. I'm using a battery-powered lilypad arduino simple board and have attached L-shaped female headers ...
claudybee's user avatar
2 votes
0 answers
12k views

GPS logging on SD card using TinyGPS

I'm a beginner in Arduino world and I want to create a simple SD datalogger that works with GPS (module NEO-6M) and light sensor. I know there are a number of tutorials on GPS logging including: ...
Geek On Acid's user avatar
2 votes
1 answer
168 views

Returning to parent directory with the SD library

I have a File variable called dir and i'm building a simple file explorer for my device. Is there a way to get a reference to dir's parent directory?
none none's user avatar
  • 233
2 votes
1 answer
3k views

Ethernet shield and sd card not working togather on arduino mega

I am making a web-client with an Arduino mega and Ethernet Shield. I am trying to receive data from a web-server running a php script and saving that data to the SD card located in the Arduino ...
bmabir17's user avatar
1 vote
1 answer
65 views

More flash memory with SD card

I am pretty sure that everyone have seen the low flash memory error, the same I have got while making my raycaster. So, I was thinking that is there any way to increase the flash memory of ESP32 with ...
Aditya Roy's user avatar
1 vote
0 answers
74 views

COM disconnects and program fails when including code trying to initialize SD card (RP2040 Pi Pico W running Arduino)

I'm having an issue where anytime I run a program such as the SD card read write example (Below) the COM port disconnects. The only changes I have made to the example code is I am using SPI1 instead ...
Rian Noble's user avatar
1 vote
0 answers
41 views

Arduino MEGA crashes with Ethernet shield to connect to two TCP servers

I have Arduino MEGA with Ethernet Shield and a SD card connected to a RUT950 GSM router. Then, I also have two sensors connected to the router and they run a TCP server that sends measurements ...
Marcus Barnet's user avatar
1 vote
0 answers
60 views

Why is my SD shield making my Arduino not power on?

I wanted to use an SD shield on an Arduino Elegoo to make a typewriter (for saving files). I put the shield on the Arduino Elegoo, then connected an LCD screen, then tried to power on using USB to ...
dragonitebrian1024's user avatar
1 vote
0 answers
257 views

SPI protocol with multiple devices

I need to write and read the measurements received by a sensor on an SD card. The card reading would be to display the data on a TFT screen. Specifically, I am using the 1.8-inch ST7735 screen. To use ...
Libegria's user avatar
1 vote
0 answers
108 views

Using a level converter to adjust the voltage levels

we are currently working on a device that needs us to connect an sd card reader to 2 Arduino’s ( Uno and zero) , however, we just found that it is not possible to do so without a level converter , may ...
Alya's user avatar
  • 11
1 vote
0 answers
69 views

RTC shield with LCD and Keypad

I am having issues with a code that I have been modifying. I can change the TIME, and DATE from a keypad, and see the data on the serial monitor, but it is not recording on the SD Card. Anyone that ...
Merkhav's user avatar
  • 31
1 vote
0 answers
105 views

SD Card Library interferes with Adafruit

Im currently working on a datalogger that uses oled i2c displays and current sensors. Both of them uses adafruit libraries. To write the data, im using arduino's sd library, but somehow, the sd ...
3MP The Rook's user avatar
1 vote
0 answers
99 views

Get LFN from SFN with SDFat

I am trying to optimize the memory usage of my ESP8266 arduino sketch by using 8.3 SFN folder names internally, but LFN when needed for user output. Unfortunately when opening a folder by using the ...
Nitek's user avatar
  • 123
1 vote
0 answers
62 views

Sending data to server

I have an SD card have a very big file (1M character). i try to load it into memory in terms of 4K character array ( The maximum I could do using Arduino Mega). but this take almost 250 call to the ...
Antoun's user avatar
  • 11
1 vote
0 answers
273 views

How can we remove unused feature in Arduino's standard SD library so we can reduce the sketch size?

With the ReadWrite example in Arduino IDE, the sketch size is 10980 bytes (34%) of an Arduino UNO's storage. How can we reduce the sketch size? There isn't any kind of #define to turn on/off features ...
raspiduino's user avatar
1 vote
0 answers
53 views

SD card initialize and fails when date changed

i am making a project using Arduino Uno that display data on 7 seg display which stored in SD card as day by day. when i make power ON to device then SD card initialization done & data shows ...
Asif Ruikar's user avatar
1 vote
0 answers
1k views

ESP32 SD writes but doesn't append

I've got a microSD module adapter from the far east, and so far so good, and although it can create files using writeFile, it does not append messages. It returns true, i.e: message appended ...
The VaLo's user avatar
1 vote
0 answers
555 views

sdFat and Serial conflict?

I am using the sdFat library to manage an SD card with an ATmega1284p @ 8MHz internal clock. I have come across a strange issue in my system, and I created the smallest sketch that shows the problem: ...
NickG's user avatar
  • 163
1 vote
0 answers
168 views

Can I record us (microseconds) with AnalogBinLogger example in SdFat's library?

I am using the AnalogBinLogger from the SdFat example library. I am using it to record 8 analog channels at 5kHz! which is amazing (thank you SdFat). Is it possible to include a separate column to ...
Microk's user avatar
  • 115
1 vote
0 answers
2k views

Write file to SD card using SDFat.h and ESP8266

I have simple problem with not simple solution. My workflow is: Read CID from SD card Send CID via Http to clodud Download specific text from cloud Write this text to file in same SD card All is ...
110mat110's user avatar
  • 149
1 vote
0 answers
78 views

Arduino SD card module failure

I am recieving SD card failuer and I did everything I could. I use the correct SPI pins; CS > 10 MOSI > 11 MISO > 12 SCK > 13 VCC > 5v GND > GND I did format my SD card to FAT32 I ...
neikami's user avatar
  • 11