Questions tagged [sd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
31 views

Can I read from a memory card with three pins?

I have a project where I have three pins to use and I just realized it would be better to use a memory card than replacing the code each time. I'm building a Arduino with a push button. Press the ...
0
votes
0answers
31 views

First sprintf-call works, second (identical) does not

In my current project I'm using an Arduino Nano, an RTC-Module, SD-Module and an OLED-Display to log time-values. I'm currently trying to implement following function: char *onString = (char*)...
1
vote
0answers
111 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
-1
votes
1answer
16 views

SD card reader and lcd display

I have sd card reader and lcd display. I want to display bitmap with u8g2 library. My bitmap looks like: 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00,...
0
votes
0answers
41 views

Arduino malfunction tmrpcm while used digitalRead

I am programming Arduino UNO for this functionality: with use of SD card reader module and SIM900 GSM/GPRS shield I am trying to: 1. Pick up incomming call, play message from SD file and after the ...
0
votes
0answers
28 views

Getting wrong value from sd card

I stored "28328630" in sd card but at output i getting wrong value. on serial "5566" getting this value. #include "HX711.h" #include <Wire.h> #include <LiquidCrystal_I2C.h> #...
0
votes
1answer
65 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
104 views

How to read correctly binary data on sd card from a structure?

I am currently struggling to apply Majenkos solution to read binary data from an sd card. I am writing data as floats from a 3-axis accelerometer via a struct this way: struct data { float acc_x; ...
0
votes
0answers
45 views

LCD on top of SD datalogger flickers help!

I have a problem with my 16,2 with buttons lcd shield.(LCD Keypad Shield). It is connected on top of an SD dataloger. I came to the conclusion that every time the sd shield logs data and completes the ...
1
vote
2answers
508 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(); ...
0
votes
1answer
106 views

Fast data logging

I want to store noise data (basically from A0) from an Arduino Uno to an SD card with faster writing speed, preferably by using 512 data together and the write it at once. What should be the code?
-1
votes
1answer
300 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
0answers
24 views

TimerOne and Saving Data to SD Card

I'm using TimerOne.h for collecting sensor (two photocells) data with a frequency of 100 ms and saving the data to a SD card. The file only seems to save data when the computer is connected to the ...
0
votes
1answer
86 views

Where are the implementations of the SdFat BlockDriver methods?

This is most probably more of a C++ question than an Arduino question; but since this is an Arduino library, I am asking here. I am using the SdFat library for my project. The library defines a ...
0
votes
1answer
89 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() ...
-1
votes
1answer
264 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
41 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 : ...
0
votes
2answers
342 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
413 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
4answers
934 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
312 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
51 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
154 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
227 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
4k 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
350 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
68 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
1k 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
60 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
3k 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
1answer
613 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
911 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
2answers
1k 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
463 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
42 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
514 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
1answer
1k 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
156 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
2k 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
586 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 ...
2
votes
2answers
3k 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
524 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 ...
4
votes
2answers
4k 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
595 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
457 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 ...
2
votes
1answer
549 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
76 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 ...
1
vote
1answer
2k 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
523 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 ...