Skip to main content
Question Protected by CommunityBot
Tweeted twitter.com/StackArduino/status/653079216666357760
Grammar, inlined images, added tags, code formatting.
Source Link
Nick Gammon
  • 38.7k
  • 13
  • 67
  • 125

i'mI'm new about arduinoto Arduino and electronics. iI want to make a project including sd datalogger.SD data-logger, but iI had a problem. i'am appreciatedI would appreciate if someone show me where i didI made a mistake.

firstlyFirstly, circuit was set up as in picture http://i.hizliresim.com/1kQJDB.jpg i:

Hardware setup

I am using 8gb8 Gb micro SDHC card with SD adaptoradapter. I formatted in FAT32. I can play audio files which are in appropriate format and read and the print contents of text files. but

But when iI want to create a new file, strange file is obtained in SD card as in pic http://i.hizliresim.com/vL1j6O.jpg .:

Directory listing

So I reformat SD card. the code that is used while creating file is as this;

// open a new file and immediately close it: Serial.println("Creating example.txt..."); myFile = SD.open("example.txt", FILE_WRITE); myFile.close();

// open a new file and immediately close it:
Serial.println("Creating example.txt...");
myFile = SD.open("example.txt", FILE_WRITE);
myFile.close();

somewhereSomewhere I read SDHC card with more than 2 gbGb capacity is not supported in aurduinoArduino and I bought 2 gbGb SD micro with SD adaptor. but

But in this case aurduino does not detect SD card. please someone help me.

i'm new about arduino and electronics. i want to make a project including sd datalogger. but i had a problem. i'am appreciated if someone show me where i did mistake.

firstly circuit was set as in picture http://i.hizliresim.com/1kQJDB.jpg i am using 8gb micro SDHC card with SD adaptor. I formatted in FAT32. I can play audio files which are in appropriate format and read and the print contents of text files. but when i want to create a new file, strange file is obtained in SD card as in pic http://i.hizliresim.com/vL1j6O.jpg . So I reformat SD card. the code that is used while creating file is as this;

// open a new file and immediately close it: Serial.println("Creating example.txt..."); myFile = SD.open("example.txt", FILE_WRITE); myFile.close();

somewhere I read SDHC card with more than 2 gb capacity is not supported in aurduino and I bought 2 gb SD micro with SD adaptor. but in this case aurduino does not detect SD card. please someone help me.

I'm new to Arduino and electronics. I want to make a project including SD data-logger, but I had a problem. I would appreciate if someone show me where I made a mistake.

Firstly, circuit was set up as in picture:

Hardware setup

I am using 8 Gb micro SDHC card with SD adapter. I formatted in FAT32. I can play audio files which are in appropriate format and read and the print contents of text files.

But when I want to create a new file, strange file is obtained in SD card as in pic:

Directory listing

So I reformat SD card. the code that is used while creating file is as this;

// open a new file and immediately close it:
Serial.println("Creating example.txt...");
myFile = SD.open("example.txt", FILE_WRITE);
myFile.close();

Somewhere I read SDHC card with more than 2 Gb capacity is not supported in Arduino and I bought 2 Gb SD micro with SD adaptor.

But in this case aurduino does not detect SD card. please someone help me.

Source Link
dursung
  • 71
  • 1
  • 1
  • 2

arduino creates strange files in SD card

i'm new about arduino and electronics. i want to make a project including sd datalogger. but i had a problem. i'am appreciated if someone show me where i did mistake.

firstly circuit was set as in picture http://i.hizliresim.com/1kQJDB.jpg i am using 8gb micro SDHC card with SD adaptor. I formatted in FAT32. I can play audio files which are in appropriate format and read and the print contents of text files. but when i want to create a new file, strange file is obtained in SD card as in pic http://i.hizliresim.com/vL1j6O.jpg . So I reformat SD card. the code that is used while creating file is as this;

// open a new file and immediately close it: Serial.println("Creating example.txt..."); myFile = SD.open("example.txt", FILE_WRITE); myFile.close();

somewhere I read SDHC card with more than 2 gb capacity is not supported in aurduino and I bought 2 gb SD micro with SD adaptor. but in this case aurduino does not detect SD card. please someone help me.