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
0
votes
0answers
25 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 ...
1
vote
1answer
40 views

StoreProhibited error while trying to read file to PROGMEM

I'm trying to read a file from micro SD on an ESP32-cam board and upload to an FTP server, but when I try to read data from the opened file to an unsigned char, it gives me the following error: Guru ...
1
vote
1answer
44 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:...
1
vote
0answers
34 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 ...
1
vote
1answer
20 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?
1
vote
0answers
24 views

How to use SD card, RFID reader and LCD together? [closed]

I'm trying to use SD card reader, RC522 RFID reader, and ILI9225 in my project. When I initialize the SD card, RC522 stops working. However, Individually they both work fine without any problem. Could ...
-1
votes
1answer
26 views

Arduino RTC SD Card problem

I am using a script on an Arduino to record BME280 data onto an SD card and to display it on a lcd display. To have a valid time stamp I am also using a DS3231 RTC module. I set the time succesfully ...
1
vote
0answers
44 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 ...
0
votes
0answers
28 views

Help on RFID Project

I get stuck at a few points in my project that I am planning to do and even moving forward and I need your help. I would be very happy if you could help me with the sample codes, explaining it step by ...
1
vote
0answers
25 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
0answers
71 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
1answer
54 views

Can I have Arduino to read and write data using SDcard? [closed]

I'm doing a project and I have a simple doubt. I want a code so that whenever a admin rfid card is read it takes the next rfid card and stores it to a database like excell sheet or any other way of ...
1
vote
0answers
77 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: ...
1
vote
1answer
83 views

seeeduino can-bus shield v2: can't read can bus and write on SD card

I'm using a seeeduino V4.0 and a CAN-BUS shield v2.0 with industrial grade SD card. I'm using the default library given by the wiki of seeed. I've simulate a can bus with two mcp2515. I can read it ...
3
votes
0answers
50 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 ...
3
votes
2answers
249 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 it in an SD Card with the time stamp. I keep getting: recvRetCommandFinished err on the serial ...
2
votes
0answers
40 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?
2
votes
1answer
273 views

How to read an analog value on ESP32-CAM with the SD card reader enabled?

I use an ESP32-Cam module for a project for which I need both the SD card and the cam. According to this page, the only pins that are not in use by either the camera or the SD card reader are GPIO0, ...
2
votes
1answer
156 views

Any way to use DMA to transfer data to SD Card in ESP8266

I'm using ESP8266 at speed of 160 MHz to record ADC results into SD card, I need to do this at rate of 8 KHz. Means that i should save it on the SD Card or i'll run out of memory before 4 Sec passes. ...
1
vote
1answer
197 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> ...
0
votes
0answers
61 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 ...
0
votes
1answer
54 views

File.read() always returns -1

I'm trying to print a txt file from an SD card to a SSD1306 using the u8x8 library. Here's the current code: #include <SD.h> #include <Arduino.h> #include <U8x8lib.h> #ifdef ...
2
votes
2answers
87 views

How safely write to SD or Eeprom on Arduino power off

I want to constantly store data to sd. But how I make sure data is not corrupted on moment of power off? I think I could add small capacitor on 5V and check when voltage drops, so I would stop data ...
4
votes
1answer
102 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 ...
0
votes
0answers
441 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 ...
3
votes
2answers
116 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 ...
0
votes
1answer
91 views

2 SPI Slaves with 2 different SPI modes on one Arduino Mega

I am working on a project where I read 8 MAX31856 thermocouple sensors using the Adafruit Library. This works just fine and prints the read outs to serial. I want to also save the readings to a ...
1
vote
1answer
84 views

DFplayer, Play sound when pin is high

I have a code here, from DFmini player. I have a tactile switch. when I press it on and release it will play a sound. My question is that when I press the tactile but not release it so I want it still ...
1
vote
1answer
64 views

Wave file will not play with Teensy 3.5

I am attempting to play a wav file from an SD card using a Teensy 3.5. I am using this buzzer and I have the following code currently: #include <Audio.h> #include <Wire.h> #include <SPI....
0
votes
1answer
168 views

Connect one SD card to two devices

