DIY - Combine 3/4 RFID readers to open a MagLock - Help?


DIY - Combine 3/4 RFID readers to open a MagLock - Help?

Hello everybody! I plan to create an escape room in germany. I have coding experience, but i'm an absolute arduino newbie and i'm looking for someone who can help me to realize different puzzles. Of course i would also use an alternative system instead of arduino. I would like to build a game with three or four unique rfid readers which should unlock a magnetic lock if they are placed on the correct position! I know that there are several solutions available on aliexpress or in shops like frightprops, but i would like to built and understand it on my own to enhance and develope own puzzles for my escape room. Is here someone who can help me or knows a tutorial for that case? I would be very happy about help! Thanks alot! :wink:

It should be similiar to this solutions:

If you are using the SPI interface of the MFRC522 reader then all of the readers share the MOSI, MISO, and SCK pins. Each one needs a separate SS (SlaveSelect) and RST (Reset) pin. You pass those two pin numbers when you declare the MFRC522 objects.

For each of your MFRC522 objects, call .PCD_Init() to initialize the object. This is typically done in setup().

In loop() you would call .PICC_IsNewCardPresent() on each of your reader objects to see if there is a card to read. If a card is present, use .PICC_ReadCardSerial() to read the serial number. See the MFRC522 library examples for sample code.

Beyond that it is up to you to decide what you want the system to do with all of the possible permutations and combinations of inputs.

Have a look at my reply to this thread It's about recognizing a password, i.e. detecting a specific sequence of characters. Your problem is similar, so you may be able to use that.