Home Creators Posts Import Register Favorites Logout

Content

This post contains links to the patrons-only resources to accompany the object placement (RFID) puzzle at https://www.youtube.com/watch?v=f_f_5cL0Pd0&index=2&list=PLogiUurtMYtR2Hf0-eg8-K2E9uRtpWzWV.

Arduino Code:

https://drive.google.com/open?id=1IANbrFfvtFaBvLA_HnaVZW-_yY1cMwWU

Fritzing Project:

https://drive.google.com/open?id=1FVia1UERwk1z5uC5Jc1XDcoZAAo7HVmG

Wiring Diagram:

https://drive.google.com/open?id=1hjg2cNT9pSmenh8_fp-d8iAaeBHTr6Fp

Additional Documentation:

https://drive.google.com/open?id=1S6gfM5gE-2SlwgAyqBr8BWhck5d91vql

Comments

Jon Patterson

Hello! This is a different take on how I've approached RFID code in the past. Can you give me some guidance on what you would do to add a unique action when each item is correctly placed (such as turn on a light)? I understand that for what you have this designed for, you likely wouldn't want a confirmation of the correct tag, but I've got an alternative use in mind that woud use it.

Ken Kolman

Alastair, Having a heck of a time in trying to modify this code and, if my thinking is correct, I might not be able to accomplish what I am setting out to do. What I want is to have a bunch of these cards and four slots with only four correct cards necessary. Sort of like a time card slot for who is at work. I can figure out how to use it just as and it works great, but, there is no indication if the players are right or even on the correct path. Upon solution of the placement, I can and have put another relay alongside that will trigger something in addition to a mag lock. Again, no issue there. What I want is some sort of indicator as to if they are progressing correctly. Oh, and I want to use a OLED display.

Ken Kolman

I have added the OLED with no issue, but trying to pick out which cards are correct and which are not then which are placed correctly and which are not is where I am stuck. The script I want is the players have all these RFID cards with employee pictures on them. They are supposed to place the cards in a "ranked" order via an extensive employee list cross referenced by an employee list which will have their RFID codes on them as well. One of two ways to handle this I see. 1: just display the read RFID code and display that (which I have accomplished) and let the players decipher what it means and try to determine rank of the employee. or 2: a display of the four slots with an X when incorrect and a O when correct but also some marker telling them they have a correct card but in an incorrect location. I am leaning towards number 1 as it is easier on the code, but I cannot seem to get the code to be displayed for any length of time as the loop keeps going back and clearing the screen.

Sofia Nygren

Hi Alastair, I am having a hard time finding the ID code for my RFID tags, they are advertised as Arduino compatible. There is nothing visible on the serial monitor even though the code was successfully uploaded. It was having an error code saying the MFRC522 was incorrectly connected and so I assume that has been fixed as that message is gone however now the "sensor 1 on pin 2" message has also stopped. Any thoughts on how I may be able to fix this? Thanks!

Trevor Brooks

Alastair, thanks for the videos. I really a noob on this stuff, and am wondering how the code will change( which parts of the code) if you change the number of rfid monitors, and also how the code would change if the relay was active low instead of active high. Thanks

Tyler Watson

Hey, having a slight problem with the code. The reader declares my tag as: "1501f3" when in reality it is "15001F03". The same is true with another tag, and it seems to be cropping some of the zeros. Any help is appreciated, thanks!

Tyler Watson

I just changed the value in my answer key to the one it was reading and it works now, but still curious to know why that was happening if you happen to know. Thanks!

Bram Knol

Dear Alastair, thank you for this great puzzle. I do have a question concerning the resoruces. The magnetic lock is connected with the relay and also with something else that provides power. Could you explain what that is since I cannot see it at the resources or in the explanations. Thank you

Ryan Herzek

Does the ESP32 have enough pins for this project? Would prefer to have wifi capability

Keith Coleman

Am I missing on how to program new RFID tags? Can someone please advise. Thanks!

OhYa1337

This requires everything to be in order. How can I take them in any order? so just the correct RFID tags are present, but not necessarily in the same order. Tag 1,2,3,4 is ok but I need to make it also ok if its 3,1,2,4 or what ever as long as the correct tags are used

Keith Coleman

Hey Alastair, thanks for the comment. I actually have some rfid stickers I want to use as I need them to be on the bottom of bottles. Could you advise on how to program them to the reader. Thanks!

Tihomir

Thanks Alastair! Any advice how to connect 6-7 RFID readers? Should I go with 2 arduinos that are connected to "master" arduino or is there any better option? Thank you in advance

Tom Shine