I have a system where an Arduino controls a DSLR camera for environmental monitoring. The Arduino can power on/off the camera and control the shutter (through the standard plug for a external shutter)....
0
votes
0answers
254 views

Problem with SD Module on TFT LCD

I am trying to use the micro SD card module on the 1.8 inch TFT display as shown in the photo. However, I am not able to make it work. The display module is 5/3.3 volt tolerant. The display works fine ...
0
votes
0answers
40 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 ...
0
votes
0answers
78 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
0answers
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; ...
1
vote
1answer
298 views

Problem with STM32 and SDFat lib on other SPI port

I am using STM32F103C8 and I am triing to compile a code with SDFat library. The problem is I need to use the second channel of the SPI1 (pins PB5,PB4,PB3, PA15): I found out that is possible to use ...
0
votes
1answer
149 views

Connect two SD cards to one Arduino board and copy from one to another

I'm trying to connect 2 SD cards to an Arduino Uno board. My first question is: Is it possible to connect two SD cards to one Arduino simultaneously? The second question is: If it is possible to ...
1
vote
0answers
60 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
1answer
142 views

Connecting microSD reader and e-paper display to Nano at the same time?

Pretty much as the question states, I'm wondering if it's possible to connect (this: https://www.waveshare.com/7.5inch-HD-e-Paper-HAT.htm ) 7.5" e-paper display that has raspberry pi HAT and an ...
1
vote
0answers
52 views

Unable to initialize SD card

I am not able to initialize the SD card. Can't find figure out what the issue is. It fails at the condition if (!SD.begin(D8)) { Serial.println("initialization failed!"); return; } I am using D1 ...
1
vote
0answers
70 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 } ...
0
votes
2answers
193 views

How to modify values inside a file

I am writing a wav file to an SD card on a ESP32 and that requires that every time I append data to the the end of the file I modify the header to set the right size in some fields. I cannot find how ...
1
vote
0answers
230 views

how to get file date and time (Timestamp) from a file on sd card with SD.h?

i want to get the date and time (Timestamp) of a specific file on sd card. How can i do this? I use the sd.h and can not use any other like SdFat.h
0
votes
0answers
26 views

Why does server.streamFile download does not work with SD.h? [duplicate]

This is only a little test code so i can focus on the problem. At first a file is written on sd card with the timestamp given in the variables. This works fine. At SD_file_download() i open a File ...
1
vote
0answers
275 views

how can i download a file with http from sd card using the SdFat.h

I use the Arduino IDE 1.8.10 and the esp8266 core 2.7.1 and the Wemos-D1 with SD Card Module For the SD Card i use the SdFat.h library, because i need to set the timestamp for the uploaded file. I am ...
1
vote
0answers
164 views

Edit JSON File on SD Card

I am currently Working on a project, where I save values in a JSON File on an SD Card. The JSON looks something like this: { "ID1":{[[starttime, endtime], [starttime, endtime], [....
0
votes
1answer
494 views

2 SPI devices conflict

I want to connect a W5500 ethernet Module and an SD card module to arduino Uno using SPI (with different CS pins of course). When connected separately they work fine but when connected in the same ...
0
votes
2answers
332 views

STM32 and SDFat - Can't create file in directory in SD

I'm using the SdFat.h library on a STM32 and I can successfully create a file in the root directory using SD.open("test.txt", FILE_WRITE); but my code fails to create SD.open("DATA/data_test.txt", ...
0
votes
2answers
139 views

Arduino Uno SD card storage

I am interested in storing accelerometer data to an SD card. Since power consumption is the main consideration of my project, it is important to do as few writes to the SD as possible, because the SD ...
0
votes
1answer
265 views

Is there a way to remove the 8.3 filename limitation on the SD.h library?

I need to be able to create text files on my SD card that are with names longer than 8 characters (which is what the SD.h currently limits me to). A choice would be to move to the SDFat library but ...
0
votes
1answer
503 views

How to get the free/used space on a SD card and transmit it

I'm using this block of code to read and sum up the bytes of all the text files I have on an SD card: long get_sd_memory_taken() { File dir = SD.open("/"); long sd_memory_taken; int c = 0; ...

1
2 3 4 5
8