issues with MFRC522 AccessControl example

I'm trying to set up an RFID lock thing with a solenoid, following this tutorial.

I've set up my master card and when I boot up the serial monitor I get:

Access Control Example v0.1
MFRC522 Software Version: 0x92 = v2.0
-------------------
Master Card's UID
E5B08EB0
-------------------
Everything Ready
Waiting PICCs to be scanned

When I scan another card this happens:

Scanned PICC's UID:
AB194E9

... and then it won't respond to any other card. The same thing happens when I enter programming mode with the master card. It prompts me to scan a different card and then when I do it seems to freeze up. I can't even use the master card to exit program mode afterwards.

Everything Ready
Waiting PICCs to be scanned
Scanned PICC's UID:
E5B08EB0
Hello Master - Entered Program Mode
I have 255 record(s) on EEPROM
Scan a PICC to ADD or REMOVE to EEPROM
Scan Master Card again to Exit Program Mode
-----------------------------
Scanned PICC's UID:
AB194E9

Does anyone know what's going on here?

Are u using the example AccessControl?

It seems that no successRead is present! (the program will not go further while you are not getting a successful read)

Go into code and write some serial.print to see where the code stops...

Can you upload your code?

Hi,
Why have you two threads for the same project?

https://forum.arduino.cc/index.php?topic=507023.0

Tom... :slight_smile:

I figured they were separate issues so I made different threads. I guess I should have kept it in the same one.

Yes, I am using the example AccessControl.

... and I solved the problem! I think I made a weird wiring mistake at one point and accidentally filled up EEPROM with the records for just one card.

After clearing EEPROM it started working as intended.