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

Комментарии • 68

  • @oggythepro
    @oggythepro 3 месяца назад

    Thank you ! I've been trying to make the rfid work but it wouldn't work. But your code worked Thanks a lot!

  • @heavybladevideo
    @heavybladevideo 7 месяцев назад +2

    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 7 месяцев назад +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 7 месяцев назад +1

      @@HandyMakerDIY I will try that, thank you

    • @heavybladevideo
      @heavybladevideo 7 месяцев назад +1

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

    • @HandyMakerDIY
      @HandyMakerDIY 7 месяцев назад

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

  • @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.

  • @user-fr1zb8ee2v
    @user-fr1zb8ee2v 4 месяца назад

    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

  • @pccxp
    @pccxp 7 месяцев назад

    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!

  • @Faiz_504
    @Faiz_504 Месяц назад

    it seems that the way i put the hex code in was wrong because it keeps saying access denied

  • @FNTHAMOB
    @FNTHAMOB 6 месяцев назад +1

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

  • @benkotur3268
    @benkotur3268 3 месяца назад

    Hello, i typed my mastertag in but its still saying denied. Any suggestions?

  • @samirzafar
    @samirzafar 10 месяцев назад +2

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

  • @jebiejeb
    @jebiejeb 3 месяца назад +1

    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.

    • @arnavpraneet5567
      @arnavpraneet5567 28 дней назад +1

      you gave it 5v accidentally and fried it, the usual model only supports 3.3V in reality

  • @aisyahsofeaothman2431
    @aisyahsofeaothman2431 10 месяцев назад +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 8 месяцев назад

      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)

  • @josephvanclersson7906
    @josephvanclersson7906 3 месяца назад

    I would like to do it but for 4 reader any video suggestions please

  • @stephanocherfane441
    @stephanocherfane441 4 месяца назад

    Thank You, worked like a charm.

  • @MakaraSuos-ie6ng
    @MakaraSuos-ie6ng 2 месяца назад

    How can i get rfid-arduino code ?

  • @attariazeddine6603
    @attariazeddine6603 Год назад

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

  • @jjrg20
    @jjrg20 3 месяца назад

    Where did you declare "getID"?

  • @IsmiIsmi-e9c
    @IsmiIsmi-e9c 2 месяца назад

    Huaa thank you more brother.

  • @umitsaman
    @umitsaman 2 года назад

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

  • @aleccada4114
    @aleccada4114 11 месяцев назад

    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?

  • @raziehsoleimani
    @raziehsoleimani 8 месяцев назад

    thanks a million you helped me a lot

  • @aziz2398
    @aziz2398 2 года назад

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

  • @stevenli3492
    @stevenli3492 6 месяцев назад

    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.

  • @abbasthegreat5
    @abbasthegreat5 2 месяца назад

    Thank you 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

  • @lawalmohammed83
    @lawalmohammed83 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

  • @tanveerahmedshaikh7332
    @tanveerahmedshaikh7332 Год назад

    very nice bro,i really like your video

  • @prakashharash8380
    @prakashharash8380 Год назад

    thanks a lot . have a nice life.

  • @shakerileiwat4341
    @shakerileiwat4341 2 года назад

    Great video
    Thank you

  • @user-fy2ci2in4g
    @user-fy2ci2in4g 8 месяцев назад

    Thank you

  • @fcj3
    @fcj3 Год назад

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

    • @AhmadLogs
      @AhmadLogs  Год назад

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

  • @MohdRizwanEC
    @MohdRizwanEC Год назад

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

    • @AhmadLogs
      @AhmadLogs  Год назад

      it is not compatible with the uart. it is i2c

    • @MohdRizwanEC
      @MohdRizwanEC Год назад

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

    • @AhmadLogs
      @AhmadLogs  Год назад

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

  • @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.

  • @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

  • @yakubhafeez8328
    @yakubhafeez8328 Год назад

    Brother you should open your own university, Respect!

    • @AhmadLogs
      @AhmadLogs  Год назад

      Thank you so much for your kind words!

  • @123454628
    @123454628 2 года назад

    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🙏🙏❤️

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      I will try my best

  • @dilli8940
    @dilli8940 Год назад

    sir it will supports NFC

  • @HAMZALi1461
    @HAMZALi1461 2 года назад

    Blynk+esp role + NFC

    • @AhmadLogs
      @AhmadLogs  2 года назад

      can you please explain a bit more