How to use RFID (RC522) with Arduino - Easy Tutorial

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • (MFRC522) is the cheapest RFID Reader which uses 13.56 MHz frequency And it is also easy to use. We can easily interface it with arduino. This is the simplest tutorial on how to use RFIDs with arduino.
    ● Playlist Link: bit.ly/2VT2ZAN
    ● Arduino Buzzers: • Arduino Tutorial 18- U...
    ● Getting Started: • Arduino Tutorial 1- Se...
    --------------------------------------------------------------------
    ► Get Your First Arduino Starter Kit 👇:
    ✅ amzn.to/3VfGNM1
    👉 amzn.to/3L7gPpw
    ♥ Don't Click This! : bit.ly/3jvI8g6
    --------------------------------------------------------------------
    FOLLOW ME:
    ● TikTok:
    / enjoy_mechatronics
    ● Facebook: / enjoymechatronics
    ● Github: github.com/Enj...
    --------------------------------------------------------------------
    ► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.

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

  • @oggythepro
    @oggythepro 4 месяца назад +2

    Thanks a lot my guy I was very upset that i couldn't find a tutorial but you made it easy! Keep it going!

  • @Stevesteacher
    @Stevesteacher 7 месяцев назад +3

    For those constantly getting a timeout error, note that you should keep the tag on the reader until the output is completed - either that, or you may have a connection issue

  • @EternalScienceAndTech
    @EternalScienceAndTech 19 дней назад +1

    Your content is top notch

  • @deepanjalimishraa
    @deepanjalimishraa Год назад +1

    i am in 2nd year doing this project and this worked very well he teaches so good

  • @kieranhickey5896
    @kieranhickey5896 Год назад +5

    Best video for this build I could find. Typing the code in as you go helps with learning also. Great video

  • @rifloanimations1182
    @rifloanimations1182 Год назад +2

    Nice one,, have looked for this one with a good code explanation,,Iam a Mechatronics engineering student,,and I enjoy Mechatronics

  • @J_Creative
    @J_Creative Год назад +2

    Ive been watching this many times your explanations drives clear and easy to understand thank you bro keep it up hope you can provide more,,,

  • @tylerwatson9937
    @tylerwatson9937 Год назад +1

    Fantastic, thanks for walking through each section, helped a lot!

  • @muthuchitra6937
    @muthuchitra6937 Месяц назад +1

    Thank you so much for the wonderful video and nice explanation.

  • @francislaguardia4920
    @francislaguardia4920 8 дней назад +1

    Amazing. New subscriber here. Have a good day!

  • @labtrials
    @labtrials 8 месяцев назад +1

    Dude was really helpgul for me!! Thanks a lot!!

  • @vendettyron
    @vendettyron Год назад +1

    ty, I finished my project with your video.

  • @Omar_-nz2yj
    @Omar_-nz2yj 7 месяцев назад +1

    Thank you very much, I needed this video

  • @RblxHorror-vh7ft
    @RblxHorror-vh7ft 10 месяцев назад +1

    So cool. Thx bro. Very usefoul for arduino begginers!

  • @irzfanfarizan3001
    @irzfanfarizan3001 Год назад +2

    Thanks for this video bro, you explained very well for each line of code. It was very helpful for someone beginner like me to learn Arduino programming. Please don't stop making a videos and keep teaching us👏 may god bless you.

  • @kitkirkyen2002
    @kitkirkyen2002 2 года назад +2

    Thank you for the precise explanation sir.

  • @Dinco422
    @Dinco422 24 дня назад +1

    Doesn't work for me, it just doesn't read anything with the cards included in the module as well...

  • @STOIC_29
    @STOIC_29 10 месяцев назад +4

    bro how did you connect na mfrc522 into the breadboard? im having a communication failure and it;s loose don;t know how should i connect it

  • @Dog_Awesome21
    @Dog_Awesome21 4 месяца назад +3

    if you get the error "WARNING: communication failure, is the MFR522 properly connected?
    Scan PICC to see UID, SAK, type , and date blocks..." try to switch to 5v

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

      i'm stil getting the error

    • @JeremyBindon-NotOurKing
      @JeremyBindon-NotOurKing Месяц назад

      I'm also getting this error. Changing the voltage doesn't help

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

      @@JeremyBindon-NotOurKingincrease the delay after PCD_init() and reset the arduino board and upload again. I also got the same error. It worked

  • @nicklane5896
    @nicklane5896 4 месяца назад +1

    maybe a dumb question: is it right to hook the data pins to the 5v logic pins, even though it's a 3.3v module?

  • @dailymemes2204
    @dailymemes2204 4 месяца назад +1

    i'm having a problem communicating the RFID to the Aduino, what should i do?

  • @MdAhanafChowdhury
    @MdAhanafChowdhury Год назад +1

    thank you for your precious explaination sir. how do i access card limited time?

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

    Hi, do you have project integrating RFID and Facial Recognition Technologies for Security System?

  • @powerupsuri355
    @powerupsuri355 9 месяцев назад

    very easy and understandable video

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

    thanx a lot dear done👍

  • @andreacolombo2495
    @andreacolombo2495 9 месяцев назад +1

    Is it possible to connect 15 devices at the same time? Is it possible to specify which reader the reading comes from?

  • @The_Lego_Enginub
    @The_Lego_Enginub 20 дней назад +1

    Can you make a file where we can download the code? And just edit it?

  • @SahanaC_Sana_
    @SahanaC_Sana_ Год назад +1

    TQSM!!!!!!!!

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

    How fast can the reader detect the tag? I want to try using this to uniquely identify my rc cars as it passes by it, which can happen really quickly.
    How many concurrent tags can it detect as once? I might have multiple tags nearby it.
    Do you have alternative solutions for my use case if this isn't suitable?

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

    it gives me error line byte accessUID[4] = {A3, 4F, 4E, F5}; that exponent no digits

  • @benb-lc8le
    @benb-lc8le 6 месяцев назад +1

    I have a problom it works but just 1 time and then it just dosen't read the next card

  • @marrionbenedictlamayo4909
    @marrionbenedictlamayo4909 9 месяцев назад +1

    is this supported to r4 minima?

  • @Mustafa-v2w8v
    @Mustafa-v2w8v 10 месяцев назад +2

    how did you connect the leds and buzzer i don't understand!!!!!!!!!!!

    • @hannah-bw1rx
      @hannah-bw1rx 9 месяцев назад

      have u figured it out? im having the same problem

  • @foospoo
    @foospoo 10 месяцев назад +1

    there is an error that says unable to find numeric literal operator 'operator""D' how do we fix this problem

  • @grafika2
    @grafika2 10 месяцев назад +1

    @EnjoyMechatronics what is name of mechanism locker ?

  • @arkabanik4039
    @arkabanik4039 11 месяцев назад +1

    I cannot scan my card what can i do now?

  • @tylerwatson9937
    @tylerwatson9937 Год назад +1

    Will this still work standalone, without being attached to a computer?

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +1

      Definitely,
      You could even power it using a phone adapter.

  • @GameOver-cp5nt
    @GameOver-cp5nt Год назад +1

    it says 'mfrc552' was no declared in this scope. What i need to do?

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

    It said failure connection maybe mfrc522 is not connected?

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

      You have to wait a bit until the reader gets all data.

  • @joaoamaral677
    @joaoamaral677 Год назад +1

    How do I put 2 tags in the code?

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +1

      You could add another array accessUID2 then add it to the if statement
      if(.... || use the same comparison but with accessUID2)
      > this || means or

  • @holdupmaster
    @holdupmaster 9 месяцев назад +4

    WARNING: Communication failure, is the MFRC522 properly connected? I just keep getting this error

    • @kujtims
      @kujtims 9 месяцев назад +2

      Did you find a way to fix that i'm having the same problem as well...

    • @IHas_
      @IHas_ 9 месяцев назад +2

      am having same problem

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

      please help, im having too

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

      @@MeabuOP change braud bro ı will solved my problem with this

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

      Im having the same problem, were you able to fix it?

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

    Can you please do video for laundry shop please
    6:28

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

    I've been using RFID with Arduino for a bit now and it's been working great, but do you know of any way to disable the red led that lights up on the RFID sensor?

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

    HOW CAN I DO MULTI CARD??

  • @filipposzisis7148
    @filipposzisis7148 Год назад +1

    where is the code

  • @BekmurodHasanov-z6f
    @BekmurodHasanov-z6f 10 месяцев назад +1

    Ok👍👍

  • @FlightOfThePiano
    @FlightOfThePiano Год назад +2

    Hi, great video, when trying the dump info serial monitor, it said communication failure and asked if it MFRC522 was connected properly, I was using thee arduino mega 2560 and im not sure how to resolve the issue or if my board is the issue. I rewired it so it was wired according to what the code said for my board but it still wouldn't work... any idea on what's wrong? issue was fixed, no worries. WAIT! one more thing... my pinmode function is making the pins turn on as soon as I start the code, any idea on what function can make the pins an output source without turning them on?
    here is exactly what it said: Firmware Version: 0x0 = (unknown)
    WARNING: Communication failure, is the MFRC522 properly connected?
    Scan PICC to see UID, SAK, type, and data blocks...

    • @joshuapiper3712
      @joshuapiper3712 Год назад +1

      What did you do to correct your error?

    • @benb-lc8le
      @benb-lc8le 6 месяцев назад

      I have the same problem can you pls say how you fixed it?

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

    Im using a mega 2560 and have wired it for the mega 2560 but when i brought up the serial monitor it said 'connection failure, is the MFRC522 properly connected?' ive waited a half hour (and my pc isnt slow) and ive rewired it but it wont let me

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

      you need to do soldering between breadboard and rfid

    • @GameOver-cp5nt
      @GameOver-cp5nt Год назад +1

      with the arduino mega 2060 you need to connect
      RST pin 9
      SDA pin 53
      MOSI pin 51
      MISO pin 50
      SCK pin 52

  • @Getreadytogame008
    @Getreadytogame008 8 месяцев назад +1

    Do I need the buzzer

  • @thheannh8973
    @thheannh8973 2 дня назад

    Code please

  • @foospoo
    @foospoo 10 месяцев назад +1

    constexpr float operator "" _deg(unsigned long long d) {
    // returns radians
    return d*3.1415926535/180; this code should fix the unable to find numeric literal operator 'operator""D' problem !!!!!!!!!!!