Arduino Tutorial: RFID Tutorial RC522 with an Arduino Uno and an OLED display from Banggood.com

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • Are you interested in an Arduino RFID project? In this video we take a look at the RFID RC522 reader and writer, and we learn how to use it with Arduino. We also use an OLED display to read the UID of the RFID tags. Let's start!
    Today we are going to build a very interesting project. For the first time we are going to use RFID tags with Arduino. I have built a simple project which reads the Unique ID (UID) of each RFID tag we place close to the reader and displays it on this OLED display. If the UID of the tag is equal to a predefined value that is stored in Arduino's memory, then in the display we are going to see the "Unlocked" message. If the Unique ID of the card is not equal to the predefined value, the Unlock message won't appear. Cool isn't it?
    💻 Code & Parts: educ8s.tv/arduino-rfid-tutorial
    Want to learn to code?
    👨‍💻 Check my new TH-cam channel: bit.ly/3tku2n0
    🎮 My Android Game: bit.ly/QuizOfKnowledge
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @andyxlh
    @andyxlh 6 ปีที่แล้ว

    unreal, thank you this is very clear and carefully done.

  • @OffroadMXbohemia
    @OffroadMXbohemia 6 ปีที่แล้ว +3

    Hi, how you can add more RFID cards? And how to add relay for load? Thank you very much in advance.

  • @baileythedudeman57
    @baileythedudeman57 5 ปีที่แล้ว

    thank you for making this video. it has saved me

  • @eheadj5712
    @eheadj5712 5 ปีที่แล้ว

    Congradulations for your videos!!! Μπράβο αδερφέ!

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

    thank for the video. I found this video while researching for building a spelling test toy for my kid. and realized that you are also interesting in building toys for children with rfid. I'm interested to learn what you are doing, if that is sharable. looking forward to learn from you.

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

    Would I need to include the two Adafuit libraries if I'm working with a 16*2 LCD?

  • @thomasalexander1563
    @thomasalexander1563 7 ปีที่แล้ว

    Thank you,,
    This video really help full,,
    Make more video ,,

  • @namrataghagare8527
    @namrataghagare8527 6 ปีที่แล้ว

    Thanks. Is it possible to implement different modules on single nano ie connect multiple devices ? If yes then how?

  • @rishabhchawla9844
    @rishabhchawla9844 5 ปีที่แล้ว

    Sir, which RFID reader and writer should i use for a long range system of about 3.

  • @pallavilambe2503
    @pallavilambe2503 5 ปีที่แล้ว

    in place of rfid tag u used, can i use any ID (like Pan card) or card with bar code ?

  • @pinkeye00
    @pinkeye00 6 ปีที่แล้ว

    Great job (from a white guy in the US) :) Got me up and running in 20min.

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

    Dear Niko, great channel!!! I am starting now with arduino and basic electronics and I find your videos really informative and helpful. I know it is long time since this video, but you said at closure that you will make another video with read/writing in an rfid(maybe an nfc in mobile phone is a good idea also) tag and I thing there is not such video in your channel. What do you think, will you be able to do so???

  • @tomassasovsky4412
    @tomassasovsky4412 6 ปีที่แล้ว

    Can i use an arduino nano atmega 328? Thanks for your time!

  • @siddharth4662
    @siddharth4662 7 ปีที่แล้ว

    can i use a NRF24L01 as a RFID TAG to be read using an Arduino and some 2.4 GHz Module?

  • @fabts4
    @fabts4 7 ปีที่แล้ว

    It works great with the included tags, I couldn't get it to read my credit card (which has RFID, my phone reads it) info though, any idea. Not trying to copy my card or anything, just want to recognize it to turn a relay on.

  • @joacimwennerberg8310
    @joacimwennerberg8310 7 ปีที่แล้ว

    Thanks Nick! 😀

  • @twopiecez5226
    @twopiecez5226 5 ปีที่แล้ว

    Do you have a video of using rfid as a automatic kill switch for my motorcycle?

  • @aslamshaikh892
    @aslamshaikh892 6 ปีที่แล้ว

    sir I am planning to go for students management biometrics so can I use RFID ? if yes plz explain it how can I use it

  • @deathtospi9072
    @deathtospi9072 5 ปีที่แล้ว

    Hello; In my project I need to confirm the passing of a vehicle; so I need to ask how long does this operation take?!

  • @tanbirsohail
    @tanbirsohail 7 ปีที่แล้ว

    Is this RFID reader compatible with Arduino Pro Mini 3.3 volts?

  • @abobobo943
    @abobobo943 5 ปีที่แล้ว

    Cool.Thanks for sharing.

  • @utkarsharora5329
    @utkarsharora5329 4 ปีที่แล้ว

    Μπράβο είσαι απίθανος

  • @petterenlund5809
    @petterenlund5809 5 ปีที่แล้ว

    i actually blew a kiss when he said the code was in the discription XD XD XD

  • @floopysdiskos9221
    @floopysdiskos9221 7 ปีที่แล้ว

    Καθε καρτα εχει το μοναδικο ID. Eκεινο μπορει να αντιγραφει με καποιο τροπο;. Ξερω οτι οι υπολοιπες πληροφοριες εχουν την δυνατοτητα γραφης και αναγνωσεις αλλα κατα ποσο το Sector 0 μπορει να αντιγραφει;

  • @anca30000
    @anca30000 7 ปีที่แล้ว

    One more great video!
    Why don't you use 2 pull up resistors in the I2C display?
    Thanks

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

      My display works fine without the resistors. I use it this way for a long time and I never had issues with it.

    • @anca30000
      @anca30000 7 ปีที่แล้ว

      Great! You are the best! thanks...

  • @rakeshloke6772
    @rakeshloke6772 6 ปีที่แล้ว +3

    how to add more than 2 UID in the code..plzzzzzzzzz comment

  • @anhtuannguyen7570
    @anhtuannguyen7570 7 ปีที่แล้ว

    my oled have 5 pin, the 5th pin is D/C pin can i still use your code?
    sorry for may bad english

  • @siddharth4662
    @siddharth4662 7 ปีที่แล้ว

    hello... do you have a video where we can integrate this RFID module with a bluetooth to be read from and android mobile phone.

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

    can we use any other card apart from these given cards? As for example any ATM or shopping card?

    • @pallavilambe2503
      @pallavilambe2503 5 ปีที่แล้ว

      if we use any other card same procedure is used or any changes has to be done in coding or where?

  • @AndersJackson
    @AndersJackson 6 ปีที่แล้ว

    I will try this on my tag that I got in my left hand. :-)

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

    I have everything else added to this example that I needed except for being able to add more UID's. Anyone know how I can do that?

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

    how about using Nodemcu Esp822 + RFID + SSD1306 OLED.. the program will be d same?

  • @KrishanKumar-li2zz
    @KrishanKumar-li2zz 6 ปีที่แล้ว

    sir i want to prepare a project to locate file from huge almirah of record files. how i can prepare

  • @ningarkumar389
    @ningarkumar389 6 ปีที่แล้ว

    sir how to connect relay for load

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

    sir why i can’t connect my RFIDCard in OLED display.. it reads in the serial monitor but nothing apear in my display..

  • @naami2004
    @naami2004 7 ปีที่แล้ว

    Very nice video, thanks

  • @HeyRaggy
    @HeyRaggy 5 ปีที่แล้ว

    Can this RFID reader read any 13.56 mhz card? i want to take data from my school id and send it to a webpage in a table format as a kind of attendance application.

  • @nicholaschua7739
    @nicholaschua7739 5 ปีที่แล้ว

    How come the SPI pin can run on 5v logic.

  • @phanicharan7580
    @phanicharan7580 6 ปีที่แล้ว

    have u done any vedio on how to write into an rfid card?????

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

    Can i use it on arduino nano?

  • @alm-to2pz
    @alm-to2pz 6 ปีที่แล้ว

    Nice. I like your accent. BTW can I replace OLED with E-Ink display? Thank you.

  • @markdaryljerezon6681
    @markdaryljerezon6681 7 ปีที่แล้ว

    Is this working with linux?

  • @professorhiran3338
    @professorhiran3338 4 ปีที่แล้ว

    Ótimo vídeo.

  • @andresmayarestrepo551
    @andresmayarestrepo551 7 ปีที่แล้ว

    Hi, if i want use two rfid using one Arduino, can i ? how? thanks!

  • @unknown-lr1wc
    @unknown-lr1wc 5 ปีที่แล้ว

    Sir is this without PC..... Please reply sir.... Very urgent

  • @makersengineering530
    @makersengineering530 5 ปีที่แล้ว

    Dear sir, can you do a project with arduino rfid+school attendance in/out with text sms notification to their parents ?

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

    How can we edit the information in rfid tags?

  • @abdullahafzal9
    @abdullahafzal9 5 ปีที่แล้ว

    how to connect a relay with it???

  • @hicham3341
    @hicham3341 7 ปีที่แล้ว

    جزاك الله خيرا سلام

  • @gilangprambudi354
    @gilangprambudi354 7 ปีที่แล้ว

    Will it work the same with WeMos D1 Mini ? I am planning to make a simple absentee tracker with it.

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

      Yes, I think it will

  • @xavierr4508
    @xavierr4508 4 ปีที่แล้ว

    Why nobody is using the I2C serial mode with this board?

  • @arjunpudu799
    @arjunpudu799 5 ปีที่แล้ว

    how to do the same project using node mcu esp8266

  • @pallavilambe1870
    @pallavilambe1870 5 ปีที่แล้ว

    Hello sir, For my project the UID number is not showing can you tell me what is the problem

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

    Ελλινας εισαι??

  • @user-ig3us3cf9l
    @user-ig3us3cf9l 6 ปีที่แล้ว

    Thanks for educ8s.tv :)

  • @davidmcallister9752
    @davidmcallister9752 5 ปีที่แล้ว

    I'm trying to just scan the ID by using the dumpinfo example. I get this message:
    WARNING: Communication failure, is the MFRC522 properly connected?
    Scan PICC to see UID, SAK, type, and data blocks...
    I have checked my wiring multiple times. Any thoughts on why I'm getting this error?

    • @Educ8s
      @Educ8s  5 ปีที่แล้ว

      Check this out: github.com/miguelbalboa/rfid/issues/101

  • @julioverne3825
    @julioverne3825 7 ปีที่แล้ว

    Very nice project.

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Thanks!

  • @uyangaganhuu6610
    @uyangaganhuu6610 6 ปีที่แล้ว

    white card not reading but tag read help me

  • @biswanathbanik
    @biswanathbanik 4 ปีที่แล้ว

    how can i connect rfid to esp8266 board

  • @rachelingram1247
    @rachelingram1247 4 ปีที่แล้ว

    Hi I am trying to add in my own UID into the code but it is currently in this form: E7 3F 8C 32, but I'm not sure what form it should be in the code as it does not work when i put this in. Any ideas on how to fix this problem?

    • @robertcameron7835
      @robertcameron7835 4 ปีที่แล้ว

      Either convert your UID code into decimal, so E7 3F 8C 32 becomes 231,63,140,50 or add 0x before each byte 0xE7, 0x3F, 0x8C, 0x32

  • @RaspberryStraw
    @RaspberryStraw 7 ปีที่แล้ว

    Nice

  • @dobi7431
    @dobi7431 7 ปีที่แล้ว

    Nice video!
    can I connect it with VB.Net?

  • @lianatasya275
    @lianatasya275 5 ปีที่แล้ว

    hello sir, may i know how i can get the coding ? im really need it for my final year project.

    • @Educ8s
      @Educ8s  5 ปีที่แล้ว

      Check the video description

  • @tejathunderbolt8881
    @tejathunderbolt8881 7 ปีที่แล้ว

    Arduino: 1.6.4 (Windows 8.1), Board: "Arduino Uno"
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In constructor 'MFRC522::MFRC522()':
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:16:33: error: 'UINT8_MAX' was not declared in this scope
    MFRC522::MFRC522(): MFRC522(SS, UINT8_MAX) { // SS is defined in pins_arduino.h, UINT8_MAX means there is no connection from Arduino to MFRC522's reset and power down input
    ^
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_Init()':
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:201:28: error: 'UINT8_MAX' was not declared in this scope
    if (_resetPowerDownPin != UINT8_MAX) {
    ^
    Error compiling.
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In constructor 'MFRC522::MFRC522()':
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:16:33: error: 'UINT8_MAX' was not declared in this scope
    MFRC522::MFRC522(): MFRC522(SS, UINT8_MAX) { // SS is defined in pins_arduino.h, UINT8_MAX means there is no connection from Arduino to MFRC522's reset and power down input
    ^
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_Init()':
    C:\Users\Kishore\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:201:28: error: 'UINT8_MAX' was not declared in this scope
    if (_resetPowerDownPin != UINT8_MAX) {
    ^
    Error compiling.
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

  • @namrataghagare8527
    @namrataghagare8527 6 ปีที่แล้ว

    can I use arduino nano instead of uno? does it work? plz reply

    • @Educ8s
      @Educ8s  6 ปีที่แล้ว

      Yes you can!

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

    Hii can anyone share the full code

  • @paultremblay4836
    @paultremblay4836 6 ปีที่แล้ว

    Please build an active RFID system that can scan different rfid on the movement

    • @thepvporg
      @thepvporg 6 ปีที่แล้ว

      That's what the tutorial is about, giving you the starting point, you take it to the next level.

  • @work4muscles861
    @work4muscles861 6 ปีที่แล้ว

    -watch my new video: Arduino Joystick Tutorial | How To Control An LED with Joystick
    th-cam.com/video/xGLiS5o6LIg/w-d-xo.html
    השב

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

    how can we add more uid codes ?? please explain

    • @litloldme
      @litloldme 4 ปีที่แล้ว

      I too am curious.

  • @waqasusman8099
    @waqasusman8099 4 ปีที่แล้ว

    Hello, friends can you plz help me how to read or write rfid (rc522)reader with arduino ethernet shield

  • @onnninnn
    @onnninnn 5 ปีที่แล้ว

    how many rfid cards or uid can an arduino uno store?

    • @Educ8s
      @Educ8s  5 ปีที่แล้ว

      There is no limit, as many as the memory of it can hold. 1000-2000 or more

    • @onnninnn
      @onnninnn 5 ปีที่แล้ว

      @@Educ8s thank you

  • @TheElectricCherry
    @TheElectricCherry 4 ปีที่แล้ว

    Is there any video about this that actually explains each line and what it's for?

    • @xavierr4508
      @xavierr4508 4 ปีที่แล้ว

      Enter into the librarie's source code and look for the .h file. In it you'll find all the documentation you need. You might also read the RC532 datasheet.

  • @omaryanas435949
    @omaryanas435949 7 ปีที่แล้ว

    Nice video

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Thanks!

  • @basangsisiwtv2756
    @basangsisiwtv2756 4 ปีที่แล้ว

    sir its arduino uno r3 and rfid rc522?

  • @thedankoona_5854
    @thedankoona_5854 7 ปีที่แล้ว

    nice video. you made a typo in the title btw

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Thanks! It is now fixed!

  • @themonkey4465
    @themonkey4465 6 ปีที่แล้ว

    Do you think you could do some tutorials on some of these rfid readers I found on icstation? They have different pinouts so I was wondering if you could help some of us out by making tutorials on them. They are very unique and I think it's good to have more rfid options for projects (for example if you need a smaller rfid reader). Thank you.
    Mobile Site:
    www.icstation.com/mobile/advanced_search_result.php?search_in_description=1&keyword=Rfid
    PC Site:
    www.icstation.com/advanced_search_result.php?keywords=rfid&search_in_description=1

  • @farisizzuddin3057
    @farisizzuddin3057 5 ปีที่แล้ว

    can RC522 reader read more than one tag??

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

      Sure, but not at the same time

    • @farisizzuddin3057
      @farisizzuddin3057 5 ปีที่แล้ว

      @@Educ8s thank you

  • @ezequielpanozzo6400
    @ezequielpanozzo6400 4 ปีที่แล้ว

    podias haber ponido e codigeishion ehh la relationship de mi tio

  • @AviatorXD
    @AviatorXD 7 ปีที่แล้ว

    Are you from Greece?

    • @Xelonas
      @Xelonas 7 ปีที่แล้ว

      John Georgantas

  • @AhmedAli-sn3ty
    @AhmedAli-sn3ty 6 ปีที่แล้ว

    for attendance

  • @AndersJackson
    @AndersJackson 6 ปีที่แล้ว

    Isn't it better to define the constant #define SSD1306_128_64 in the main source RFID.c before #include , instead of edit Adafruit_SSD1306.h? That is, write this code:
    #include
    #include
    #define SSD1306_128_64
    #include
    #include
    Then the changes in the library code will not be overwritten each time you upgrade the library to a new, better bug fixed version.
    Oh, no it doesn't, there is obviously an bug in the library code. It should not override the definition. A bug fix should be posted to Adafruit if not already done.

  • @mistergears130
    @mistergears130 6 ปีที่แล้ว

    the driver is don't work -_-

  • @ashrulkhair21
    @ashrulkhair21 7 ปีที่แล้ว

    hi. did you delete my comment?

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

    Very useful, but your mouth is way to close to the mic... and then the volume got turned up.

  • @einfan5569
    @einfan5569 6 ปีที่แล้ว

    Nice Voice :D

  • @minecrafter9099
    @minecrafter9099 7 ปีที่แล้ว

    "Arduino Turorial:" Turorial, correct that on title :)

  • @themonkey4465
    @themonkey4465 6 ปีที่แล้ว

    Can you do a tutorial on this rfid module that uses i2c instead of spi?
    Mobile site:
    www.icstation.com/mobile/1356mhz-rc522-rfid-reader-writer-module-interface-card-sensor-module-p-9175.html
    Desktop Site:
    www.icstation.com/1356mhz-rc522-rfid-reader-writer-module-interface-card-sensor-module-p-9175.html

  • @alfredkasereka2083
    @alfredkasereka2083 5 ปีที่แล้ว

    Xiaomi power bank.

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

    Please use more human voice :)

  • @tanbirsohail
    @tanbirsohail 7 ปีที่แล้ว

    Is this RFID reader compatible with Arduino Pro Mini 3.3 volts?

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

      Yes, I think it works fine with 3.3V as well.