Hey, very new to creating escape room kits and looking to order the parts required to complete this project. I don’t see any where mentioned what power supplies to use, I see you need a 3.3v and 5.5v but what supplies can I buy for this? I just want to make sure I have everything I need before I start. Finally I understand this is a fairly old project, is there a newer one out that would be more suitable for me to try instead? Many thanks Tom

Piers Gray

Hi Alastair, thank you for a great tutorial and the code for setting this up! I've copied the diagram and code exactly, however whenever I add more than 1 RFID sensor, the Arduino refuses to communicate with any of the sensors. The issue appears to be with the MISO line. I'm using an Arduino Mega 2560 instead of Uno. Is there anything you can suggest to fix this issue? Thanks in advance.

Piers Gray

Thanks for your quick response! Yes, I changed the pins to the correct one, and when using one RFID sensor, it communicates and works perfectly, however the moment I add one more, I just get a communication error upon initialisation for all the sensors.

Coby Norrid

I'm late to this project just started supporting you a few months ago, playing catch-up. I really enjoy your video and projects. Keep it up and I will continue to support. I noticed in several of your later projects you started to put in logic for Intialising, Running, Solved. I tried to incorporate that back into the RFID code so it is not latching if i remove a tag I want it to go back to running. I can't seem to get it to work. Also would be nice if you used a master RFID card and then could reprogram sequences or new RFID tages for the solution.

Chris Burfield

Hi Alastair, thank you for a great tutorial and the code; it has been really helpful. I keep having problems reading the tags consistently. Sometimes all the tags are being read and puzzle is solved; after working for like 4 or 5 times, one of the reader would stop reading. Initially I thought it was issue with the reader and had it replaced but that seems not have an effect. Any thoughts on what is wrong?

Projet Dedale SARL

Hello Alastair. I just trusted you with the hope of getting several RFIDs running at the same time. I followed the instructions and I have a problem of compatibility between my readers. 1 sensor only works, as soon as I add one, none work. I have returned the problem in all directions and I am dry idea. Could the sensors be incompatible? Is the version important? (Firmware Version: 0x12). I looked a lot of forum, I found sources of your code on the library of miguelbalboa, but no version works. I made the following observation, when 2 sensors are connected, I do not detect any, if one of them does not have the MISO connected, the other sensor works. Can you help me ?

Euan Hair

Hi Alastair, I'm a new subscriber and complete beginner hoping to muddle through. I have started building as per the schematic and wondered what cables you use to tidy everything up as you have in the video?

Euan Hair

Thanks Alistair, just completed this puzzle today and delighted to say it’s working like a dream! Looking forward to completing more of your puzzles 👍

Cello

Hello Alastair I am Cello from Zurich and have built my own escape room (www.raum6.ch). Now I'm building new puzzles and I'm enthusiastic about your posts on the subject. At this point, a big thank you for your syphatic and creative inputs. I have now started to work with Arduino and have made a membership with you and bought your script for "Escape Room Object Placement Puzzle using Arduino/RFID". It works perfectly and my puzzle is running. The only problem I have is that when I remove one or more tags, the relay does not switch back to the initial position. So I have to reset the game (Arduino) every time to restart. Is it not possible to adjust it in scetch so that if not all tags are in the right place, the relay switches back to the initial position by itself ? Unfortunately, I have no experience at all in programming the scetches. Perhaps you can help me to adjust this accordingly. I would be very grateful for your feedback. Greetings from Zurich Cello

Sandor Erdei

Hi Alistair, I am amazed by the project and have learnt a lot from you . Thanks for everything. I had the idea to use 1 reader and get 4 consecutive readings , so the players will have to sequentially place objects on the same place to solve the puzzle. Would it be easy to modify the code that way ? Looking forward to hearing from you. Best Regards Sandor :)

Steve Turrentine

Hello Alastair, I just started working on this project and have an odd problem. I've been just starting with one rfid sensor RC522 to prototype, knowing I'll end up with 4 maybe 5. When I wire the sensor into my arduino R3 directly everything works fine. But when I start going through the WAGO connectors, the sensor won't read my tag(s). I started diagnoses one wire at a time and realized I can have all wiring going through WAGOs except the 3.3v OR the ground. The sensor works with either one connected to WAGO's but not both at the same time? Have you run into this before, or is there something I'm not taking into account on the power?

Jordin Van Delden

Hi Alistair, The RFID projects is awsome! i've tried to build the project and it worked fine! however i've tried to connect the RFID sensors trough a RJ45 connector but it keeps saying it is properly connected but there is no reaction when i keep a card against it. it is strange because without the RJ45 it does the same but it does give a reaction. i'm using a 2m cat5e cable and an 8-pin rj45 connector. could you please help me out?

Brian Shaffer

I've got this somewhat working but I'm getting different behaviors when the arduino is plugged into my computer and when it is just powered independently. When its connected to my computer the relay connects and disconnects when a tag is placed or removed as expected but when its just powered by itself with no connection it has to be reset either by button or power cycle in order to reengage the magnet. Any thought's as to why this is happening?

Kelsea Wall

Hi there Alastair, I'm doing a side project which involves RFID tags in Unity. I was wondering if you know how to incorporate something like this in Unity? This is such a fun project! thank you for doing this!

Andy

Hi Alastair, I have this puzzle working great in one of my escape rooms, but only if the laptop is plugged into the arduino. If I power the arduino from an external USB plug, it does not detect the rfid cards - help! any ideas please how I can remove my laptop?

Dimokritos Saloustros

Hello Alastair. I v tried to run the project and i got the message "Reader #0 initialised on pin 2. Antenna strength: 64. Version : Firmware Version: 0x0 = (unknown) 01:27:02.485 -> WARNING: Communication failure, is the MFRC522 properly connected? Reader #1 initialised on pin 3. Antenna strength: 0. Version : Firmware Version: 0x0 = (unknown) 01:27:02.758 -> WARNING: Communication failure, is the MFRC522 properly connected? Reader #2 initialised on pin 4. Antenna strength: 0. Version : Firmware Version: 0x12 = counterfeit chip Reader #3 initialised on pin 5. Antenna strength: 0. Version : Firmware Version: 0x0 = (unknown) 01:27:03.199 -> WARNING: Communication failure, is the MFRC522 properly connected? --- END SETUP --- " is there any tip in orfer to make it work?

Euan Hair

Hi Alastair, I'm trying to make this puzzle more robust as you've suggested. Did you ever make a PCB for this or do you have any instructions for using a protoboard? I have limited to no knowledge of electronics and really appreciate that you've provided enough detail for me to get the breadboard version working and I'm keen to incorporate this into my escape room permanently. Thanks again.

Waldemar de Haas

Hi Alastair. Great project. It's quite a tough job to wire up everything correctly (I had several errors in the beginning). But now everything works with 3 RC522 RFID chips from China on a breadboard. I love the way you code this and make it available for others.

robert lim

Hi Alastair, I manage to get it detected but the Serial communication started all the 4 reader Firware version is Unknownn. If am not wrong the sequence of the tag is correct but it does not shows puzzle solve. Is the firware unknow is important in order for the the puzzle be solve? Need help on this. Thank you. As below is the Serial Communition Started Reader #0 initialised on pin 2. Antenna strength: 64. Version : Firmware Version: 0xB2 = (unknown) Reader #1 initialised on pin 3. Antenna strength: 64. Version : Firmware Version: 0xE2 = (unknown) Reader #2 initialised on pin 4. Antenna strength: 64. Version : Firmware Version: 0xB2 = (unknown) Reader #3 initialised on pin 5. Antenna strength: 64. Version : Firmware Version: 0xB2 = (unknown)

Gerco van Straten

Hi Aliastair, Thanks for putting up this great video! When I try to wire up two RC522 at the same time, one of them has no antenna strength. If I connect both readers in their own ground, the antenna strenght is good, but both readers stop giving reaction. Seperately, they both work just fine. Any ideas on this? Really appreciating all your support btw. ;) Thanks!

Jon Weston

Hello Alastair, I've prototyped this up on a breadboard with 4 readers for a game and it all works fine an fast, but as soon as I assembled the finished game using CAT5e (and CAT6) to run between the Arduino and Readers, nothing is communicating. As a test, I have disconnected all the readers from the CAT5 cable and left one length connected to the Arduino (about 1m long) ensuring nothing is shorting. I have connected a reader using jumpers to the Arduino headers and it still doesn't work. If I remove the CAT5 cable, it then works. I have tested all the CAT5 and nothing is shorting between pins. Is there likely a crosstalk/interference issue? What colour wires did you connect to which pins between your Arduino and Readers? Trying to find a 7 core, un-twisted pair cable to test further...

Sven Hurt

Hello Alastair, first off, happy new year! While I had prepared quite an extensive list of questions, I guess what I’m really looking for is a Python 3 port of the Arduino RFID Library for MFRC522 formally maintained by Miguel Balboa. The tutorials for a Raspberry Pi and the MFRC522 I followed "all" seem to use the C Extensions for Python 2 by Louis. Although I got the provided examples from the following library up and running, it does not seem to provide the same functionality as the one for Ardunio <a href="https://github.com/mxgxw/MFRC522-python" rel="nofollow noopener" target="_blank">https://github.com/mxgxw/MFRC522-python.</a> Did I miss something or is the functionality just not available to the Rapsberry Pi? If not, is a port possible and / or worth the effort?

Graham Lumley

Hi Alastair, new to escape rooms but going strong with a new venue in Windsor. Is it possible to code the puzzle so the RFID sensors have to be placed in the correct order and onto the correct receiver.

David McAllister

Hi alastair. Will this work with a shorter breadboard? If so, what would change in the wiring/code? Thanks.

Jordan Halland

Hi Alastair! First off I'm so grateful that you have released your code and resources to help those of us with minimal experience with Arduino and electronics. I'm currently trying to digest your code for this object placement puzzle to fully understand it. I have reduced the number of readers to 1, as well as modifying the ss pin for the single reader. When I use the serial monitor and reset the Arduino the monitor prints that the sensor is working properly and setup is complete, but it doesn't seem to move into the loop function, therefore it won't print the uID of a tag placed on the sensor. I haven't modified the code aside from what I mentioned previously, is there something simple I'm missing?

Christopher Roufail

Im a bit confused here, i purchased this so i can see the wiring, but i dont see the Logic level converters that were used in fritzing? i also dont see the RJ45 cables. i dont even see mention of them anywhere

tadziu_91

Hi Alastair! Your project works perfect! I tried to modify a bit your code, but I did something wrong and my idea is not working. I tried to do this: there are four RFID sensors and when each of them can read a card but the cards are in wrong combination arduino send a signal to red diode for a 2 sec. Do you have any advice?

Eun Jung

Hi Alastair, I'm a new Inventor :) I just have one question regarding the magnetic lock, does it have to be the 12V 600lb lock with 380~430ma? Can I buy the 12V 130lb lock with 110ma? Will buying this need to change the Arduino code?

CJM Peters

Hi Alastair, I´ve become a patreon because i am redesigning our escape room. I´ve got the setup ready (without logic level converters) but instead of a maglock i'm using a linear actuator when (I changed the code lockpin=low is actually high and v.v.)

CJM Peters

Now i would like to add some code. If one tag is removed the linear actuator is going back to its original state (closed). How would the code look like? (its my first arduino project so lots to learn ;)

CJM Peters

Hi Alastair, the linear actuator is positioned in the middle of a table (in the centre of the rfid game) when the puzzle is solved the linear actuator rises up to give a clue. because the game operator cant acces the arduino or reset button easily, i was thinking of some coding that after the puzzle is solved and the players retreived their hint, the arduino acts on the removal of an rfid-item and gives a message to the 5v relay (2 channel) that it should close up again. I hope you can help me. btw i'm using a 5v relay (2channel). thnx in advance

Eun Jung

Hello Alastair, I am currently working on this project right now :) and I just want to ask if you could provide us a diagram of the wiring you did with the grey ethernet cables and the RJ45 8p8c connectors because It is kind of confusing just looking at the video! thankyou so much!

Adam Ellis

Hey Alastair I'm looking to get the arduino to give a visual output when a RFID is in the correct place, but I'm having trouble finding something unique to each reader to use, I'm thinking the ssPin but I don't know how to call upon a specific Pin since they seem to all be named the same.

Eun Jung

Hi Alastair, I have trouble getting the maglock to work, I've got it set up with the relay, but the maglock does not seem to work. The relay also does not light up which means its not on power. I wonder id I wired the relay with the maglock incorrectly? Also, what is the barrel jack connected with?

David Martin

Hi alastair Would you be able to add a led light to the code so it only illuminates when the tag is in the correct place. Also how to wire that into the setup.cheers brah.

Tom Crunk

Hi Alastair, Thank you for all you do! I am attempting to recreate this puzzle but I only want it to work with one RFID sensor. Do I need to adjust the arduino code, and if so how? Thanks!

Tom Crunk

This is the error message that I get when I try to upload and verify the code.

Tom Crunk

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Uno" Multi_RFID.ino:9:21: fatal error: MFRC522.h: No such file or directory compilation terminated. Error compiling.

Tom Crunk

Oops, here is the error message???

Paul Flinders

Hi Alastair - I have the code working - the Serial display is showing all four readers but the relay isn't changing like nothing is coming out of the A0

Paul Flinders

Sorry just to mention the light on the relay comes on when the A0 is plugged in and off when I remove the wire, but nothing happens when all four RFID sensors are in place.

Emily Bosschaart

hey Alistair! I'm attempting to recreate this puzzle, and I continue to get an error code.....Serial communication started Reader #0 initialised on pin 2. Antenna strength: 0. Version : Firmware Version: 0x0 = (unknown) WARNING: Communication failure, is the MFRC522 properly connected? I've been trying to figure out a solution to this....ive soldered all my pins, re checked my wiring, added a delay in PCD-INT. I thought it was a power problem with 4 readers....so I've powered all my readers separately from the arduino....The weird thing is i can get it to work with on single reader and tag...any ideas?

Kevin West

Hi Alistair. I would like to make a puzzle with 6-10 objects. I know you stated max was 4 or 5 so I was thinking I would run 2 arduinos each doing 3-5 objects and controlling separate relays. How would I change the code so the puzzle is solved when the RFID tags are on the sensors, but still becomes unsolved if they are moved away? So I could run 2 arduinos and both puzzles would need to be solved and stay solved together?

Kiel Lamar

Hi Alistair, I have the same problem some above have noted. My puzzle works fine with one reader attached, but once I attach a second I get no readings at all (even the first reader stops working). It seems to happen when I connect the second CLK pin (if I connect all other pins execpt CLK, the first reader still detects). Any suggestions?

Emily Clay

Hi Alastair, thank you for this, it has been really helpful! I am having what seems to be quite a common problem: Reader #0 initialised on pin 53. Antenna strength: 112. Version : Firmware Version: 0xFF = (unknown). WARNING: Communication failure, is the MFRC522 properly connected? I am only using one sensor at the moment and have soldered the connections at the sensor so I am quite sure the problem isn't there. I have just realised that I am using a Mega 2560 not an Uno, could this be the problem? I have just seen that the standard pins for connecting an RFID to a Mega 2650 are different. I would be really grateful for any ideas you might have for where I might be going wrong!

tim hart

