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-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.

0
votes
2answers
696 views

Read CID from SD card with ESP8266

I would like to get the serial numbers of SD cards, with follow code: #include <SPI.h> #include <SD.h> // set up variables using the SD utility library functions: Sd2Card card; SdVolume ...
0
votes
1answer
206 views

Interrupt crashes code when implemented

I've got a mini weather-station with a Davis Anemometer Vantage Pro that uses a reed switch to detect rotations. Using the rotations it then can convert to MPH. When using it alone, I have no problem ...
1
vote
1answer
225 views

Failed to initialise SD card on Leonardo

I'm trying to connect SD card reader to my Arduino. For testing i'm running CardInfo example. It seems like it runs ok when I'm running it on my Arduino UNO, but it fails to initialise SD Card while ...
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
0answers
150 views

Retrieving problem in Extended Database Library and SD Card

I can successfully save to the extended database library, but when I retrieve the records the fullname of the previous records is replaced with the recently saved fullname. What could possibly be the ...
0
votes
1answer
145 views

SD begin affecting OLED display

Okay, I'm using u8g2 library for my OLED display. After calling SD.begin(4) function, I cannot display anything on my OLED. I'm using U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ ...
0
votes
2answers
309 views

Reading setting from microSD

I modified the SD sketch for ESP8266 to read WIFI setting from a file named CONFIG.TXT. The text file's content format is SETTING=VALUE. Ex. SSID=AP001 KEY=AP001 I manage to separate the SETTING and ...
-1
votes
1answer
855 views

Using SD library in a ESP-IDF project on ESP32 [closed]

I just started to move from the Arduino firmware to the esp-idf firmware. I read that link. I learn that I have to include libraries creating a component files, with a component.mk file, *.c, *.cpp ...
0
votes
2answers
190 views

EDB. Is it possible to create multiple tables with db.create()?

Good day! I seem to be having trouble creating multiple tables with EDB. I am using Arduino UNO and SD Card module to save my db. Here is my Serial. Here is my table declaration. struct ...
0
votes
1answer
145 views

How to create a log file document which is not editable by a word processor on SD card

I'm using a Arduino Mega 2560 and SD card shield to make an industrial logging panel. Is there any way to write log data document in a read-only type file like a pdf on SD card so that the contents ...
1
vote
1answer
158 views

Portal gun sound effects and lights

I'm building a portal gun from the game Portal and I'm struggling with the wiring for the lights and sound. I've the lights working using the first image from Instructables and adding more LEDs ...
1
vote
1answer
212 views

Pass a char array to a function that uses File as parameter

I am in serious need for help here. I have a rather small function that get's the number of files from within a given directory. Now, the directory name (that is the path) is stored in a char array ...
0
votes
2answers
103 views

Arduino extended database library data type. Is char str[] in Arduino the equivalent of VARCHAR in SQL?

I am new to Arduino and I am currently working with an Arduino Uno and SD card module - SD/MMC for database storage using the Arduino database library from https://github.com/jwhiddon/EDB. My ...
0
votes
0answers
39 views

Code runs fine under USB power, but SD file reading fails when powered through RAMPS 1.4

While building a fairly complex sketch for a 5 axes CNC machine, I ran into repeated problems trying to get a stable read from the SD card-reader built into the Ramps 1.4 128x64 LCD display. After a ...
0
votes
2answers
327 views

Using a Micro SD card for data logging, bad idea? Reliable?

I'm planning a project that will read data from an I/O board. The micro SD card would hold data for input bit identity, labeling ?, then logging after events end. Nothing would be written to or read ...
0
votes
0answers
290 views

Using a keypad to play an audio file on Arduino Mega and Adafruit VS1053?

I am trying to use a keypad to trigger an audio file using an Arduino Mega and Adafruit VS1053 Music Maker. I have gotten the music files to play independently, and when the correct number is entered ...
0
votes
0answers
40 views

Regarding SD card writing

In my recent project, one part is writing the incoming serial data into SD card. I'm successfully able to write data to SD card. But the problem is my serial data is continuous and because of that ...
0
votes
1answer
269 views

Adafruit Huzzah and SD card breakout

I have an Adafruit MicroSD card breakout board and an Adafruit Feather HUZZAH with ESP8266 WiFi I wired that up according to this link's last picture. The code I am using: #include <SPI.h> #...
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 ...
0
votes
1answer
102 views

Arduino nano and wemos sd shield

Is it possible use Arduino nano with wemos sd shield? If I can, how to I connect sd shield to arduino and what modification I need to do on library setting?
1
vote
0answers
183 views

Save data from an LCD KeyPad Shield to an sd card

I'm developing a project that requires save datas from a sensor that is connected in a lcd keypad shield, the information should be save in a file into sd card. My code #include <LiquidCrystal.h&...
1
vote
0answers
86 views

Combining mysensors with SD card (on an Ethernet Shield v2)

I'm trying to combine a MySensors network with the usage of a SD card. Currently I'm working with the SD card reader on the EthernetShield v2. The NRF24L01+ chip I'm using is also using SPI but we ...
1
vote
1answer
324 views

Arduino Uno to Arduino Uno Word.doc file transfer

I have written a 2 sets of code for the transmitter and receiver section. I am trying to send a word document file from 1 arduino uno to the next arduino uno through serial TX and RX. The file is ...
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
115 views

Beetle ble with SD card reader

I just started working on a project involving bluno beetle ble. For now, i'm sending the data from beetle to a android app i made. But, for a fail safe mechanism in case the mobile is not in range ...
1
vote
1answer
260 views

View Arduino M0 SD card content on a computer

Recently I bought an Arduino M0 board and I'm using it in one of my projects, which logs GPS data into an SD card. Can an Arduino M0 be programmed as a USB SD Card reader? So that I don't have to ...
1
vote
3answers
237 views

Unable to access SD Card when using GPS and MS5611 sensors

I'm trying to connect multiple sensors to an arduino and write the retrieved data in to a SD. When I test each module separately it works properly, but when I put everything together the SD card ...
0
votes
0answers
518 views

Relational Database for Arduino on SD card?

I have been searching for some sort of library that can create, query, and insert data into a SQLite style database from an Arduino to an SD card. I have looked at the Arduino Extended Database ...
1
vote
1answer
310 views

SD card fails to write when used with another SPI device

I have an ADXL355 accelerometer attached to an Adafruit Feather Adalogger. I can configure and read the sensor. I can also write binary values to the SD card. The problem occurs when I try to read ...
1
vote
0answers
70 views

Digital Music Player (SD to USB)

I own a couple of digital in-ear headphones that connect to my phone using USB (some micro, some type C), i.e. they have a built-in DAC and amp. Now instead of having to carry my phone along to listen ...
1
vote
1answer
638 views

Connecting multiple boards to Arduino Uno r3

How can I connect the Arduino RFID RC 522 and SD card adapter to one Arduino Uno R3? As each library takes specific pins in Arduino for MOSI, MISO, CLK. So I have conflict in the pins, how can this be ...
3
votes
1answer
109 views

ADXL345 becomes 0g when plugin MicroSD Adapter using SPI

Try SD SPI code and ADXL345 SPI code separately and both are fine. When merge the codes, ADXL345 reading okay (not plug in MicroSD Adapter). Pin should bo okay. Every time MicroSD is plugged (the ...
6
votes
3answers
375 views

Multiple SPI device

I want to connect Ethernet board (W5100 HR911105A) to Arduino Leonardo with SPI and I also want to connect SD reader. When I test these boards separately everything working. But when I connect them ...
1
vote
2answers
772 views

Arduino writes only one time on SD card - Data log

I connected the SD card to Arduino as it's explained here. The problem is that the Arduino writes only once to the SD card and I don't understand the reason. #include <SD.h> #include <SPI.h&...
0
votes
0answers
59 views

After the first serial print statement, the command window will only print seven more characters

When I try to initialize my SD card reader the second print statement to the command window only gets through the first seven characters. However this is only a problem if the initialization succeeds. ...
2
votes
2answers
179 views

Writing on a SdCard

I'm writing on a SD card the value of a measured voltage. I've a good sampling/writing frequency but regularly the acquisition take a lot of time (like 4000us instead of 400us). I noticed that this "...
0
votes
1answer
261 views

Writing int/long on Sd card

I'm working on a project with SDcard, and I would like to write int and long in a file. If I try to write 0x1954 I had 0x5419 on my file with file.write() so I did a circular shifting like: data=(...
0
votes
1answer
2k views

SD card fail of initializing

I have an arduino Mega and a catalex card reader which yesterday worked, but today y tried another time and the sd card where not detected, i am using the example code from arduino website for the ...
3
votes
1answer
527 views

Creating a file in an SD card

I have an Arduino Mega connected to an SD card reader (Catalex branded), that at least detects the card as it displays the info of the card. But when I try to create a file, it does not create it. I ...
2
votes
1answer
69 views

How do i power recycle on SD card

I am working on my home made project where i am using SD card to log GPS data into it,As well as i have to access that data from the SD card on my computer while all the system is connected to battery ...
0
votes
0answers
54 views

Why is my MMA8451 only printing the gravitational constant to my file?

I have two accelerometers hooked up to a multiplexer breakout board that sends the acceleration data to an SD card. I know the wiring is correct from the sensors to the multiplexer because I tested it ...
0
votes
1answer
202 views

Arduino Due not properly detecting SD card

I have an SD breakout for my Due that isn't properly detecting the SD card. On one card, it cannot detect at all, and the other it says that the SD isn't formatted with FAT, even though it is. Here is ...
1
vote
2answers
155 views

SdFat Library what is dir_t*?

I'm using the SDFat library and the FatFile type has the functions: bool FatFile::dirEntry(dir_t* dir) Return a file's directory entry. Parameters [out] dir Location for ...
0
votes
0answers
46 views

'Class SdFat' error message with Adafruit wave shield

I'm using Arduino Uno and Adafruit Wave Shield, with the WaveRP library. I was able to run the example programs of the waveRP library, but I try to connect a mic to the shield, didn't go well, so I ...
0
votes
0answers
88 views

Arduino RS232 Shield with SD Card conflict

I have an Arduino Mega with a Ethernet2 Shield + RS232 Shield SD Card works well with Ethernet2 Shield, but it get a conflict when I add the RS232 Shield. Both hardware use the same PIN: #define ...
0
votes
0answers
78 views

Why is my code not creating a file on my SD card?

I essentially copied and pasted the code from the arduino website, but when I try to create a file on my SD card it fails. The SD card makes it through initialization but for some reason it will not ...
0
votes
2answers
320 views

How can I find and specify the address of my adafruit MMA8451 accelerometer in arduino code? [duplicate]

I am trying to use four of the same accelerometer on the same bus and acquire data from each of them using an SD card. Because I am using four of the same accelerometer I need to be able to ...
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 ...
1
vote
1answer
756 views

DHT22 and DS18B20 together

I am trying to get DHT22 and DS18B20 to work together. The code below is the one I am using: #include <SD.h> #include "SPI.h" #include "DHT.h" #include <RTClibExtended.h> #include <...