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
2
votes
0answers
20 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
19 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
90 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
46 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
33 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
42 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
45 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
72 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
35 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
53 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 &...
0
votes
0answers
35 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
116 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
81 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 ...
0
votes
0answers
51 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 ...
0
votes
1answer
79 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 ...
0
votes
0answers
49 views

Why dateTimeCallback in sd.h does not work?

I try to set the file timestamp with with SD.h If i use sdfat.h then it works fine but i must use SD.h. Here is my code: #include <SPI.h> #include <SD.h> File myFile; unsigned int ...
0
votes
0answers
32 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 ...
0
votes
0answers
42 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
69 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 ...
0
votes
0answers
91 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
22 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 ...
0
votes
0answers
120 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 ...
0
votes
0answers
74 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
174 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
162 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
71 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
83 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
197 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
votes
1answer
153 views

Reading bmp images from SD card, converting it and displaying it on serial monitor in Arduino

Can someone please help me write code that can read a 24-bit BMP file from an SD card, save converted to 8-bit BMP internally, and display the 8-bit BMP pixel values on Arduino terminal as a 2D matrix....
0
votes
0answers
63 views

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 ...
1
vote
0answers
371 views

How to extract fingerprint template from Arduino Fingerprint Sensor

How to extract fingerprint template from Arduino Fingerprint Sensor and store it to sd card module using adafruit library and then search/import it from sd card module when tapping the fingerprint? ...
0
votes
1answer
416 views

OLED (I2C) and Micro SD card module not working together in Arduino

I am trying to write some data to SD card and read it back to serial monitor as well as display it to the OLED. Both the sd card and oled work separately but they seem to be interfering with each ...
3
votes
0answers
122 views

I want to save the value of the scanned barcode on an SD Card (in a text file may do)

serial monitor output #include <usbhid.h> #include <usbhub.h> #include <hiduniversal.h> #include <hidboot.h> #include <Wire.h> #include <SPI.h> #include <SD.h&...
0
votes
1answer
51 views

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

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

Adalogger FeatherWing & 32u4 Bluefruit Datalogger - Unable to Datalog to SD-card from Wallwart

Working on a Adalogger FeatherWing, 32u4 Bluefruit, and analog light sensor datalogger project. Would like to datalog to the SD card when using only the wallwart. Am able to log data to the SD card ...
0
votes
0answers
28 views

Is it possible to print to a Google Sheets document from an Arduino and ESP8266?

So I'm looking to use an ESP8266 with an Arduino Uno to print something to a Google Sheets document. I would be printing the time and date from a real-time clock module, the id of a fingerprint ...
1
vote
2answers
93 views

Is there some hardware that can be used to upload sketch source code via USB flash disk (Automatically By plugging it in)

Well am asking this basically to know if it is possible to create a bootable flash drive that automatically uploads any source code onto the arduino just like creating a bootable flash drive when ...
0
votes
0answers
68 views

Overflow while working with SD library

i am currently working on a Project with an SD card. I want to open a .csv-file on my sd card (later it should be the last file) and then read the ID that is at the start of the .csv-file. Yesterday ...
1
vote
3answers
799 views

reading micro SD card directly from PC

Is it possible to read a microSD card (on a breakout) through the USB port on the arduino? or perhaps another USB port I could attach to the breakout? Basically, I would like to read data off the ...
0
votes
0answers
54 views

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

ESP32 saving data to SD card in .csv doesnt format correctly

i want to save a vector to a .csv file on a SD Card. I watched this tutorial on how to do it and it describes it perfectly even though its kinda dated. My Problem is that everything is saved into ...
1
vote
1answer
1k views

What pins can be used for chip select (CS, CC) on the Arduino nano every?

I’ve checked the nano’s tech specs but I can’t seem to find any information regarding it. I’ve tried setting it to pin 26 (digital output)
0
votes
1answer
117 views

SD writing problem

I have an Arduino code for logging sensor data, time and date. Then I store all the data in the SD card and then I will send the sensor value to another node by using Lora. but I can't write the data ...
1
vote
1answer
294 views

SD Card and Lora module arduino uno

Background: When working on the 2 modules separately they were working perfectly. Problem: In the code attached we tried integrating them but Lora wouldn't receive any data unless we commented out ...
0
votes
2answers
59 views

Audio stops playing after rtc is connected

I am trying to play a song using arduino while at the same time display time using a rtc board using the tmrpcm library. However, if the rtc board is connected no sound is played. I do understand ...
0
votes
1answer
154 views

Copy one SD card to another

I want to copy an SD card to another. What is the best way to attack this problem? Should i get two sd card shields? If yes, is it possible to stack two together, or will there be problems with the ...
1
vote
2answers
130 views

SD card example freezes at line SD.begin() what should I do?

I have a 16GB SD card which is formated with FAT32. I'm trying to run the example codes presented for SD in Arduino. The SD card is inserted in the data logging shield and the CS pin in this shield is ...
3
votes
4answers
3k views

What do these pins mean? Where should I plug them in?

I am trying to collect data from the arduino into a SD card for the first time, so I bought the adapter at my local electronics/arduino shop. However, I could not find an explanation as to what each ...
0
votes
1answer
61 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-...

1
2 3 4 5
7