Hi Alistair, I'm quite new to Arduino coding but I Have used this code and the tags are being read correctly in the right order but the puzzle doesn't solve, the only things I have changed about the code are its only for 3 tags so obviously I have changed the it to match (see below the changed part of the code, can you think of any reason why it wouldn't solve? const byte numReaders = 3; // Each reader has a unique Slave Select pin const byte ssPins[] = {3, 4, 5}; // They'll share the same reset pin const byte resetPin = 8; // This pin will be driven LOW to release a lock when puzzle is solved const byte lockPin = A0; // The sequence of NFC tag IDs required to solve the puzzle const String correctIDs[] = {"c7f56d4b", "8a4a7515", "4ac49d153"};

Yamil

Hi Alistair, I made the project months ago without a problem, today wanting to replicate it by connecting a second reader stops recognizing everyone. perform some tests, use a logic converter, and independent 3.3vcc source, but whenever I connect another MISO pin it does not recognize the readers. any ideas? May be the Firmware Version: 0x12 = counterfeit chip? I made the project months ago without a problem, today wanting to replicate it by connecting a second reader stops recognizing everyone. perform some tests, use a logic converter, and independent 3.3vcc source, but whenever I connect another MISO pin it does not recognize the readers. any ideas? Thank you

babuTEMP

Dear patrick We had follow your complete instructions about the MFRC522 experiment with four circuits at the same time but we can`t receive any serial data from these. We review the circuit two times looking for wrong connections but it seems to be ok. SDA Pins are connected to analogic pins at arduino numbered 2,3 and 4 and the others connections are shared between MFC5322 cards. All we get from serial monitor es that our cards are bad connected. MFC5322 cards not have an external power supply, but in your circuits it doen`t implemented and it works!!. Please tell us what could be wrong. Thanks for your patience.

Michael H. Sparks

Hello Alistair, I really need you help. I have used your RFID placement script successfully in the past few years and am trying to use the same script now with the exact same wiring (on an UNO) but I am having no success. I get the "WARNING: Communication failure, is the MFRC522 properly connected?" line as others have noted and am getting a swing in antenna strength from 0 to 64; and getting various Firmware Versions (0xEE=unknown; 0x92=C2.0; and 0x0=unknown). I have done a lot of trial and error on the wiring/reader combos and am certain that the wiring is correct. These are no long runs of wire. Can you provide any advice? I have been struggling with this for 2 weeks trying different RFID readers, rewiring, etc. Thanks, Mike

Michael H. Sparks

Hello Alistair, I have been a long time subscriber for a couple of years and could really use your help with this puzzle. I have used it twice prior and those puzzles are still working. I am currently trying to replicate it again, exactly as before (4 RFID's, Arduino Uno, relay, your script, etc.), but I am getting this error message "WARNING: Communication failure, is the MFRC522 properly connected?" The reader with firmware version 0x92=V2.0 works but the other readers show a firmware version 0xEE=unknown. Not sure if that is the problem or not. the wiring is correct and the wiring runs are short. Please help. Thanks as always, Mike

Michael H. Sparks

Alastair, I've ordered a 3.3V power supply and convertors, I'll follow up once they get in and I have a chance to test the new configuration, hopefully my RFID readers are not fried after being connected to 5V. Thank you once again for the outstanding support! Mike

Michael H. Sparks

Alistair, just to be clear, the wiring diagram you sent shows that the power cord to the Arduino is not used, just a 5V DC input directly into the Arduino 5V pin. Is this an oversight or will the Auduino run off of the 5V input through the pin connection?

Cedric Galland

Bonsoir, cela fonctionne très bien il me manquait les dernières lignes du code.

John Irvine

Hi Allistair, I am having the same issue as a few people above. With one reader it works correctly but as soon as I connect another one both readers become inoperable. When loading the program to the Arduino, there are numerous errors from the RFID library about depricated commands. Im guessing this is the problem. I am completely new to Arduino, so I am hoping you could take a look.

John Irvine

In file included from /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522Extended.cpp:8:0: /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522Extended.h: In constructor 'MFRC522Extended::MFRC522Extended(uint8_t)': /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522Extended.h:81:44: warning: 'MFRC522::MFRC522(byte)' is deprecated: use MFRC522(byte chipSelectPin, byte resetPowerDownPin) [-Wdeprecated-declarations] MFRC522Extended(uint8_t rst) : MFRC522(rst) {}; ^ In file included from /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522Extended.h:10:0, from /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522Extended.cpp:8: /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.h:339:2: note: declared here MFRC522(byte resetPowerDownPin); ^~~~~~~ /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_SetUid(byte*, byte, bool)': /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp:1853:39: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations] if (!MIFARE_OpenUidBackdoor(logErrors)) { ^ /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp:1709:6: note: declared here bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) { ^~~~~~~ /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_UnbrickUidSector(bool)': /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp:1882:34: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated: will move to extra class in next version [-Wdeprecated-declarations] MIFARE_OpenUidBackdoor(logErrors); ^ /Users/johnirvine/Documents/Arduino/libraries/rfid-master/src/MFRC522.cpp:1709:6: note: declared here bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {

John Irvine

Hello. We have tried the second diagram with the 3.3v to 5v converters. Once we connected the second RFID, the system stopped reading, same issue as before. It looks like the same issue is occurring. Any thoughts? Have you tried the system with these convertors?

John Irvine

We double checked the 5v and 3.3 v side of the converter. Also still getting the counterfeit RFID. How should I send you the photo? Its now a fairly complicated wiring setup but I can send it. Thx John

Hannah Betts

We're having exactly the same problem as you, John. Works fine using a level converter until we add a 2nd reader and then it literally stops. Neither reader will read. Unplug them and only plug one back in and it works again. Was a solution found? Help please!

A. Buendía

Hello Alastair Aitchison, First of all thank you for your work. Everything that can be done with Arduino is really fantastic. Thank you very much. I wanted to ask you for a little help. I have modified the code so that when connecting the RFID NeoPixel is activated giving a final illumination with a green light to the game. But I would like to be able to light up those NeoPixels every time the receiver is properly connected with its ID tag, one by one. And finally, when they are all correctly, a message appears on an LCD1602 screen. My email is abuendiaserrano@gmail.com if you want I can send you the modified code and on which you modify the options that I ask you. Thanks in advance for your time. I am waiting.

Pogo Dunedin

I see you're using RJ45 plug ends in your video, where can I get these from?

Jake Johnson

Having an issue, where one reader works fine, however when I add more than one it comes up with issue of RC522, however they all work fine on their own?

Tehral

same issue having more than 1 reader

Antonio Padilla

Thank you very much!!!!. I have a question. Any adhesive label works for the MFRC522 reader? I have a puzzle development project for an Escape Room and it would be better to use adhesive labels than cards (because the size is smaller)

Niels Pronk

HI Alastair, I hope you can help me, I use this code for a while now. Great! But I want to link this to my BLYNK Code, for this I need something like Serial.println(UID on Reader1) Serial.println(UID on Reader2) Serial.println(UID on Reader3) Serial.println(UID on Reader4) And maybe one step further is it possible to print something else instead of the UID So if UID abc println "object1" Explanaition Why: I have a puzzle with 7 wooden block with names on it. After solving a puzzle the players will find out the correct sequence from top to bottom. The RFID will check the right sequence, (thanks to your code) What I want to create is that I can read on my app, what sequence is present. So Object 1 object 2 object 3 etc OR Object 7, Object 4, Object 3 etc etc. I use the app BLYNK, if I can make it like a serial.print I can transform it to the APP Blynk I hope you can help me (and understand my question :P )

Radovan Biro

Hi Alastair, I have a problem. If I connect two and more the NFC boards (MFRC522) to the Arduino UNO, than is not works. If I connect only one the NFC board (MFRC522), than is all right. All pins is connect right and all NFC boards is not bad. I see this error ....Reader #0 initialised on pin 2. Antenna strength: 0. Version: 0x0 (unknown) WARNING: Communication failure, is the MFRC522 properly connected?)....probably, the error is with PIN 12 (MISO) because If I disconnect all pin MISO from MFRC522 except one board, than one MFRC522 is working right. I am desperate. Can you help me? Thank you so much.

David Bodsworth

Hi Alastair, I've got the basic code for this working just fine, but I'd like to add an LED for each RFID as a visual indication for when each item is in place. Is there a simple bit of code I could add to this to light 3 corresponding LEDs, or would it have to all be coded differently using something like switch states? If it makes any difference, then next step will also be adding in MQTT code to be able to tie it into my node red dashboard which would also hopefully display each RFID state as well as having reset and override solve buttons.

Elena

Hi Alastair, First of all thank you very much; it was clear even for a complete beginner like me ! It works well when I use the credit-card style card provided with the sensors but I would have loved to use it with NFC stickers (like those for exemple https://fr.aliexpress.com/item/4000591658712.html?spm=a2g0s.9042311.0.0.2e586c371owsDp) but they are not recognized at all with this code. Would you know what I could change to make it work ? Thank you so much for your help so far, really enjoy you channel !

Kaleb

Hey Alastair, I'm having an issue with this puzzle that I am not sure how to solve. I'm powering the whole system using a 12V power supply. I have stepped down the voltage using a buck converter to roughly 8V so that I can power the arduino through the Vin and ground pins. All of the other wiring is the same except that I am powering the system through those 2 pins. If I plug the Arduino into my computer, it works beautifully. If I power it using the power supply, it doesn't work. If I power it with the supply and monitor the output, I see that the Arduino recognizes that there is a reader, but it doesn't read anything when a chip comes near it. If I unplug the power supply while leaving the computer cord in, it then works perfectly. Any idea as to what I am doing wrong here?

Remco Dresen

Hi Alistair, ive got a problem. When connecting the RFID it seems that it doesnt work. After trying ive tried to just connect 1 RFID reader ( also changed the numReaders to 1, and also corect ID's ive just put something in ) but when just 1 readers seems to be connected, no data appears when i put an chip to the rfid reader. any idea what is wrong? See image https://ibb.co/smqTKh0

Buddy DeOrnellas

Hi Alastair, Your wiring diagrams and instructions on getting the arduino libraries loaded were so helpful. I am very new to arduino, so please forgive my lack of understanding, but I have loaded you code and made sure the correct libraries are added, but what I cannot seem to decipher is how to define which RFID tags go to which sensors. Any insight or help would be very helpful.

Paul Flinders

Sorry - got the project made - all working with RFID tags like video and the Cards but I've brought the Stickers and they don't read is this a different library I need.

alberto rubio

Hi Alastair, That's a really nice project thank you so much for this handy information. I'm trying to edit the code to regardless of the order of the objects work the same way, so it doesn't matter where you put the object but you have to put the correct ones, but I can't see / find the modification that needs to be done to the code. Can you give me a hand or point in the right direction? Thanks in advance! Regards,

Kris Zylich

Hi Alastair, New patron here. I am an escape room owner teaching myself Arduino. The wiring diagram was pretty straightforward here and I got the code uploaded but the puzzle is not working. The error message I am getting is Reader #0 initialised on pin 2. Antenna strength: 0. Version : Firmware version: 0x0 = (unkownn) Warning communication failure, is the MFRC522 properly connected. Says the same thing for reader 1,2 and 3. Would love to send a picture of the breadboard with wiring to see if you see something easily.

Jason Perkins

Hello Alastair, your code on this is much more efficient than mine and is helping greatly. Before I go digging to solve something strange, I wonder if your or someone has seen the following behavior before. I have 3 MFRC522 connected and it scans a tag then seems to immediately scan again and not detect anything immediately after. like this image: https://www.dropbox.com/s/fl1sy9de437vwl8/detect%20tag.PNG?dl=0 I was really hoping to take advantage of the part of the code that detects when items are removed too.

gorilla

hi alastair Thanks to the good videos, I'm making the device well. I have one question. When I put 4 cards on 4 rfid sensors to fit, the relay works. What should I do if I remove all the cards after solving the problem and reset them automatically? Now, it cannot be reset unless the Arduino is turned off and on or the reset button is pressed directly. I want to know which code to put in where.

Justin Green

Hello Alastair I want to start by saying thank you for the great demonstration. You explain everything well, even for people who are new to arduino like myself. A question I have is it possible to use one rfid reader and several cards on one input to control 6 outputs for magnetic locks

Erin O'Neall

Hi Alistair, I just started working on this for a project for my job but I’m encountering a wiring issue. I bought the 12v power supply and connected it to the mag lock but could only get the lock to engage if I wired the red wire from the mag to the NC terminal, not the NO like in your diagram. But the power doesn’t seem to be heading to the arduino as nothing is lighting up. If I try and plug power into the port on the arduino I do get power. I’m guessing I’m having trouble with connections from the single relay to the arduino. Currently I have the DC+ line connected to the 5v, the DC- line connected to the GND, and the IN line connected to the A0. Please let me know if you can see where I’m going wrong? I’m still very new to this sort of wiring and electrical work.

adam mager

Hello Alastair... Love this tutorial, awesome as always! I'm also getting the odd issue with unknown firmware version. If I remove that reader from the code, I get spurious reads from the other readers. Only 1 reader reads consistently and reliably. I'm going to rewire the whole shebang. I'm also going to swap the suspect reader for another, just to see if it is a dodgy reader. All the wires show good continuity from the arduino to the reader, but there might be a short somewhere, so that will be fun… I'm using 3.3v to power the readers, and they are fairly good readers, I've used the company for other items that have all worked well, so I don't think it's not a counterfeit issue. I’ll let you know what I find…

adam mager

so... solved the unknown firmware issue... replaced the rfid reader and the issue went away... but im only getting reads on 2 units out of 4. so... back to the wirig to check for any shorts... annoying as i did a really tidy job and it took hours... oh well...

adam mager

scrap that... now getting odd errors on firmware across all of them... i feel it's the wiring but I have checked and couble checked it... all correct... it's very odd...

adam mager

so... might have an issue getting hold of PN5180's at a resonable price and time scale. Seem s they are in a bit of contraint... If I go down the route of the D1 mini, I assume that I will still use the MFRC522 readers, just each one wired discreetly to a single D1 mini. If you can help with the code, I'm open to building it up and seeing if it works. I've got some ESP32 modules arriving today/tomorrow, but the PN5180 is proving hard to tie down.

adam mager

righty oh then... a building I will go!! https://www.amazon.co.uk/AZDelivery-D1-Mini-Development-Compatible/dp/B0754W6Z2F/ref=cm_cr_arp_d_bdcrb_top?ie=UTF8 I'm going to try these. I'll basically cut down the code from the object placement script for a simple success pin HIGH output. I'll link these back to a main Arduino that controls the cabinet lock. If I wanted to make them communicate over wlan to a central D1 mini, would you be able to assist with the code? I suspect it will be a cool little project!

Manuel Garcia

hi Alastair one question in the video, the gray cable that joins RFID module with Arduino. what is?

Liz Gallegos

Hi, I was hoping you could help me determine if I have clone chips on my MFRC522s. I saw the picture you posted, are those both clones or is one of them the original chip? I have a couple MFRC522s that look like the one on the right and then I have a couple of others that look like the one on the left except there's writing on the chip. Any help would be appreciated, thank you!

Liz Gallegos

If there's no easy way to determine if I have clone chips my second question would be, do all 4 shared SPI lines need the multiplexers or just the MISO line since it's the problem child? Or at the very least can a multiplexer be left off the shared reset line?

Mr Crinkles

when I reset the Arduino the relay doesn't re-engage the lock unless i have the puzzle solved. I can't figure out how to get the lock to reset automatically with the Arduino im using digitalWrite(lockPin, HIGH); I feel like that should work

Doug

Hey! Thanks to your tutorial I actually have everyting running! Just one request, is there a way to add multiple tags to work on the same reader? I'd like to be able to have backups ready to go that can immediately take the place of the origional tag. Thanks!

Michael

hi Alastair, happy new year,

Michael

why can i not read the nfc stickers? i only can read cards and tags

Michael

the script do NOT recognize Stickers

Michael

I have a script which reads these stickers can I share and you will look for the difference?