working rfid rc522

Discussion in 'Arduino IDE' started by sevent\, Feb 4, 2014.

  1. sevent\

    sevent\ New Member

    Joined:
    Jan 28, 2014
    Messages:
    2
    Likes Received:
    0
    Hi!,
    I bought a RFID-RC522 Module for my udoo
    I use this miguelbalboa library (https://github.com/miguelbalboa/rfid) and I follow the this pin connection:

    MOSI: Pin 51 / ICSP-4
    MISO: Pin 50 / ICSP-1
    SCK : Pin 52 / ISCP-3
    SS : Pin 53 (Configurable)
    RST : Pin 5 (Configurable)
    3.3v: Pin 3.3v
    gnd: Ping GND

    and i use this code:
    #include <SPI.h>
    #include <MFRC522.h>

    #define SS_PIN 53
    #define RST_PIN 5
    MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.

    void setup() {
    Serial.begin(9600); // Initialize serial communications with the PC
    SPI.begin(); // Init SPI bus
    mfrc522.PCD_Init(); // Init MFRC522 card
    Serial.println("Scan PICC to see UID and type...");
    }

    void loop() {
    // Look for new cards
    if ( ! mfrc522.PICC_IsNewCardPresent()) {
    return;
    }

    // Select one of the cards
    if ( ! mfrc522.PICC_ReadCardSerial()) {
    return;
    }

    // Dump debug info about the card. PICC_HaltA() is automatically called.
    mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
    }

    but the rfid don't work

    i did not understand if the rfid don't work or i don't linked corret the pin
    can someone help me?
     
  2. sevent\

    sevent\ New Member

    Joined:
    Jan 28, 2014
    Messages:
    2
    Likes Received:
    0
    I tested it on an Arduino one , and it work .
    can someone help me ?
     
  3. matheussouza

    matheussouza New Member

    Joined:
    Nov 8, 2014
    Messages:
    2
    Likes Received:
    0
    I'm having the same problem.
     

Share This Page