Questions tagged [sd]

64 questions
10
votes
1 answer

Why is our refresh rate consistently decreasing in logging on SD card?

The current code is used to gather the state of 12 infrared beams and log them to an SD card using the real time clock to mark the time. The code uses a switch to turn the device on and off and an LED to indicate if data is being written to the SD.…
JClark
  • 103
  • 5
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
4
votes
2 answers

How can I work with two devices that use the SPI protocol?

I'm working with a project in which I need to use an SD card module and an RFID antenna simultaneously. The devices that I'm using are the MFRC522 and the CATALEX SD Card Adapter. Both have SPI Protocol, and they're using the libraries MFRC522.h and…
Pinedo98
  • 43
  • 2
4
votes
2 answers

Data logging speed with arduino

I am trying to make some data logging conserining physiological data coming from a bitalino. My problem is that I would like to collect samples at something like 1 kHz, that is the rate that the bitalino can read the sensors, but I think that the…
arduinoFan
  • 87
  • 1
  • 6
3
votes
3 answers

Proper Micro SD card schematic

I am using a micro sd card shield with an arduino zero, and I am not sure I am using a proper circuit with it. This is the circuit I am using right now: That is all it is there, just a capacitor for the power and a pullup resistor for the…
Espada86
  • 57
  • 1
  • 1
  • 6
3
votes
4 answers

Best buffering practice for continuous SD card writing

In a simplified example, I have a microcontroller functioning as a data acquisition device - sensor data is received over UART, and then saved to an SD card. This received data is in the form of a 12 byte struct, received at 1kHz. The…
nuggetbram
  • 151
  • 1
  • 4
3
votes
4 answers

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(); } Is there an explicit option to open the file…
tony gil
  • 378
  • 1
  • 7
  • 26
3
votes
1 answer

Long freezes at the beginning of sd card transfer

I am creating an accelerometer data logger that writes data to sd card. After some sort of "warm-up" everything works perfectly for at least ~15 minutes (which is what I have tested so far). However, during the first few seconds there are some…
oliver
  • 175
  • 7
3
votes
2 answers

How does one set attributes for SD files?

How does one set file attributes, e.g., creation date, for a file being created on an SD?
KC Tucker
  • 394
  • 1
  • 7
  • 18
3
votes
1 answer

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 studying on current consumption of SD card and it…
Izzo
  • 243
  • 4
  • 11
2
votes
0 answers

Uploading image to Google Drive with Arduino/ESP8266

I have a toucscreen tft connected to an ESP8266 the aim for which is to take a screeenshot (.bmp format) and upload to Google Drive. I have been following this tutorial. Where I am stuck in how to proceed is the actual upload part. I have used the…
tstdenis
  • 31
  • 2
2
votes
1 answer

How to difference hardware reset and software reset?

I have an arduino code with an SD card where I save some data. When I load a new code, The SD must update with the new data that I put in the code, but if I reset the Arduino by the reset button, I don´t want the SD data to change. To sum up, I want…
AlexSp3
  • 203
  • 1
  • 8
2
votes
0 answers

Can't access SD card when running timestamps.ino from sdfat.h lib on arduino MKRZero

Im trying to run Timestamps.ino (an example sketch) from the sdfat.h lib into a mkrzero arduino. This is the code I am running: /* * This program tests the dateTimeCallback() function * and the timestamp() function. */ #include #include…
Espada86
  • 57
  • 1
  • 1
  • 6
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
2
votes
0 answers

SD card doesn't work properly

I have this SD-card module. I have formatted the SD with this tool. My problem is that the Arduino Uno can't initialize the SD. I tried with this script: // include the SD library: #include #include // set up variables using the SD…
user45309
1
2 3 4 5