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


Probably, aurduino doesn't support some SD cards, this problem looks like some cd driver or writer doesn't detect some compact discs.
I have two micro sd one of them 8 gb micro sdhc - sandisk - this is supported reading but not supported for writing
other one 2gb microsd- noname - this is not supported for reading and writing
is there someone tell me mark and type of sd card to be able read and write successfully.
– dursung Sep 23 '15 at 16:07