How to use RFID reader RC522 with arduino easy way

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2020
  • MFRC522 is maybe cheapest RFID Reader that we can found now. It uses 13.56 MHz frequency And it is also easy to use. We can easily interfaced this reader with arduino or raspberry. This video can be the simplest tutorial on how to use this RFID reader with arduino.
    You can support us and unlock premium projects code by joining our membership by clicking the link below:
    / @miliohm
    Get library and full code here :
    miliohm.com/mfrc522-rfid-read...
    Music :
    Travel - AShamaluevMusic ( / travel )
    Way - AShamaluevMusic
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Supermouseandcheese
    @Supermouseandcheese 3 ปีที่แล้ว

    Thank you for the great video! Super easy to follow along!!

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Thanks!

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

    hi may i ask is there a way to use the tag to turn on a switch and the switch stay on until the unit it powered off / rebooted. so the tag closes the switch and no matter if the tag comes into contact again once the switch is on it has no effect.

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

    I checked many videos, all didn't work. Yours worked! Thanks

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

      Good to know it helped!

  • @christopherami8142
    @christopherami8142 3 ปีที่แล้ว

    the RFID library make it very very easy thanks man for this tuto

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Sure!

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

    thanks for the video. helped me get an A in class. thank you!

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

      Happy to hear that! 😀

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

    Hello Sir, can you teach us how to interface AS608 with esp32? Thank you.

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

    Do you know how can reuse the pins of an arduino? I have another lcd screen that I’d like to use on the same board. Some sort of switch will probably help solve my problem as I don’t need them both working at the same time. Would love any ideas

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

    What does halting the rfid mean, and what does the init method do? And what is serNum is that an array?

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

    helo bro how to connect 2 rfid sensors in a arduino plz make a programe

  • @alexanderduff7052
    @alexanderduff7052 3 ปีที่แล้ว

    I've downloaded and included both RFID libraries copied the code into Arduino, but getting the error message 'class RFID has no member named 'isCard'

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

    Thanks for this tutorial. Worked ok.

  • @rakeshanjani3481
    @rakeshanjani3481 3 ปีที่แล้ว +1

    Need help bro.....everything is correct but rfid sensor doesnt recognise rfid card tag ...whenver i try to read the rfid card in COM3 its coming like this..." ????.???...u..??..??." What is this bro ??

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

    i need help. im trying to add the rfid library from manage librarys but how do i get to my ribrary and inset it as its showing other peoples files and telling me to download it. been at it for hours and i stg amma scream

  • @faroekjuthan89
    @faroekjuthan89 3 ปีที่แล้ว

    My compliments for your great explanation and how the code works. Thanks for sharing and wish you the best of luck with your projects.

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Thank you!

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

      I have an one daut about this ...

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

    how get card numbers in new arduino ide

  • @ayounx
    @ayounx 3 ปีที่แล้ว

    Hope u add relay to this project, good job.. thanx

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

    Great Job!

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

    why does my reader cannot detect my card

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

    bro how do it in an excel sheet

  • @prasadshinde6536
    @prasadshinde6536 3 ปีที่แล้ว +1

    Hey bro. I'm getting following error.. Plz help
    Firmware version : 0x0 = (unknown)
    Warning : communication failure, is mfrc522 properly connected?

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Make sure your wiring is correct. Should no problem

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

    where is the SPI library

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

    Is it possible to customize the sound for each rfid card ?

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

      Yeah, but you need to organize the sound based on number or something

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

    help me. all the wiring are great. the code uploaded. the serial monitor pops up and said "Starting the RFID Reader..." but when i put my card/tag on the rfid sensor, there's nothing. there's no id pops up on the serial monitor. what could be the problem here?

    • @GWS-schouwen
      @GWS-schouwen ปีที่แล้ว +2

      Same problem here, anyone?

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

      @@GWS-schouwen same problem

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

      @@bizarro4587 same do you get any solution

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

      @@bizarro4587 because i need to sumbit project

  • @wyatt2299
    @wyatt2299 3 ปีที่แล้ว

    Why whenever I upload the script it says that the #include has no such file directory? Even when I do copy and paste the code the same problem is there. Could this just be because we have different versions or the IDE?
    RFIDKeyTest:2:10: fatal error: RFID.h: No such file or directory
    #include
    ^~~~~~~~
    compilation terminated.
    exit status 1
    RFID.h: No such file or directory

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      This tutorial uses 2 libraries. Make sure you add the second library too

  • @sehan3563
    @sehan3563 3 ปีที่แล้ว

    hello there... i am really need of help right now.... how can i code the RFID tag so it can perform addition operation... i mean like one card reads value of 3 and another card reads value of 4 so i want to make an addition operation...can someone help me

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

      If you set the RFID number of a card equal to a number and the same for another, you should just be able to code it so that when the specific RFID numbers are scanned, it adds the corresponding numbers

  • @ayakanaan2877
    @ayakanaan2877 3 ปีที่แล้ว +2

    Hello Sir
    thanks for this great video. I need help now. The RFID sensor does not recognize the RFID card. The wiring connection has been checked and the programming is all correct but does not work. I dont know Why!!

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Nothing detected? Did you use the right card? The cards that come with the reader

    • @reizilnolasco8849
      @reizilnolasco8849 3 ปีที่แล้ว +1

      @@miliohm Same with mine, nothing is detected. I used the same card that comes with the reader

    • @user-tt7ib5po1e
      @user-tt7ib5po1e 2 ปีที่แล้ว +1

      mine too

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

      same here

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

      mine says: Class RFID has no member named isCard()

  • @rameshreddyv3149
    @rameshreddyv3149 3 ปีที่แล้ว

    Thanks bro

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

    love it

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

    Can this be used to detect a moving vehicle?

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

      I don't think so, the distance is only about 1cm

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

    downloaded the libraries, checked the wiring, using arduino uno, compiled completed, it is printing "starting the rfid reader" but it is not reading the card.

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

      That is exactly what’s happening to me

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

      @@erickwhatcott6016 I noticed that some RFID readers have bad quality. Out of 5 you get 1 to work. Better buy from a trustworthy supplier.

  • @mkgmscada5798
    @mkgmscada5798 3 ปีที่แล้ว

    RDM6300 with arduino! pleas

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

    please can it read debit or credit card Number

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

      It is for RFID/NFC card. I don't think the debit or credit card number is stored on NFC. CMIIW

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

    is that Male to Male wires ????

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

    Is there any library for the RC522 in c++? I really need it to work with the STM32 microcontroller on Nucleo board F429ZI.
    If anyone knows about the library, I will be more than grateful to you.

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

    You explained it real good

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

    rfid:2:10: fatal error: RFID.h: No such file or directory
    #include
    ^~~~~~~~
    compilation terminated.
    exit status 1
    RFID.h: No such file or directory
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Getting this error, I think I should try installing Library from the library manager. Which library for RFID do I install?

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

      nevermind, I fixed it

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

      How did you fix it I have the same issue

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

      You need two libraries

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

      Nvm I fixed it thank you for the video

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

      @@miliohm What other library do i need to install?

  • @landevi8638
    @landevi8638 3 ปีที่แล้ว

    I’m getting a error message for line 2 it is telling me there is no such file or directory for RFID.h

    • @miliohm
      @miliohm  3 ปีที่แล้ว +1

      that means you don't have the library. add the library first

    • @landevi8638
      @landevi8638 3 ปีที่แล้ว

      @@miliohm I downloaded it but don’t know how to apply it to the code

    • @miliohm
      @miliohm  3 ปีที่แล้ว +1

      @@landevi8638 the easiest way is using manage libraries on tools menu. then search for your library.
      Or you can download it manually and copy the library folder to your arduino library folder. Usually on documents/arduino/libraries

    • @brianngondo3771
      @brianngondo3771 3 ปีที่แล้ว

      @@miliohm which library because I am getting the same error

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      @@brianngondo3771 second library. Named RFID

  • @sreeramsp
    @sreeramsp 3 ปีที่แล้ว

    Can u please tell me the name of Arduino???
    Is it Arduino Uno???

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      yes of course, it's arduino uno. chinese one, and smd one

    • @sreeramsp
      @sreeramsp 3 ปีที่แล้ว

      @@miliohm I am doing bus ticketing system with RFID reader project, can u please guide me😊, can u please make a video on that 😊

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

    I need help it won't detect card

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

      what's on the serial monitor?

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

    I've Rewired this 10 times and it says it starting but it doesn't accept the card

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

      same but this creator not helping genuine creator

  • @SachinSharma-bk2lg
    @SachinSharma-bk2lg 3 ปีที่แล้ว

    hello sir!
    i request you to make a video regarding the same RFID with passive sensor
    like have a parking system and when car or bike enters the entry of that tag will be made in the computer.
    aslo the sensor works at a range of few meters so i d like to see how to programme(read a tag) from certain distance.

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Yeah, maybe in next video. But if you want long range sensor. You totally need different RFID reader. You can buy long range RFID reader.

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

    makasih

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

    Gr8

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

    it wont recognize the RFID.h file
    its says:
    sketch_dec28a:2:10: fatal error: RFID.h: No such file or directory
    #include
    ^~~~~~~~
    compilation terminated.
    exit status 1
    RFID.h: No such file or directory
    pls help

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

      Did you already install 2 libraries?

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

      @@miliohm yes i installed both it recognizes the SPI.h but not RFID.h

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

      @@Onysk take a look closer at 4:09

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

      @@miliohm i did exactly what you said download both and copy the code

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

      @@Onysk did you try to restart Arduino IDE?

  • @kiralygame8568
    @kiralygame8568 3 ปีที่แล้ว

    RFID.h: No such file or directori

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

    R u Malaysian?

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

      No, I'm the neighbour

  • @aravindr6402
    @aravindr6402 3 ปีที่แล้ว +1

    super bro the code works and output received

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

      Why rfid reader not detects rfid card

  • @sherifghaly9746
    @sherifghaly9746 3 ปีที่แล้ว

    pls ur link not active

    • @miliohm
      @miliohm  3 ปีที่แล้ว +1

      It's still active

    • @sherifghaly9746
      @sherifghaly9746 3 ปีที่แล้ว +1

      @@miliohm no it's not

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      @@sherifghaly9746 what it said? Because here it is still running properly

  • @wisnuindrawan6496
    @wisnuindrawan6496 3 ปีที่แล้ว

    good video, thanks :D

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

    'class RFID' has no member named 'isCard'; did you mean 'findCard'?

  • @atharva2009
    @atharva2009 3 ปีที่แล้ว

    :-)

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

    it shows me an error:
    C:\Users\Utente\AppData\Local\Temp\.arduinoIDE-unsaved20221128-21368-r6n5cb.9mbg\sketch_dec28a\sketch_dec28a.ino:2:10: fatal error: RFID.h: No such file or directory
    #include
    ^~~~~~~~
    compilation terminated.
    exit status 1
    Compilation error: RFID.h: No such file or directory

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

      it is likely you didn't install both libraries. This sketch needs two libraries.

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

      @@miliohm so i need to create 2 files? Or i need to search them?

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

      @@alemega0992 you already download or install the libraries?

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

      @@miliohm here is the problem i don't have any

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

      @@alemega0992 4:15

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

    :-)