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
1answer
31 views

SD card readline reading batched lines?

So, I am trying to transmit float data, over UART, from my Arduino to another machine. The log of this data is really large, so I am forced to put it on an SD card, and read it into the Arduino line-...
0
votes
0answers
28 views

Can the following materials be used to power up an attendance based sensor?

arduino uno, esp8266, rfid module rc522, sd card module, real time clock module, buzzer, led light and battery holder. I was planning to build a sensor that monitors attendance with the use of and ...
0
votes
1answer
44 views

Write an array to SD

I'm new to the Arduino and I asked some questions around here and they were really helpful so I'm hoping I will get help once more #define maxLen 800 volatile unsigned int irBuffer[maxLen]; //...
0
votes
1answer
23 views

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

Reading from SD and save it in an array

I have a text file with an IR raw code that I need to read from the SD in order to send it and I don't know how to do it. I tried to use the read file function from the specific SD library but it didn'...
0
votes
1answer
20 views

SD Card store struct: force big-endian / little-endian?

Following MAJENKO's tutorial on sd card file optimization and data integrity, can I force the SDCard to read and write in either big-endian or little-endian? I need this in order to maintain backup ...
0
votes
1answer
55 views

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

Combining ADC IRQ with SPI peripherals results in SPI not working

I'm working on a pet project that requires ADC, SD card (SPI interface, SdFat library) and a display in the future (also SPI). I have put together a piece of code that initializes ADC at the highest ...
4
votes
2answers
66 views

Writing to sd card with a sampling rate 50ms or less? I have a sketch that writes to sd every 1s but jams at faster sampling rates. Please help?

My code below reads data from an ADC and 3 digital pins via a Mega and prints to an SD Shield (Deek Robot). I want to be able to read the data every 50ms (20ms ideally). I can't get below 250ms. I've ...
0
votes
1answer
18 views

Wire SlaveReceiver : will the registered function in onRecieve interrupt/conflict with loop block?

I am currently researching on I2C, and I made a configuration that has MasterWriter that transmits data to a SlaveReceiver that will store the data received from Master, into an SD card, and then ...
0
votes
1answer
25 views

I cannot open/write to dataFile SD shield in mySketch but have no problem with Datalogger example sketch from the SD library…?

Hello Arduino Community I am collecting data and attempting to log it on to a Deek Robot SD shield via a Mega. I have the data in a dataString which I can Serial.print to the monitor but would ...
0
votes
1answer
85 views

Logging data to SD card from software serial

I have an Arduino Uno and an Adafruit data logging shield and I have connected a digital pressure sensor that uses serial communication. The sensor requires a character to start transmitting data. I ...
0
votes
2answers
255 views

ESP32 cam board and waking from deep sleep

I am getting an error that the sd card cant be mounted when the ESP32 comes out of deep sleep. The board is coded to wake up on a timer from deep sleep and mount the sd card and take a picture. My ...
0
votes
2answers
28 views

Timestamping AnalogBinLogger data

I would like to timestamp the data collected from AnalogBinLogger.ino on an Arduino Uno. The sketch uses 512-byte buffers, and I have read that writing data in 512-byte chunks is 'better' in terms of ...
0
votes
1answer
544 views

esp32 cam and PIR sensor

I have tried all the GPIO pins listed here:I am following this tutorial to save a picture using the ESP32 cam board. I am trying to add a PIR sensor. https://randomnerdtutorials.com/esp32-cam-take-...
0
votes
1answer
116 views

Connecting to WiFi on ESP32 using credentials from SD card

I'd like to use an SD card to provide the login credentials to an ESP32. I've already got the ESP32 reading the relative data from the SD card and storing it as a char array on the ESP, but when I use ...
1
vote
1answer
50 views

