#embedded-hal #rfid

no-std mfrc522

A platform agnostic driver to interface the MFRC522 (RFID reader/writer)

2 unstable releases

0.2.0 May 16, 2018
0.1.0 Jan 17, 2018

#282 in Hardware support

Download history 14/week @ 2019-12-01 57/week @ 2019-12-08 18/week @ 2019-12-15 4/week @ 2019-12-22 6/week @ 2019-12-29 10/week @ 2020-01-05 82/week @ 2020-01-12 15/week @ 2020-01-19 7/week @ 2020-01-26 7/week @ 2020-02-02 8/week @ 2020-02-09 11/week @ 2020-02-16 16/week @ 2020-02-23 4/week @ 2020-03-01 5/week @ 2020-03-08 7/week @ 2020-03-15

113 downloads per month
Used in stm32f1xx-hal

MIT/Apache

17KB
349 lines

mfrc522

A platform agnostic driver to interface the MFRC522 (RFID reader/writer)

MFRC522

What works

  • REQuest A
  • SELECT for single size UIDs

TODO

  • Make sure this works with the spidev crate (i.e. with the Raspberry Pi)
  • Anticollision loop -- SELECT works when there's only one nearby tag
  • Authentication (MFAuthent)
  • Reading / writing data into the tag
  • Configurable timeout
  • Make the API non-blocking and compatible with the interrupt pin
  • Support double and triple size UIDs -- I don't have hardware (tags) to test this.
  • ???

Examples

There's an example for the Raspberry Pi (3) in the examples directory. The example turns an LED on when a card is nearby and turns it off when a tag in nearby. There's a video of the example here. To reproduce the example you'll have to tweak the values of the card and tag UIDs (Unique IDentifiers).

The same example has been implemented for the Blue Pill development board. You'll find the code for that example in this branch of the blue-pill repository. If that branch is gone, check the master branch.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~280KB