Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sd]

The tag has no usage guidance.

0
votes
2answers
57 views

arduino usb host shield and sd card [closed]

when I use the sd card on the mega or the arduino uno it works. Everything is fine. However, when I use it in combination with the USB shield host it doesn't work. I know the usb shield host works ...
0
votes
2answers
61 views

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 ...
0
votes
2answers
69 views

Use 5V SD-Adapter on 3.3V System

I want to use a Catalex Micro SD Card Adapter in Combination with my Arduino MKR GSM 1400. The problem is, that the Arduino uses 3.3V to operate but the SD Adapter needs 5V (or at least 4.5V) to ...
0
votes
1answer
76 views

PMS5003 Serial Output Data to SD Issues

I'm trying to save the output of an air quality sensor to a SD card, but I'm having a few issues. The sensor I'm using is a Plantower PMS5003 which puts out its data via serial. I've heavily tweaked ...
0
votes
1answer
24 views

Datalogger with interruputs

I'm trying to do a data logger. Writes into SD card has to stop when millis()=1000. Maybe I have a problem between millis() and my interrupt, because datalogger doesn't stop after millis()=1000. I'm ...
0
votes
1answer
44 views

Arduino UNO And SD Card Custom csPin

I've connected SD card module to Arduino UNO. I want to use PIN 10 for PWM DC motor control and because of that, I've connected CS pin directly to another pin (A3). SD card is working properly, but ...
2
votes
1answer
61 views

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, ...
0
votes
1answer
771 views

Saving a .txt file to SD Card and Reading each content data to txt file then save it to a variable

I am new to arduino I am trying to create an arduino project that Saving a .txt file to SD Card and Reading the txt file then save it to a variable data type "Long" named 'savednum'. I had ...
0
votes
2answers
89 views

Adding music to loop

Im newbie. I just wanted to ask how can i put my tmrpcm.play into loop. Im trying to put it in a loop but the problem is it didn't play. I also try adding a method and call the method into the loop ...
1
vote
1answer
54 views

Strange behavior on bitwise operation

i am trying to write a simple program that writes the outputs of an accelerometer (which comes down to 3 analog inputs) onto an SD-Card. I got the hole thing working fine (sending the values as ...
0
votes
1answer
482 views

Delete line from text file

In order to make an algorithm work, I'd like to delete the first line of a text file. I'm having a hard time finding an example for that though. I was thinking that there should be the possibility to ...
1
vote
0answers
44 views

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 <SPI.h&...
0
votes
3answers
1k views

Is there a way to play .mp3 files from an SD card on Arduino?

Is there a way to have mp3 files on an SD card in the SD card shield for the Arduino and play an mp3 file on that SD card with a buzzer? If possible also with something like: playmp3(thismp3.mp3); ...
0
votes
0answers
116 views

Arduino SD Card unreadable

Im using the example code shown below and when I open up the serial monitor it says:"Can't access SD card. Do not reformat. No card, wrong chip select pin, or SPI problem? SD errorCode: 0X20,0X0 " /**...
0
votes
1answer
282 views

Problem with SPI comms using NodeMCU v 3, Nano and SD

Recently I bought a NodeMCU 8266 v 3 (Lolin) and it works fine. I set up a Catalex SD card module (with a built-in 5-3.3V regulator) and all was good. Then I set the Lolin with an Arduino Uno and or a ...
0
votes
2answers
446 views

Rfid reader and SD card shield won't work together

I recently encountered a problem that's been bugging me for days. I want to make a project using a RFID reader and log data on an SD card with an Arduino Nano, but apparently no matter what I do, I ...
1
vote
1answer
512 views

Problem opening multiple text files simultaneously/in-order using <SD.h>

I am looking to log analog sensor data using 3 pins, A1, A2, A3. My project requires continuous mapping of data, and hence an SD card shield was necessary. However, I need to log the incoming data ...
1
vote
0answers
300 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 ...
0
votes
1answer
30 views

Open Parent Class as Child Class (SD Fat Library)

I'm currently using the SDFat library and am passing a global FatFile I if have a function that requires an SdFile type and I know that a given instance of FatFile is a valid SdFile what is the best ...
4
votes
2answers
312 views

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 ...
0
votes
0answers
30 views

Advice for best setup for playing audio files with arduino from sdcard (PWM, audio module, arduino due?) [duplicate]

I built a project using arduino and a audio module (DFPlayer mp3 player). It worked perfectly, but I don't have access to the files in the SDCard so that I can change it using the API. The files need ...
0
votes
1answer
866 views

read CID of SD card with SD.h library

I would like to be able to read the serial numbers of SD cards using the SD.h library. Only reading the values is enough, I am not looking to modify the CID. This should be possible but I do not have ...
0
votes
1answer
128 views

Connect Arduino to an external microSD card reader [closed]

I have a camera with a microSd card reader that is the only output type. I want to read the microSd when the camera makes a photo. How can I read it with an Arduino? Duplicating the reader connections ...
0
votes
1answer
1k views

Write char array containing new line to SD card

How do I a buffer (char array) containing new line character to SD card using SdFat? I tried: File myFile = SD.open("test.txt", FILE_WRITE) myFile.write(buffer, BUFLEN) but I get this instead: ...
1
vote
1answer
442 views

Using the SD library with the ESP8266 DevKit

The situation is as follows, I've connected a SPI TFT screen to the ESP8266 DevKit, set my own MISO,MOSI, CD, SCK pins and it works fine, wanted to do the same for using the SD card reader, but then I ...
3
votes
2answers
1k views

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?
0
votes
1answer
316 views

How do I load an image using fopen()?

I am trying to write a program that fopen()s an image so I can use it later. I've wired my SD card adapter exactly the way shown here: [![enter image description here][1]][1] And I'm using the ...
5
votes
2answers
2k views

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 ...
2
votes
1answer
443 views

LED strip and SD card

My problem is simple yet extremely problematic. For some reason, I cannot interact with an SD card and a LED strip at the same time with my arduino. After hours of testing multiple scripts, I am 99.99%...
1
vote
0answers
313 views

Arduino Audio Recorder - Speed Correct but Wrong Pitch

I'm working on an audio recorder project on an Adafruit Adalogger with SAMD21 ARM-based processor using the Arduino IDE. The desired sampling frequency is 10 kHz, 12-bit resolution with an analog ...
3
votes
1answer
334 views

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 ...
0
votes
0answers
64 views

Realistic to create a local variable as the SD buffer?

My intention is to read a file (of max. 128 KB) from an SD card and store it in (external SRAM). I will use an Arduino Mega which has 8 KB of internal SRAM but even 8 KB is not really much for some ...
0
votes
1answer
1k views

Global memory reduction when using SPI/SD

I want to use an SD card and when including the library both SPI.h and SD.h are included. Also later I want to use an external SRAM chip (probably using SPI.h as well). However, without the SRAM chip ...
0
votes
2answers
274 views

How fast is a SD page read from a file?

For a project I would like to do, I asked a question about whether to use SD or EEPROM (see Question I checked how much memory I would need without any restrictions which is like 2 MB (or more) so a ...