Adafruit Micro-SD breakout not initializing on MEGA 2560

] [I am having quite a bit of trouble trying to get my Arduino MEGA 2560 to read my micro-SD card. My wiring is as follows: Breakout Arduino 5v 5v Gnd Gnd CLK 52 DO ...
0
votes
0answers
29 views

Reading a big csv file from a SD card

I'm trying to read a csv file that's about 36000 lines long. X,Y,TYPE,SPEED,DirType,Direction -44.058251,-19.945982,1,30,1,339 -54.629503,-20.497509,1,30,1,263 -54.646202,-20.496151,1,30,1,86 For ...
1
vote
1answer
62 views

Why am not being able to initialize the Micro-SD?

The reason I bought this MicroSD board because to follow their guide and I have used the recommend code in: File > Example > SD > CardInfo also did the slight change in the code for const int ...
1
vote
2answers
140 views

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(); ...
1
vote
0answers
57 views

Create file with timestamp

I have a code which creates a file then store relevant data. My first purpose was creating then rewriting (delete & write again) with same filename. However, now I have to log different data to ...
0
votes
0answers
41 views

OSCOKIRQ failed to assert with USB HOST and SD card

I am having an issue using a MAX 3421 EE based Arduino USB Host shield and an SD card shield. From my understanding, they should both function as long as they are using different CS/SS pins and only ...
1
vote
0answers
38 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 ...
1
vote
0answers
278 views

Send file from ESP to server via FTP

I've a code which records sound to SD, then starts an FTP connection for a limited time. I want to make an automatic system which records then sends the sound file continuously. Now I'm recording ...
0
votes
0answers
47 views

SPI Interceptor

Is it possible to use Arduino (or any other MCU) to intercept SPI communication between Raspberry Pi and external SD card ? I would like to intercept CMD24 and CMD25 of SD card SPI protocol to fail if ...
0
votes
1answer
34 views

Byte text file to array [closed]

I'm trying to display a bitmap on gLCD 128x64, I stored the bitmap into txt file 1.txt in a SD card this is a part of bit map as following: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,...
0
votes
1answer
38 views

Can I use WTV020 sound module as SD card reader?

I want to try this example, A Simple Function for Reading CSV Text Files, in order to read a .csv file from an SD card, but I don't have the SD card reader module and can't find it in my country. ...
1
vote
1answer
37 views

SD.h causing constant reboot [duplicate]

I have a nice sketch running which monitors a few things and displays output on an OLED display. Now I want to save the data to an SD card, but with or without the card module attached I'm getting ...
0
votes
0answers
44 views

using the DAC on the Arduino MKR 1010

i want to use the DAC on the Arduino MKR 1010 to playback audio (.wav or .mp3) from the SD card thae came with the Ethernet shield, I just can't find a good library to do that i was hoping if anyone ...
0
votes
1answer
43 views

Pipe serial dump to SD card file

I am using the RFID module to read mifare NFC chips and the library has only methods to send the data to the serial monitor. I need them to be saved to an SD card file. I have been adding custom ...
0
votes
0answers
41 views

Question about write-speed to a micro-SD Card on Adafruit Feather M0

I am working on a project and am having difficulty maximizing how fast we are able to write data to our micro-SD card. Our current setup is an Adafruit Feather M0 with a Class 10 Sandisk Ultra. We are ...
0
votes
0answers
48 views

Read the image value pixel by pixel

I need your help in SD card and image. It's been a week since I have involved with this problem, So I wish you can help me. Here is the problem: I saved a photo to the SD card and now I want to read ...
-2
votes
1answer
35 views

Use 2 DHT22 AND PASS THE DATA TO SD Error File data does not exsist

anyone can help me please to fix this error when I try to compilate says File does not exsist. It would be great if anyone can post the entirely code. Link of code below if anyone can help me please: ...
0
votes
0answers
221 views

DFPlayer for Writing to SD Card

Can you use the DFPlayer to write to the SD card? Link for DFPlayer: https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299 Here's the goal of my project. I have a button that, when pressed,...
0
votes
1answer
50 views

Use 2 DHT22 AND PASS THE DATA TO SD?

I have the code to pass the data from dht22 to sd but for only one and i want to pass the data from 1 dht22 with one file and the data from other sensor to other file and logging in to sd. Anyone can ...
0
votes
2answers
108 views

Connect SD card to Arduino with or without a level shifter

I have some audio files in an SD card and I want to play them using Arduino, thus connect the SD card to the Arduino. Since the transfer of the data will be from the SD card (+3.3V) to the Arduino (+5....
0
votes
1answer
75 views

Trouble with reading Bitmaps from SD-Card

I'm having problems with reading a bitmap file with the SD library. I wrote a small header that reads uncompressed 24-bit bitmap files. It works fine when I try it on Windows 10 MingW with fread() ...
0
votes
1answer
98 views

Serial.print prints but lcd.print does not

The following code reads a txt file from a SD card, finds the corresponding character and prints the next 12 characters: ... char temp; byte who = random(1, 13); // 1 to 12 temp = ...
-1
votes
1answer
203 views

Attempting to read random string from SD card

I was wondering if anyone knew how to read in a random string from a file named "PhraseList.csv" or "PhraseList.xlsx" (whatever is easier)? There is a list of 10k. #include <SD.h> #include <...
0
votes
0answers
32 views

SD card module not responding [duplicate]

I am trying to read an SD card info by Arduino and an SD card module. But the SD card is not responding. I connected the wires carefully several times but it is not working. I am using this module : ...
1
vote
2answers
498 views

Arduino NANO hardware SPI not working

I have an Arduino NANO clone and a 2.4" ILI9341 TFT display. The VCC and LCD pins of the display are connected to the 5V pin of the board. The GND to the GND. All the logic pins are connected to ...
0
votes
1answer
403 views

Want to display an image from SD card to ILI9486 LCD display

I am completely new to Arduino. I have been given a side project to display a image from SD card to display. LCD used is ILI9486 which has a SD card slot at the back of the display module. I have ...
0
votes
1answer
90 views

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the ...
0
votes
0answers
274 views

Using an OV7670, Arduino Uno, ESP8266 and SD card

I am planning to create a project which will take a picture with OV7670 and Arduino Uno with SD card and send it to server with ESP8266. is it possible to use Arduino Uno(it has only 2k RAM memory)?
0
votes
1answer
222 views

SD card initialization failed

i use the example sketch of SD card presented in Arduino IDE. It runs well, but when i reboot my Adruino Mega by the reset button, the SD card initialization fails. To fix it, i need to remove the SD ...
0
votes
1answer
290 views

SD Card Read/Write Arduino Mega Fail

I have an Arduino Mega 2560 where I have used a MicroSD Card Module to Read/Write Data on the Micro SD Card. I have tried using the Example in the Arduino IDE but the data is not being written or read ...
-1
votes
1answer
169 views

Data not writing to SD Card on a Feather M0

I'm trying to write a sketch that will pull data from a BME280 and ADXL345 using the I2C protocol and then write that data to an SD card. Using different sketches I've found online I got something ...
0
votes
1answer
227 views

Conflict between SD card shield and accelerometer

I'm trying to get the SD card (Adafruit microshield SD card) and an MPU6050 accelerometer to work at the same time. When I connect the SD card to the Arduino (without the accelerometer), it's ok; When ...
1
vote
2answers
156 views

SD card failed to initialize [closed]

I have a Pro Micro board and I try to make it list my files as in the example of the Arduino IDE. The pins I use are the following: board micro sd module D4 ---> CS D15 ---> SCK ...
0
votes
1answer
321 views

How to connect NRF24 receiver and Micro SD Card Module to Arduino UNO

I would like to know how to connect a NRF24 receiver and Micro SD card module to Arduino board. I have already connected the NRF24 module to the arduino board but now i can't connect the Micro SD card ...