RC522 RFID Arduino Tutorial (4$ only).

Поделиться
HTML-код
  • Опубликовано: 5 июл 2024
  • RFID RC522 Arduino Tutorial.
    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 to the serial monitor. If the UID of the tag is equal to a predefined value that is stored in Arduino’s memory, then in the serial monitor we are going to see our successful message and the green led will turn on. If the Unique ID of the card is not equal to the predefined value, then our negative message will appear on the screen and the red led will flash rapidly. Nice.
    Each RFID tag has a small chip inside. If I place a flashlight under this RFID card you can see the small chip and the coil that surrounds it. This chip does not have a battery in order to get power. It receives power from the reader, this device, wirelessly using this big coil. The reader can read a RFID card like this one from a distance up to 20mm! The same chip exists in this type of RFID tags as well. Each RFID tag has a unique number that identifies it. That’s the UID that we display on the OLED display. Except for this UID, each tag can store data. In this type of cards, we can store up to 1K of data! Impressive isn’t it? We won’t use this functionality today but will do so in a future video. Today, all we are interested in is to identify a specific card by its UID. The cost of the RFID reader and these two RFID cards is around $4.
    ==================================================
    Library for this RFID Module.
    github.com/miguelbalboa/rfid
    ==================================================
    Check out my blog for more information about this project.
    cooltroniks.blogspot.in/2015/0...
    ==================================================
    Code for this project.
    www.dropbox.com/s/l880ryrls57...
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Make sure to Subscribe to my channel and rate the video.
  • НаукаНаука

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

  • @FaturahmanProject
    @FaturahmanProject 8 лет назад

    hey thanks for the video. but, how to add more tag?

  • @NazmulHasan-yp4vf
    @NazmulHasan-yp4vf 8 лет назад

    good tutorial ... how to control servo motor using RFID ?
    plz make tutorials

    • @CoolTroniks
      @CoolTroniks  8 лет назад

      +Nazmul Hasan Thanks bro,sure i'll do

  • @ilysilyas8070
    @ilysilyas8070 8 лет назад

    Hi, thanks for the video please i need help. I want to detect and read 4 rfid card in the same time, is it possible?

    • @CoolTroniks
      @CoolTroniks  8 лет назад

      +ilys ilyas Yes,simply add your cards uid in the program.

    • @ilysilyas8070
      @ilysilyas8070 8 лет назад

      +CoolTroniks Thanks a lot for your reply and your kindness, To be more clear, what exactly i need is that with juste one rfid reader i want to detect the presence of 4 or 5 object (with rfid tags ), if one of the tags or object is missing i should know it . The distance between the objects and the reader about one Metter

    • @CoolTroniks
      @CoolTroniks  8 лет назад

      ilys ilyas You can't do that because the RFID tags works in close proximity with the RFID reader.So the Tag which is very near to the reader,will get identified one at a time.You can't read more than one tag at the same time.
      You'll need to approach a different kind of method.

  • @dardofortunato7444
    @dardofortunato7444 8 лет назад +1

    Hoy te contacto por una consulta sobre RFID, he visto en tu web que estas trabajando con arduino, la consulta es la siguiente.
    Al descargar la librería RFID:
    github.com/miguelbalboa/rfid
    me encuentro con un ejemplo que se llama RFID-Cloner, me gustaría saber si puedes ayudarme, ya que no logro hacerlo funcionar.
    Si es posible te paso los errores
    Saludos Dardo

  • @999monkeymonkey
    @999monkeymonkey 8 лет назад

    hi great video, i would like to be able to open a linear actuator door lock with lets say card
    named A1 and then when i decide its time to lock it again i will scan
    card A1 again and it will lock the door up again. im not sure how to
    type the code for that into your sketch file? i also tried the following
    sketch file attached below and this one auto locks up again
    aswell...but i want to control it myself with one card. can you help? many thanks github.com/omersiar/RFID522-Door-Unlock/blob/master/EEPROM/EEPROM.ino

    • @CoolTroniks
      @CoolTroniks  8 лет назад

      +999monkeymonkey Very easy to do, you only need one if statement and that's it, Inside the if statement do an invert on your digital pin.
      example: yourVariable = !yourVarible;
      digitalWrite(yourDigitalpin, yourVariable);
      But its not a good choice,because the lock itself will be On Unlocking Your door.Electric usage will be more.
      Better approach would be to scan your card, the door stays unlock for 5 seconds and then goes back to lock again.This will ensure your door will stay on for 5 seconds and goes back to normal.
      hope that helps

    • @999monkeymonkey
      @999monkeymonkey 8 лет назад

      oh ok, thanks for your help and quick reply! i will give it a go! cheers