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

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 131

  • @oggythepro
    @oggythepro 8 місяців тому +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!

  • @deepanjalimishraa
    @deepanjalimishraa Рік тому +1

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

  • @Savage_Penguin
    @Savage_Penguin Місяць тому +2

    Thank you so much you explained it so well and thank you for going line by line as I was really struggling with the syntax :)

  • @Tarragon5896
    @Tarragon5896 2 роки тому +5

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

    • @DIYTechRush
      @DIYTechRush  2 роки тому +1

      Thanks for your reply
      I am glad it was helpful

    • @nicklane5896
      @nicklane5896 8 місяців тому

      Agreed.

  • @J_Creative
    @J_Creative 2 роки тому +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,,,

  • @STOIC_29
    @STOIC_29 Рік тому +6

    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

  • @rifloanimations1182
    @rifloanimations1182 Рік тому +2

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

  • @tylerwatson9937
    @tylerwatson9937 Рік тому +1

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

      No worries 👍
      I am glad you like it 😊

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +3

      Really appreciate your interest.
      Thanks 😊

  • @labtrials
    @labtrials Рік тому +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 11 місяців тому +1

    Thank you very much, I needed this video

  • @kurtlrnzv_
    @kurtlrnzv_ 10 місяців тому +1

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

  • @Random3Mar2024
    @Random3Mar2024 2 місяці тому +1

    Cool it works for my school project

  • @RblxHorror-vh7ft
    @RblxHorror-vh7ft Рік тому +1

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

  • @EternalScienceAndTech
    @EternalScienceAndTech 4 місяці тому +1

    Your content is top notch

  • @Dog_Awesome21
    @Dog_Awesome21 8 місяців тому +6

    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 6 місяців тому

      i'm stil getting the error

    • @JeremyBindon-NotOurKing
      @JeremyBindon-NotOurKing 5 місяців тому

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

    • @muthuchitra6937
      @muthuchitra6937 5 місяців тому +1

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

    • @mystormcat3835
      @mystormcat3835 3 місяці тому

      Thanks that works perfectly. I think its because it makes up extra voltage for any voltage drop form wiring resistance

    • @cesarfelix831
      @cesarfelix831 Місяць тому

      that worked

  • @paolodecaro3741
    @paolodecaro3741 2 місяці тому +1

    Ciao ho costruito il tuo esempio, ma quando compilo ricevo questo errore. ti premetto che tutto è a posto. Gentilemente potresti aiutarmi. ecco errore : avrdude: stk500_recv(): programmer is not responding

  • @francislaguardia4920
    @francislaguardia4920 4 місяці тому +1

    Amazing. New subscriber here. Have a good day!

  • @andreacolombo2495
    @andreacolombo2495 Рік тому +1

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

  • @muthuchitra6937
    @muthuchitra6937 5 місяців тому +1

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

  • @nicklane5896
    @nicklane5896 8 місяців тому +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?

  • @kitkirkyen2002
    @kitkirkyen2002 2 роки тому +2

    Thank you for the precise explanation sir.

  • @Dinco422
    @Dinco422 4 місяці тому +2

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

  • @mcrap4864
    @mcrap4864 6 місяців тому +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?

  • @processorFPS
    @processorFPS Рік тому +1

    is this supported to r4 minima?

  • @EmmanuelEtim-n3y
    @EmmanuelEtim-n3y 3 місяці тому +1

    How can RFID and UID technology be extended to read a tag placed very far apart?

  • @Mustafa-v2w8v
    @Mustafa-v2w8v Рік тому +2

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

    • @hannah-bw1rx
      @hannah-bw1rx Рік тому

      have u figured it out? im having the same problem

  • @MdAhanafChowdhury
    @MdAhanafChowdhury 2 роки тому +1

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

  • @Stevesteacher
    @Stevesteacher 11 місяців тому +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

  • @pyalpathak
    @pyalpathak 29 днів тому +1

    Hi there, I love this code of yours it is working well for me when connected to the computer. But not working with external power supply with SMPS of 12v to teh Arduino Uno. I want to run it without computer. Please help

  • @dailymemes2204
    @dailymemes2204 8 місяців тому +1

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

  • @grafika2
    @grafika2 Рік тому +1

    @EnjoyMechatronics what is name of mechanism locker ?

  • @karolyburany2403
    @karolyburany2403 Місяць тому

    Which software program did you use to draw the schematic diagram?

  • @foospoo
    @foospoo Рік тому +1

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

  • @tylerwatson9937
    @tylerwatson9937 Рік тому +1

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

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

  • @thepro7773
    @thepro7773 Місяць тому

    Can you tell me why the card was not getting read i tried everything please reply and tell me what im missing

  • @emeraldoantony387
    @emeraldoantony387 11 місяців тому +2

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

  • @powerupsuri355
    @powerupsuri355 Рік тому

    very easy and understandable video

  • @narendernautiyal3197
    @narendernautiyal3197 7 місяців тому +1

    thanx a lot dear done👍

  • @GameOver-cp5nt
    @GameOver-cp5nt Рік тому +1

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

      Maybe you haven't installed the library

  • @AxleTheLionTech
    @AxleTheLionTech 4 місяці тому +1

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

  • @ChizmizPH
    @ChizmizPH 3 місяці тому +1

    at first it reads the tags but when i do it again it says "Scan PICC to see UID, SAK, type, and data blocks."

  • @benb-lc8le
    @benb-lc8le 10 місяців тому +1

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

  • @MohamedibinAhmed
    @MohamedibinAhmed 2 роки тому +1

    It said failure connection maybe mfrc522 is not connected?

    • @DIYTechRush
      @DIYTechRush  2 роки тому +1

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

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

  • @arkabanik4039
    @arkabanik4039 Рік тому +1

    I cannot scan my card what can i do now?

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

  • @joaoamaral677
    @joaoamaral677 2 роки тому +1

    How do I put 2 tags in the code?

    • @DIYTechRush
      @DIYTechRush  2 роки тому +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

  • @SahanaC_Sana_
    @SahanaC_Sana_ Рік тому +1

    TQSM!!!!!!!!

  • @holdupmaster
    @holdupmaster Рік тому +4

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

    • @kujtims
      @kujtims Рік тому +2

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

    • @IHas_
      @IHas_ Рік тому +2

      am having same problem

    • @MeabuOP
      @MeabuOP 10 місяців тому +1

      please help, im having too

    • @IHas_
      @IHas_ 10 місяців тому

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

    • @OnlyXaM
      @OnlyXaM 9 місяців тому

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

  • @Getreadytogame008
    @Getreadytogame008 Рік тому +1

    Do I need the buzzer

  • @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 10 місяців тому

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

  • @jeanieelorde17
    @jeanieelorde17 Рік тому

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

  • @ahmadhithem9029
    @ahmadhithem9029 Рік тому

    HOW CAN I DO MULTI CARD??

  • @sonalimahajan8960
    @sonalimahajan8960 Місяць тому +1

    am struggling with code

  • @filipposzisis7148
    @filipposzisis7148 Рік тому +1

    where is the code

  • @BekmurodHasanov-z6f
    @BekmurodHasanov-z6f Рік тому +1

    Ok👍👍

  • @thheannh8973
    @thheannh8973 3 місяці тому

    Code please

  • @rajapriyanandhivarman1413
    @rajapriyanandhivarman1413 Місяць тому

    man please give the code also

  • @foospoo
    @foospoo Рік тому +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 !!!!!!!!!!!