Questions about the Arduino SD library used for accessing SDCards.
Questions tagged [sd.h]
15 questions
4
votes
2 answers
Random access to SD card using SD.h or another library (ESP32)
I'm trying to use a SD card with my ESP32 in order to save some variables in a txt file. Each variable uses 1 byte, so they can be represented by an 8 bit extended ASCII character.
The issue is it seems that the SD.h library has only 3 open modes…
AlexSp3
- 203
- 1
- 8
2
votes
1 answer
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
- 233
- 2
- 8
1
vote
0 answers
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 did write;
pinMode(csPin, OUTPUT);
digitalWrite(csPin, HIGH);
and I…
neikami
- 11
- 2
1
vote
0 answers
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],
[...]],
"ID2":{[[starttime, endtime],
…
Markus
- 11
- 1
1
vote
0 answers
ESP32 doesnt save every string to SD Card
My code initializes, the header (the ID; Value string) for the .csv file gets saved, but the dataString which is the most important part doesnt save to the .csv file.
I get an arraypointer to the start of the array. I dont have much experience with…
Xenoshell
- 43
- 1
- 9
1
vote
1 answer
Editing a particular position in a file stored in SD card
I am trying to store some variables in a text file which is saved in a SD card, using the SD library. Every time my program runs, it load the values of those variables from the file. After a few minutes, my program will attempt to change the value…
Mohammed Arshaan
- 113
- 1
- 3
1
vote
0 answers
SD card creating "extra" file?
So, maybe I'm too tired to see the obvious issue here, but my SD card script is causing a "blank" file to be created, then a secondary file to be correctly created.
I'm trying to store data logs, and I don't want to overwrite old logs, I just want…
stillborn86
- 11
- 3
1
vote
2 answers
"SSD1306 allocation failed" when #include SD.h
I'm using the ssd1306_128x64_i2c example file from the 1306's library.
It works perfectly until I add the #include SD.h line, after which it gives the allocation failed error.
Please advise.
#include
#include
#include…
cds333
- 141
- 4
1
vote
1 answer
Arduino SD count files and open last, How to?
I am trying to count files. I have one hidden file from Windows10 so i am doing "-1" but I want to open the last file and can't work out how, any help? Please, Thanks
#include
int entryCount = 0;
File root;
int total = 0;
int Lfile = 0;
void…
Egauss Egauss
- 11
- 1
- 5
0
votes
1 answer
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 before considering that option, is there a way to…
JingleBells
- 165
- 2
- 14
0
votes
0 answers
Esp8266 SD card read from inside of class
This is now my 3rd attempt at being able to read this sd card from within the Esp8266webserver.
I have made a class WebServer, and would like my sd card to contain my site.
What throws me off, is I am able to access the SD card everywhere with the…
user77533
- 101
- 1
0
votes
1 answer
Extra `eecfbba=.@aa` file in sd card
I am doing a project, and I need an SD card. Everything worked well, but after a while when I read the SD card from my PC(Windows 10 64 bit, Intel Core), I found a file called eecfbba=.@aa. It's so big that it almost ate up one GB storage of my SD…
code2828
- 1
- 3
0
votes
1 answer
Arduino not writing full NMEA sentence to SD-card file
I'm currently building a small GPS-box that's supposed to track my location and write the full NMEA sentence to an sd card.
(I want to pars it afterwards at my pc)
I'm using the Arduino Nano and the NEO-6M GPS Module to get the data.
What works:…
DerEntinator
- 1
- 3
0
votes
2 answers
How does one **get** attributes for SD files?
To be able to set the date and time of the files on my SD card I followed this answer: https://arduino.stackexchange.com/a/39127/49678
Now I am wondering How do I read the values out in the microcontroller?
To clearify, I get the correct timestamps…
Heneer
- 105
- 5
-2
votes
1 answer
Duplicate Arduino SD Library
I need to have two independent arduino sd libraries so that I can modify one and have the other one intact. I struggle to do so.
Does anyone know if this is even possible?
What should be the path to properly do so?
I tried a lot of things but I…
Espada86
- 57
- 1
- 1
- 6