7 years, 10 months ago.

RFID-RC522

I'm trying to use an RFID-RC522 reader on my f303k8 nucleo but it seems doesn't work at all, on my F411re it works fine. Any suggestion?

Solved, i used PIN D11(MOSI), D12(MISO),D13(SCK) istead of the analog ones,and the pin A3(NSS) for the SDA

posted by Gabriele Tramonte 29 Jun 2016

1 Answer

7 years ago.

You need to define pin

  1. define MF_RESET D8
  2. define SPI_MOSI D11
  3. define SPI_MISO D12
  4. define SPI_SCLK D13
  5. define SPI_CS D10

MFRC522 RfChip (SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS, MF_RESET);