SD card with Neuftech W5100 Micro SD shield

Hi everyody.

I'm newbie in Arduino and I meat problem with my new shield Neuftech Ethernet SD on Uno.
I'ved formated a 2Gb SD Card with software as said in the forum, and I use CardInfo sketch from example to test the shield.

But, when I start the board, it tells me that there's no card.
I've change CS pin from 4 to 10 without any success.

However, ethernet seems to work.

Is there specific SD library for this card, or maybe it is bad one (I'll retunr to sender if is).
Thank's a lot for help.

Hi,

This is a new sketch used, lighter, for test :

//déclarations includes
#include <SD.h>
#include <SPI.h>

//Déclarations variables globales
File MonFichier;

//Déclarations des constantes globales
String NomFichier="toto.txt";  //8 caractères pour le nom, ext en 3, comme DOS
//déclarations fonctions
const int SDCS=10;
const int PinOther=4;
void setup() {
  pinMode(PinOther,OUTPUT);
  digitalWrite(PinOther, true);
  //Initialisation système
  Serial.begin(9600);
  if(!SD.begin(SDCS)) {//on utilise la broche 4 et on teste la comm
    Serial.println("ERROR SD CARD");
    return; // stoppe le programme
  }
  Serial.print("Communication OK !");
  //Ouverture du fichier
  MonFichier=SD.open(NomFichier,FILE_WRITE);
  if (!MonFichier) {
    //Erreur d'ouverture de fichier
    return;
  }
  MonFichier.close();
}

void loop() {
  //Boucle principale.

}

Nothing more than "Error SD Card".
I change the 2 const (SDCS and PinOther) between them, with no more success too.
I've red that sometimes power was wrong, so I put a 9V power supply without success too :frowning:

The SD card slave select should be D4. The W5100 slave select should be D10.

Compile and upload this test code. After you upload the code, power down the Arduino for a few seconds, then power it up. Does the SD card start ok?

#include <SD.h>
#include <SPI.h>

const int ETHCS=10;
const int SDCS=4;

void setup() {
  // disable W5100 SPI
  pinMode(ETHCS,OUTPUT);
  digitalWrite(ETHCS,HIGH);

  Serial.begin(9600);

  if(!SD.begin(SDCS)) {
    Serial.println("ERROR SD CARD");
  }
  else {
    Serial.print("SD OK !");
  }
}

void loop() {
}

Hi,
Thanks for your answer.
I've done it, but still have SD card error :frowning:

Hi !
I've just received my new Arduino Mega (an original, not a copy).
I've tried my sketchs with it, and there's no changes. Ethernet work good, but SD not.
I think, now, that my card is defective in SD part.... :frowning: