Problem to connect togeher Ethernet shield and tarjet RFID

Hi, I would like know if someone know how can I connect a RFID tarjet with my Ethernet shield, the problem that i see is that using a programm that is only using the RFID, but i have connected all, with the pins MISO,MOSI,SCK that are the same, the pin SS of ehternet is 10 and the SS of my RFID is the 7, the arduino don't read the RFID card.

Also I put in high and low the SS corresponding pins.

In my programm that i want do, connected all, only work my ethernet shield, the rfid do like if it isn't there.

Thank you.

What is a RFID tarjet? Can you post a link to it?

Post your sketch also.

Hi, sorry , i have this RFID

http://www.tinydeal.com/es/RFID-RC522-RF-IC-Card-Sensor-Module-Suite-Blue-p-114596.html?currency=EUR&gclid=CjwKEAjwxKSoBRCZ5oyy87DimEcSJADiWsvgwO6phtHS4b0zKpF5tSTw1A7pFk41dywRpbN_X2U17BoClhbw_wcB

My sketch is this

Is a normal identification of the number of a RFID tarjet.
The problem is when i connect both together don’t work the RFID

identificartarjeta.ino (1.52 KB)

//GeekChickens
//http://geekchickens.blogspot.com.es/
/*
SDA es el pin 10
SCK es el pin 13
MOSI es el pin 11
MISO es el pin 12
RST es el pin 9
*/
//-----------------------------------------------variables, includes, funciones, etc-------------------------------------------------
#include <SPI.h>
#include <RFID.h>
 
#define SS_PIN 6
#define RST_PIN 7
 
RFID rfid(SS_PIN, RST_PIN);
 
int numero_serie[5]; // aqui guardaremos el número que nuestro sensor RFID detectará
 
 //-----------------------------------------------variables, includes,funciones, etc-------------------------------------------------
 
void setup()
{
  Serial.begin(9600);
  pinMode (6, OUTPUT);
  pinMode (10, OUTPUT);
  SPI.begin();
  rfid.init();
}
 
void loop()
{
    digitalWrite(10,LOW);
    digitalWrite(6,HIGH);
   leer_usuario();
}
 
 
void leer_usuario()
{
    if (rfid.isCard())
    {
           if (rfid.readCardSerial())
            {  
                Serial.print("Numero usuario: "); // guardamos el numero del usuario
                for(int i=0; i<=4 ; i++)
                {
                  numero_serie[i] = rfid.serNum[i];
                }
 
                for(int i=0; i<=4 ; i++) // y lo imprimimos
                {
                  Serial.print(numero_serie[i]);
                  Serial.print("    ");
                }
 
                Serial.println(" "); // espacio para el siguiente código
                delay(500); // para que no se imprima constantemente el mismo numero
             }
    }
    rfid.halt();
}

Change your setup function to this. It disables all SPI devices before starting any of them. See how this does.

void setup()
{
  Serial.begin(9600);

  // disable SD SPI
  pinMode (4, OUTPUT);
  digitalWrite(4,HIGH);

  // disable RFID SPI
  pinMode (6, OUTPUT);
  digitalWrite(6,HIGH);

  // disable w5100 SPI
  pinMode (10, OUTPUT);
  digitalWrite(10,HIGH);

  SPI.begin();

  rfid.init();
}

Remember the SS pins are active LOW, and disabled HIGH.

Okey.... i try and nothing.

I have to say that my ethernet module is the enc28j60 shield, i don't know if this can be the problem. In a few days a recieve the ethernet shield of w5100 so i will try with this...

I upload a photo.