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.

82 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
80 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 ...
  • 31
3 votes
0 answers
275 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&...
3 votes
0 answers
212 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 ...
3 votes
0 answers
122 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'...
3 votes
0 answers
656 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....
  • 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 ...
  • 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/...
  • 379
2 votes
0 answers
86 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 ...
  • 51
2 votes
0 answers
52 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 ...
  • 21
2 votes
0 answers
142 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 ...
2 votes
0 answers
72 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?
  • 113
2 votes
0 answers
262 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 ...
2 votes
0 answers
523 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&...
2 votes
0 answers
155 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 ...
  • 121
2 votes
0 answers
678 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 ...
  • 21
2 votes
0 answers
139 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 ...
2 votes
0 answers
558 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 ...
2 votes
0 answers
88 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. ...
  • 21
2 votes
0 answers
83 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 ...
2 votes
0 answers
230 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. ...
2 votes
1 answer
980 views

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

I want to make a picture with the OV0706 that saves the picture to the SD card. I'm using the Arduino Mega2560, Ethernet Shield (with SD slot) and the OV0706 (this one: http://www.aliexpress.com/item/...
  • 149
2 votes
0 answers
213 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 ...
2 votes
0 answers
408 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 ...
2 votes
0 answers
621 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 ...
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 ...
  • 21
2 votes
0 answers
276 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 ...
  • 41
2 votes
0 answers
2k 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 *...
2 votes
0 answers
485 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 ...
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: ...
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 ...
1 vote
0 answers
40 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 ...
1 vote
0 answers
67 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 ...
1 vote
1 answer
61 views

ESP8266 Pulling Credentials from SD makes esp unable to connect

I'm trying to set up a wifi SD server and i want to put the wifi credentials in a config.txt file on the sd. The entire code works fine. when i dont use the sd credentials but when i do i run into ...
1 vote
0 answers
85 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 ...
  • 11
1 vote
0 answers
36 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 ...
  • 31
1 vote
0 answers
48 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 ...
1 vote
0 answers
67 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 ...
  • 123
1 vote
0 answers
42 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 ...
  • 11
1 vote
0 answers
148 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 ...
1 vote
0 answers
40 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 ...
1 vote
0 answers
553 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 ...
1 vote
0 answers
280 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: ...
  • 153
1 vote
1 answer
1k views

Record data to SD card with ATtiny85

An application of ATtiny with SD card is complicated due to missing of hardware SPI in attiny. The "ATmega" code for creating of a "SD file" is: #include <SPI.h> ...
  • 41
1 vote
0 answers
115 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 ...
  • 115
1 vote
0 answers
1k 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 ...
  • 121
1 vote
0 answers
54 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 ...
  • 11
1 vote
0 answers
108 views

How to separate in columns the data contained in a barcode

I have the following code, which allows me by scanning a typical 128 barcode to write this code in SD card under the Header "FA" as well as the time and date of scanner under the Header &...
1 vote
0 answers
38 views

sent commends by bluetooth to sd card as one line of string

void loop() { if (Bluetooth.available() > 0) { dataIn = Bluetooth.readString(); //the problem is here while(dataIn !=""){ dataSd += dataIn; ...
  • 23
1 vote
0 answers
61 views

Is there a way for an Arduino to flash another one without a computer?

I am going to create a game console. The games will be in an SD card and an Arduino (or an Atmega chip) will read a hex file's contents to RAM and will flash it to another one. Something like this but ...
1 vote
0 answers
223 views

Impossibility to open a file for modification in ESP32

Consider the following code: #include "SD.h" #include "Fs.h" void setup() { Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } ...