Questions tagged [sd]
The sd tag has no usage guidance.
65
questions
-2
votes
0
answers
54
views
To create timestamp file on SD card with actual date and time of creation
#include <SPI.h>
#include <SD.h>
#include <Arduino.h> // required before wiring_private.h
#include "wiring_private.h" // pinPeripheral() function
#include <PCF8563.h&...
2
votes
0
answers
105
views
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 ...
4
votes
1
answer
219
views
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 ...
0
votes
1
answer
118
views
sizeof tm struct (datetime) different on ESP32 vs linux64x
I am logging binary data to my SD. I log a datetime object of type 'tm', which is 36 bytes on ESP32.
When I create a datetime of type 'tm' on linux it is 56 bytes.
ESP32 write tm to SD:
[tm datetime = ...
2
votes
1
answer
202
views
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 ...
0
votes
1
answer
72
views
What is the chip in this board?
Doing some research about SD card adapters, I found these boards with a chip on them.
They are actually very common. They have a linear voltage regulator because UNO for example use 5V but SD card ...
1
vote
0
answers
132
views
Arduino Zero and micro SD card not working
I have an Arduino Zero processor (atsamd21g18a) with a microSD shield connected (check images of schematics)
The point is that I cant make it to work, not with sd.h sketch and not with sdfat.h sketch....
2
votes
1
answer
1k
views
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 ...
2
votes
0
answers
105
views
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 ...
1
vote
0
answers
59
views
Get LFN from SFN with SDFat
I am trying to optimize the memory usage of my ESP8266 arduino sketch by using 8.3 SFN folder names internally, but LFN when needed for user output. Unfortunately when opening a folder by using the ...
9
votes
1
answer
2k
views
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 ...
2
votes
0
answers
60
views
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?
1
vote
0
answers
101
views
Can I record us (microseconds) with AnalogBinLogger example in SdFat's library?
I am using the AnalogBinLogger from the SdFat example library. I am using it to record 8 analog channels at 5kHz! which is amazing (thank you SdFat).
Is it possible to include a separate column to ...
2
votes
2
answers
1k
views
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 ...
1
vote
1
answer
61
views
SD seems too slow for SMTP
I have asked this question on the arduino forum as well.
I have used SMTP before using client.print (and client.println) but I am now trying to move as much text as I can from RAM to SD (and so I need ...
1
vote
0
answers
122
views
Problem with using SD and Adafruit_SSD1306 libraries at the same time
I am searched over the internet and found out a few similar questions, but non of them were helpfull, so I decided to open a new quetion.
I tried both SD and Adafruit_SSD1306 libraries and they both ...
1
vote
1
answer
90
views
Barcode not logged in SD card UART
After trying for a good month.. looking like a Newbie I have not managed to log the result of barcode scanner , using rtc SD module and a waveshare scanner connected via UART to ports 2 and 3 from the ...
1
vote
0
answers
189
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
}
...
1
vote
0
answers
366
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
2
answers
650
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", ...
-1
votes
1
answer
86
views
SD card with arduino UNO
I am trying to use a micro SD card in order to store data sent from an arduino UNO.
My setup consists of:
Arduino UNO (5V logic), powered directly from USB cable
Digilent Full-sized SD Card Slot
...
0
votes
1
answer
436
views
SD Library function doesnt work while using second SPI port with ESP32
i work on a group project with an ESP32. We have a lcd display and a sd card connected via the two SPI ports of the ESP32.
The card gets initialized with no problem using this code:
bool ...
1
vote
2
answers
87
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 ...
1
vote
0
answers
839
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
1
answer
149
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,...
1
vote
0
answers
123
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 ...
1
vote
0
answers
74
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>
#...
1
vote
1
answer
379
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 ...
1
vote
0
answers
156
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 ...
2
votes
3
answers
7k
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
1
answer
534
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?
0
votes
1
answer
1k
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,...
1
vote
1
answer
199
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
1
answer
196
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
1
answer
771
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
2
answers
810
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
4
answers
4k
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 ...
1
vote
1
answer
634
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
1
answer
145
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
1
answer
501
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 ...
3
votes
1
answer
354
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
1
answer
6k
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
2
answers
1k
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
1
answer
90
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
1
answer
3k
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 ...
2
votes
0
answers
104
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
3
answers
5k
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);
...
-1
votes
1
answer
996
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
2
answers
1k
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
2
answers
3k
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 ...