GithubHelp home page GithubHelp logo

rfid's Introduction

MFRC522

Arduino library for MFRC522 and other RFID RC522 based modules.

Read and write different types of Radio-Frequency IDentification (RFID) cards on your Arduino using a RC522 based reader connected via the Serial Peripheral Interface (SPI) interface.

Pin Layout

The following table shows the typical pin layout used:

  PCD Arduino
MFRC522 Uno Mega Nano v3
Signal Pin Pin Pin Pin
RST/Reset RST 9 [1] 5 [1] D9
SPI SS SDA [3] 10 [2] 53 [2] D10
SPI MOSI MOSI 11 / ICSP-4 52 D11
SPI MISO MISO 12 / ICSP-1 51 D12
SPI SCK SCK 13 / ICSP-3 50 D13
[1](1, 2) Configurable, typically defined as RST_PIN in sketch/program.
[2](1, 2) Configurable, typically defined as SS_PIN in sketch/program.
[3]The SDA pin might be labeled SS on some/older MFRC522 boards.

Hardware

There are three hardware components involved:

  1. Micro Controller:
  • An Arduino or compatible executing the Sketch using this library.
  • Prices vary from USD 7 for clones, to USD 75 for "starter kits" (which might be a good choice if this is your first exposure to Arduino; check if such kit already includes the Arduino, Reader, and some Tags).
  1. Proximity Coupling Device (PCD):
  • The PCD is the actual RFID Reader based on NXP MFRC522 Contactless Reader Integrated Circuit).
  • Readers can be found on eBay for around USD 5: search for "rc522".
  • You can also find them at several web stores, they are often included in "starter kits"; so check your favourite electronics provider as well.
  1. Proximity Integrated Circuit Card (PICC):
  • The PICC is the RFID Card or Tag using the ISO/IEC 14443A interface, for example Mifare or NTAG203.
  • One or two might be included with the Reader or "starter kit" already.

Protocols

  1. The micro controller and the reader use SPI for communication.
  • The protocol is described in the NXP MFRC522 datasheet.
  • See the Pin Layout section for details on connecting the pins.
  1. The reader and the tags communicate using a 13.56 MHz electromagnetic field.
  • The protocol is defined in ISO/IEC 14443-3:2011 Part 3.

History

The MFRC522 library was first created in Jan 2012 by Miguel Balboa (from http://circuitito.com) based on code by Dr. Leong (from http://B2CQSHOP.com) for "Arduino RFID module Kit 13.56 Mhz with Tags SPI W and R By COOQRobot".

It was translated into English and rewritten/refactored in the fall of 2013 by Søren Thing Andersen (from http://access.thing.dk).

rfid's People

Contributors

miguelbalboa avatar mdxs avatar aiolos avatar sthing avatar nicolacoppola avatar ivankravets avatar wa4osh avatar tonycallear avatar ljos avatar hectorbravo avatar jstck avatar imbaky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.