Это видео недоступно.
Сожалеем об этом.
Smart Lock for an Escape Room: Multi RFID Readers System
HTML-код
- Опубликовано: 16 авг 2024
- Hello,
WELCOME TO MY CHANNEL.
This video shows the making of a smart lock/puzzle game as a Multi RFID Readers system that I designed for an escape room. The idea is opening the door after 4 specific cards are recognized by the Rfid system. The cards are gonna be glued to some objects that are going to be later maintained on the readers to solve the puzzle. A push button is added for manual opening of the door and Leds for signaling.
I hope you like it.
Please find the code and the wiring diagram here : github.com/Ann...
You can reach me here :
● FACEBOOK: / enormus.1
● INSTAGRAM: / annaaanee
● TWITTER: / hananeaf1
The music is made by the amazing Amine Benabdelmoumen: / bordermine
For those struggling with having several readers. I had the same issue and had to check 2 things:
1 - that the reset should go to the right pin, 2 - that I had good connection on all pins. If you have some resistance, it means the connection is not great and it will probably not work. I had to dish the jumper wires I had and get some good connectors. In doubt, test the resistance to see how good you connection is.
Some people all over the internet face issues when connecting multiple RFID boards in parallel to Arduino board. When 2+ readers connected it stop working. One reader works perfectly but 2+ pcs. not. The problem is weak MISO output of some reader board. Checked some Russian electronics forums and found answer how to make multiple readers work. You need to connect MISO outputs through the OR logic gate to Arduino. It is possible to use logic OR IC chip or just simple diodes+resistor OR element. Connect anodes of diodes to MISO reader outputs. Then tie all cathodes together, put 4k7 resistor to the ground (yeah we just built OR logic gate) and then connect to the MISO pin 12 (on Arduono Uno). That's it! Tested with 3 readers. Work like ice ;)
Another issue with multiple boards on one Arduino is that with some of these RFID boards the MISO line does not go high impedance when not addressed. It remains high and prevents other boards from communicating. I found this problem with low cost boards I bought on Amazon.
A simple fix is to use a Tri_sate buffer (74AHC125) and connect each of the inputs to the MISO line from the RFID boards. Connect the outputs together and then to the MISO pin on the Arduino. Finally connect the chip select line for each of the RFID lines to corresponding Output enable pin on the buffer.
This worked well for me.
@@bobmansfield6859 I myself have been trying to solve this problem and your solution sounds great! I have a few projects requiring 5+ readers. I'm a bit of a noob when it comes to Arduinos and though I tried my best to follow your description, I'm a bit fuzzy on some of it. Any chance you could share a pic or diagram of the Tri-state buffer wiring you recommend?
@@bobmansfield6859 can you please share a diagram or pic , it will help Thank you so much 🥰
sr for asking this after 4 years but can you show me the layout or diagram when using or gate with more than 2 rfid readers please?
@@bobmansfield6859Hi IS there chance to get a tutorial, thank you
Finally i found What I've been looking for :D Congrats for the Channel Opening
Thaanks Saad, it's your turn now !
Thanks for uploading this. Small issue though, it is possible that the same RFID card can be used multiple times on the same RFID reader to get the door to open. The code does not check if a card has been used before, or if the card is used on a specific reader.
Hello agghanim, thanks for your comment. In fact, yes, you are right. I'm aware of the issue but as I said before, in the real life usage, the rfid card is held on a certain object that has a certain form due to which it can be put on only one the reader, that's why I didn't really bother going further in the programming. But thanks again for your comment, I'll find some time to fix the issue. Cheers!
So proud of you yalah kayna nti o wa7ed li chare7 4 readers please kifach nkhdem blcode li github
Cool. I needed something like this. Thanks.
Go go hanane 💪💪💪 proud of you
Jamila, Merci beaucoup!
Hay Hay jamila everywhere XD
really nice project!!
This is very interesting. Thanks
I'm glad you like it !
TbarkeLAH 3lik hanane, hadchi zwine KEEP GOING !!
Merci beaucoup AbdEssamad !
Hey! this is a wicked video TYSM so it looks like each RFID reader use the same digital pins in the Arduino, can you add say up to ten RFID readers to this configuration?
This is stunning ! Love it
Thank you babe
Oh my god, I was looking for this video my whole life! :( I was desesperate to find a correct wiring diagram and explanation, thank you so much! I have a plan to make a plan where the players should move the job. It is the successive activation of the readers in a certain order that allows the opening of an electromagnet. I am still very far from having succeeded..! One question, are you French? :) J'ai vu que le livre était en français :3
Awesome video!
Thank you !
Nice and clean work (y)(y)(y)
Merci beaucoup Hamza !
sweet, I was looking for an example with multiple RC522 readers. Exactly what I needed.
PS: haven't tried your setup, but from reading the code it looks like one can easily cheat the system by simply tapping/removing the same card 4 times as it only counts the number of valid recognised tags
Hello, I'm glad you found what you needed. You're right, but for my case i had readers attached to objects that would only fit for a specific reader so i just didn't fix this issue when making this video. If you want, you can pull a request on github to fix this.
Thank you!
Was waiting for chi "thanks for watching, ... and don't forget to subscribe" :D Hope you can make it to the top of the Tondouuz hhh !! Good luck
lawaaah, pas à ce point :D Thanks sweety
hi, does the cards should be in an exact order or it doesn't matter?
thanks and great video
hey this's Hamza , ex-classmate in fes, remember?? , good work , keep up, I guess we share the same passion hh !
Hey Hamza! Yes, I do remember you! Thanks a lot, I hope you're doing well :)
Молодец! Cool!!!
Excellent project. I am looking to develop a project with two MFRC522 readers in which i need to display the uid of the card and which reader is reading the card (Either card 1 or 2). Is my usecase possible with 2 rfid reader and esp32?
How do I attach multiple RFID like that?
You can find the wiring diagram on my github. Link in the description
Hi does anyone have the program on arduino for this type of rfdi puzzle?
This is exactly what I'm looking for! Can I get the wiring? I can't see anywhere... Thank you!! :)
It's on github, link in video description :)
I just found your videos and was wonder would it be possible to use more scanners than 4 and if so how many do you think you could run on a single board
I found it just now. ehehe Great work Miss! Just a question: can a single Arduino manage different readers with different codes? Ex: Tag A valid only when on reader 1, tag B only on reader 2...and so on...
Génial 💡=D>
Merciiiiiiiii
baravo 👍👍💯🤗👏👏
It is so good....thank you but if you want can you show me the wiring diagram ??? :)
It's on github, link in video description :)
do the tags have to be in a specific order or just be the correct ones?
with this code not only does the order not matter, but you can swipe the same valid card 4 times in any sensor and the gate would open, so keep that in mind while watching this
can u tell me the circuit diagram?
It's on github, link in video description :)
Finally a woman doing electronics!. Most channels are men
ola boa tarde,como faco para cadastrar as tags
Bon 😋 courage
Merciiiii !!
hi thanks for the video and it is really awesome. i would like to ask if it is possible to reset the buffer size? is it possible to have no limit in tapping the rfid cards to the rfid reader?
Hello, "Reset the buffer size" ?! What do you mean ? And yes, it is possible to have no limit in tapping the rfid card to the rfid reader; once the card is on the reader, its uid takes place in the buffer.
What if you want each reader to open a different door? Like in an office situation
If you want each reader to open a different door, you just need to add as much relays as the doors you have and then make a test loop on the Card ID so it opens that specific door and not another one.
i made this too . but not stable . some time cannot access one of the reader. Do u know why. I need a pull up resistor in sda?
Hello, Thanks for your comment.
I didn't use any resistor and it's working like charme. I don't think you need one, maybe just check your wiring and soldering. Good luck!
Do you happen to have a wiring diagram with the bread board included? Thank you!!
Hello.. with the bread board ? I'm sorry, I don't. Fact is, I only used the bread board on the video to make it easier for me to show you guys how I connected things.
Dear Anaane, awesome job. I have tried your code, an it works. but it doesn't matter where i place the tags (the order is not impartant), i can also use the same tag 4 ties and the door wil always open. Is that how you intended it? Thanks for your time :)
Hello, thanks a lot! Yes, you're right, I have already mentioned in another comment that the cards were attached to objects that only fit for the specific rfid reader so I just didn't bother to fix it for the this video. For any code modification, please pull a request on github. Thanks!
Nice video! But dont you have problems with the rfid readers interfering with eachother, if yes how did you solve that?
I am also curious about this, I have always heard that readers interfere with each other when wired together.
I'm really glad you liked my video! I guess the readers interfere with each other when you set the antenna's gain to the maximum in the code, in my case I didn't encounter this situation as you can see, also in the escape room, the readers were placed one or two meters away from each other, so it basically solves the interfering problem if there's any.
please give me the full wiring diagram with 4 rfid and the code..in github there is only wirining diagram with arduino and rfid, but manual switch and output control isn't availavle
I don't much understand your request. On Github there's the wiring diagram and the code.
Il semble que le fonctionnement dépende des lecteurs. Alors que tous semblent identiques, avec certains ton montage ne marche pas du tout car il y a confusion sur les MISO. En fait, quand tu branches 2 modules SPI ensemble, tu as MISO, MOSI et CLK qui sont communs (comme sur ton schéma). Or avec certains modules RFID, le MISO commun fait qu'un seul module fonctionne. La solution semble être d'avoir des MISO séparés. A priori cela peut marcher avec la librairie Sunfounder.
you are from Switzerland arent you? saw the power jack
No, I'm from Morocco
Thanx for your work! But if I'm not mistaken there is a little mistake in the code. Or are you aware that you also could but four times the same card on one reader to open the lock? Or is it what you mean with: Warning: This may not work! Multiple devices at one SPI are difficult and cause many trouble!! Engineering skill and knowledge are required!
The warning belongs to the owner of the rfid library. For this case the tag is held on the rfid reader and can't be put on another reader (saving time and energy hehe). Other than this you can share your code with us by pulling a request on github. Cheers!
♥♥♥
Nice project.
I'm facing some issue with my RFIDs. When I connect 1 (one) RFID, then it works fine. But when I connect more than one (2 or 3), The controller (Arduino) doesn't find any readers. Get these lines on the serial monitor.
Reader 0: Firmware Version: 0x0 = (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Reader 1: Firmware Version: 0x0 = (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Reader 2: Firmware Version: 0x0 = (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Reader 3: Firmware Version: 0x0 = (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Can you please help with this? Or anyone here can help me?
Thanks.
Hello ElectroLab, Thanks for your comment. I had this issue too many times and all I did was to check my rfid modules' soldering. I'll share the circuit diagram so that you can compare it with yours.
Also what I suggest is that you connect one by one : You connect the first, and check if it's working, then the second one and check again, and so on until you get all your rfid modules recognized by the arduino.
@@annaane8817 Thanks for your reply. I'll try and let you know soon. :)
Hi @@annaane8817 I've tried as per your instruction. But the results are the same! :(
Whenever I connect the 2nd one, it can't detect any RFID readers!
@@ElectroLab0 Please check my repo on github to compare my wiring diagram to yours
I have the same problem... 😟
Magnifique! C'est possible de te suivre ailleurs..Twitter peut-etre? :)
Avec grand plaisir ! Le lien vers mon compte Twitter est sur la description de la vidéo
👍🇲🇦
T francaise?