Arduino RFID | How to Use RFID RC522 with Arduino
HTML-код
- Опубликовано: 10 сен 2024
- Today, we will learn how to use RFID RC522 with Arduino. I will show you how to read RFID tags using RC522 reader module and get unique ID (UID). The unique ID is used to identify each tag uniquly. And we will use UID in the code, to demonstrate how to create a door lock system using Arduino UNO.
RFID RC522 reader module is a two-way radio transmitter-receiver module. it sends a signal to the tag, and reads the information stored on RFID tag. RFID RC522 works on 3.3v. You must connect it to 3.3 volts pin of Arduino. Remember, connecting RFID RC522 reader module to Arduino 5v pin will likely destroy your module.
RFID means radio-frequency identification. it uses electromagnetic fields to transfer data over short distances. it is useful, to identify people, to make transactions. or You can use an RFID system, to open a door lock, switch ON a relay, light up an LED. or anything else you can think of.
Buy Parts:
1 - Arduino UNO - amzn.to/3ZWKAz2
2 - RFID Kit MFRC522 - amzn.to/3mNOtYy
3 - Breadboard - amzn.to/3ysOvHX
4 - Jumper Wires - amzn.to/3YRafs5
Warning: Never connect RFID RC522 reader module to Arduino 5v pin, otherwise you module will destroyed.
Warning: The RFID module might not work, if you connect it on the breadboard. I have tested it many times and always get the following error. "Communication failure, is the MFRC522 properly connected?". So, make sure connect the RFID RC522 module directly to Arduino without using breadboard.
--------------------------------------------------------------------------------------------------------------------
Useful Video Links
--------------------------------------------------------------------------------------------------------------------
Blynk 2.0, Arduino, DHT11 and SIM800L
• Blynk 2.0, Arduino, DH...
--------------------------------------------------------------------------------------------------------------------
Social Media Links
--------------------------------------------------------------------------------------------------------------------
GitHub:
github.com/ahm...
RUclips:
www.youtube.co...
--------------------------------------------------------------------------------------------------------------------
Download Code
--------------------------------------------------------------------------------------------------------------------
github.com/ahm...
--------------------------------------------------------------------------------------------------------------------
Disclaimer
--------------------------------------------------------------------------------------------------------------------
Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
#RFID #RC522 #Arduino
Thank you ! I've been trying to make the rfid work but it wouldn't work. But your code worked Thanks a lot!
In the cerial monitor it says that the firmware version is 0x18 = (unknown) and nothing is showing up when i tap the card
I don't know about your case, but I connected the VCC of the RFID reader to the Vin pin instead of the 3.3V pin. It works, and I have made a video about it that may help.
@@HandyMakerDIY I will try that, thank you
@@HandyMakerDIY I tried it, and it still says 0x18 is unknown or defect. It may be something with the module
@@heavybladevideo That could be the problem. Sorry for that bro.
Thank you very much for showing this project in such a simple way, I wanted to experiment with RFID cards to add an ignition lock to my motorcycle.
Glad it helped
Am doing rfid rc522 attendence system using arduino with data logger ....in this am getting the SD card initialization failure ....what was the problem in this ..could you please reply me ..whats the problem...am not getting the output
Thank You!! Really useful. I'm just testing my RFID-RC522 cause I just soldiered the connections and didnt know if it was going to work!
it seems that the way i put the hex code in was wrong because it keeps saying access denied
Hello, i typed my mastertag in but its still saying denied
Hello, i typed my mastertag in but its still saying denied. Any suggestions?
Hey Ahmad. I was wondering can we connect multiple RFID sensors to Arduino ?
So I tried the code and the code works Ther is only one problem. I checked all the wiring and when I put it on, it did it for 5 seconds. Then it started to smoke and the LED became increasingly dimmer. When I pulled the plug, all the pins were warm. Not very hot but warm enough to smoke.
you gave it 5v accidentally and fried it, the usual model only supports 3.3V in reality
I already follow this step, but on serial monitor stated that there was a communication failure. How do I solve this?
from my experience this is due to unstable connection between the rfid module and the whiteboard if you are using one. i suggest tightening the contacts with a rubber band, hand or tape. it may not be obvious, took me whole hour to find out the perfect position. good luck, hope the response is still useful)
I would like to do it but for 4 reader any video suggestions please
Thank You, worked like a charm.
How can i get rfid-arduino code ?
très intéressant, merci beaucoup pour ces explications....
Where did you declare "getID"?
Huaa thank you more brother.
Many thanks for the Arduino projects. I learn by trying. Congratulations on your improvement.
Ümit SAMAN
thanks
Hello, I did exactly as the instructions but the serial monitor returns denied despite the correct rfid as the mastercard. What do you think could be the problem?
same here
thanks a million you helped me a lot
Hi I have one code but I can't upload multiple card please solve me
At 1:39, the RFID's RST pin and RST pin are wrong. The ground should be connected to ground, In your vid, the rst pin is connected to ground and ground is connected to rst.
Thank you Bro.
Hi sir I have one code but I can't upload multiple card's please solve the issue
you need to add your cards in the code
Please Sir is this technology related to the prepaid card used for buying electricity?
Is it possible to scan the prepaid card using this method?
I have read on the card that we should keep it away from magnetic material?
Is there a secret out there related with this method used in this video?
yes you can scan. but some card are locked and you cannot access the card
very nice bro,i really like your video
Thank you so much 😀
thanks a lot . have a nice life.
thanks
Great video
Thank you
♥
Thank you too!
Thank you
Great Vid. I learned a lot. Have you tried putting multiple tag readers together using different antenna?
That's a good idea! but I never tried it
This sensor compatible with uart peripheral ,Can be use only uart protocols for it?
it is not compatible with the uart. it is i2c
@@AhmadLogshere u are using spi protocol because this sensor is compatible with spi
@@MohdRizwanEC sorry for misunderstanding. You are right I am using spi
Does arduino have a package for reader RFID stickers from a distance for 5-10 meters?
no, its almost unreal, but you can try do it self.
Typically, the RFID readers available for Arduino have a range of only a few centimeters to a few meters. However, there are specialized long-range RFID readers that can read tags from a distance of up to 10 meters or more. These readers usually operate at higher frequencies and require more power than standard Arduino boards can provide. In order to use a long-range RFID reader with Arduino, you would need to use an external power supply and possibly an interface module to connect the reader to the Arduino board.
How to delete message of gsm 800l
use the following command
AT+CMGD=1,4
@@AhmadLogs make a saferate video this Topic How To Delete message Gsm 800l
@@BarkaMusicRajapakar OK
@@AhmadLogs Thanks sir
Brother you should open your own university, Respect!
Thank you so much for your kind words!
Thank you very much, Ahmed. You are really a RUclips legend. In this work, I have a request. I hope that you will do the project to control 3 or 4 Relay with registered numbers, but using misd call and sms and buch button. Thank you very much and to your parents🙏🙏❤️
I will try my best
sir it will supports NFC
unfortunately not
Blynk+esp role + NFC
can you please explain a bit more