Arduino RFID | How to Use RFID RC522 with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 เม.ย. 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/ahmadlogs/
    TH-cam:
    th-cam.com/users/ahmadlogs?sub...
    --------------------------------------------------------------------------------------------------------------------
    Download Code
    --------------------------------------------------------------------------------------------------------------------
    github.com/ahmadlogs/arduino-...
    --------------------------------------------------------------------------------------------------------------------
    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

ความคิดเห็น • 58

  • @pccxp
    @pccxp 2 หลายเดือนก่อน

    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!

  • @davydbar
    @davydbar 2 ปีที่แล้ว

    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.

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      Glad it helped

  • @samirzafar
    @samirzafar 5 หลายเดือนก่อน +2

    Hey Ahmad. I was wondering can we connect multiple RFID sensors to Arduino ?

  • @attariazeddine6603
    @attariazeddine6603 ปีที่แล้ว

    très intéressant, merci beaucoup pour ces explications....

  • @raziehsoleimani
    @raziehsoleimani 3 หลายเดือนก่อน

    thanks a million you helped me a lot

  • @shakerileiwat4341
    @shakerileiwat4341 2 ปีที่แล้ว

    Great video
    Thank you

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      Thank you too!

  • @umitsaman
    @umitsaman 2 ปีที่แล้ว

    Many thanks for the Arduino projects. I learn by trying. Congratulations on your improvement.
    Ümit SAMAN

  • @burhaankatimba3579
    @burhaankatimba3579 4 หลายเดือนก่อน +1

    hello akhy
    i tried connecting directly to the arduino but still i get the same error you get using bredboard
    what might be another cause of that

  • @user-fr1zb8ee2v
    @user-fr1zb8ee2v 20 ชั่วโมงที่ผ่านมา

    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

  • @prakashharash8380
    @prakashharash8380 9 หลายเดือนก่อน

    thanks a lot . have a nice life.

    • @AhmadLogs
      @AhmadLogs  8 หลายเดือนก่อน

      thanks

  • @user-fy2ci2in4g
    @user-fy2ci2in4g 3 หลายเดือนก่อน

    Thank you

  • @tanveerahmedshaikh7332
    @tanveerahmedshaikh7332 ปีที่แล้ว

    very nice bro,i really like your video

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      Thank you so much 😀

  • @aziz2398
    @aziz2398 2 ปีที่แล้ว

    Hi I have one code but I can't upload multiple card please solve me

  • @fcj3
    @fcj3 9 หลายเดือนก่อน

    Great Vid. I learned a lot. Have you tried putting multiple tag readers together using different antenna?

    • @AhmadLogs
      @AhmadLogs  9 หลายเดือนก่อน

      That's a good idea! but I never tried it

  • @MohdRizwanEC
    @MohdRizwanEC 8 หลายเดือนก่อน

    This sensor compatible with uart peripheral ,Can be use only uart protocols for it?

    • @AhmadLogs
      @AhmadLogs  8 หลายเดือนก่อน

      it is not compatible with the uart. it is i2c

    • @MohdRizwanEC
      @MohdRizwanEC 8 หลายเดือนก่อน

      @@AhmadLogshere u are using spi protocol because this sensor is compatible with spi

    • @AhmadLogs
      @AhmadLogs  8 หลายเดือนก่อน

      @@MohdRizwanEC sorry for misunderstanding. You are right I am using spi

  • @aisyahsofeaothman2431
    @aisyahsofeaothman2431 5 หลายเดือนก่อน +3

    I already follow this step, but on serial monitor stated that there was a communication failure. How do I solve this?

    • @skxt-0416
      @skxt-0416 3 หลายเดือนก่อน

      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)

  • @FNTHAMOB
    @FNTHAMOB 2 หลายเดือนก่อน

    Hello, i typed my mastertag in but its still saying denied

  • @Labibatuabubakar4
    @Labibatuabubakar4 2 ปีที่แล้ว

    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?

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      yes you can scan. but some card are locked and you cannot access the card

  • @aleccada4114
    @aleccada4114 6 หลายเดือนก่อน

    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?

    • @lolno6015
      @lolno6015 4 หลายเดือนก่อน

      same here

  • @stevenli3492
    @stevenli3492 หลายเดือนก่อน

    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.

  • @123454628
    @123454628 2 ปีที่แล้ว

    Thank you very much, Ahmed. You are really a TH-cam 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🙏🙏❤️

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว +1

      I will try my best

  • @lawrenceawei8245
    @lawrenceawei8245 ปีที่แล้ว

    Does arduino have a package for reader RFID stickers from a distance for 5-10 meters?

    • @danilsticky
      @danilsticky ปีที่แล้ว

      no, its almost unreal, but you can try do it self.

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      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.

  • @heavybladevideo
    @heavybladevideo 3 หลายเดือนก่อน +1

    In the cerial monitor it says that the firmware version is 0x18 = (unknown) and nothing is showing up when i tap the card

    • @HandyMakerDIY
      @HandyMakerDIY 3 หลายเดือนก่อน +1

      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.

    • @heavybladevideo
      @heavybladevideo 3 หลายเดือนก่อน +1

      @@HandyMakerDIY I will try that, thank you

    • @heavybladevideo
      @heavybladevideo 3 หลายเดือนก่อน +1

      @@HandyMakerDIY I tried it, and it still says 0x18 is unknown or defect. It may be something with the module

    • @HandyMakerDIY
      @HandyMakerDIY 3 หลายเดือนก่อน

      @@heavybladevideo That could be the problem. Sorry for that bro.

  • @aziz2398
    @aziz2398 2 ปีที่แล้ว

    Hi sir I have one code but I can't upload multiple card's please solve the issue

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      you need to add your cards in the code

  • @dilli8940
    @dilli8940 10 หลายเดือนก่อน

    sir it will supports NFC

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      unfortunately not

  • @yakubhafeez8328
    @yakubhafeez8328 11 หลายเดือนก่อน

    Brother you should open your own university, Respect!

    • @AhmadLogs
      @AhmadLogs  11 หลายเดือนก่อน

      Thank you so much for your kind words!

  • @BarkaMusicRajapakar
    @BarkaMusicRajapakar 2 ปีที่แล้ว

    How to delete message of gsm 800l

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      use the following command
      AT+CMGD=1,4

    • @BarkaMusicRajapakar
      @BarkaMusicRajapakar 2 ปีที่แล้ว

      @@AhmadLogs make a saferate video this Topic How To Delete message Gsm 800l

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      @@BarkaMusicRajapakar OK

    • @BarkaMusicRajapakar
      @BarkaMusicRajapakar 2 ปีที่แล้ว

      @@AhmadLogs Thanks sir

  • @HAMZALi1461
    @HAMZALi1461 2 ปีที่แล้ว

    Blynk+esp role + NFC

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      can you please explain a bit more