Need help with MFRC522-python?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mxgxw
481 Stars 383 Forks GNU Lesser General Public License v3.0 35 Commits 65 Opened issues

Description

A small class to interface with the NFC reader Module MFRC522

Services available

!
?

Need anything else?

Contributors list

# 116,610
C++
C
Shell
14 commits
# 225,672
Python
5 commits
# 221,884
HTML
aggrega...
prometh...
query-e...
2 commits
# 46,283
oauth2
swagger
CSS
C
1 commit
# 359,874
Python
Objecti...
1 commit
# 313,539
CSS
PHP
Shell
1 commit
# 367,711
Python
1 commit
# 238,195
Python
sqlalch...
flask-s...
Flask
1 commit

MFRC522-python

A small class to interface with the NFC reader Module MFRC522 on the Raspberry Pi. This is a Python port of the example code for the NFC module MF522-AN.

Important notice: This library has not being actively updated in almost four years. It might not work as intended on more recent Raspberry Pi devices. You might want to take a look to the open pull-requests and forks to see other implementations and bug-fixes.

Requirements

This code requires you to have SPI-Py installed from the following repository: https://github.com/lthiery/SPI-Py

Examples

This repository includes a couple of examples showing how to read, write, and dump data from a chip. They are thoroughly commented, and should be easy to understand.

Pins

You can use this image for reference.

| Name | Pin # | Pin name | |:------:|:-------:|:------------:| | SDA | 24 | GPIO8 | | SCK | 23 | GPIO11 | | MOSI | 19 | GPIO10 | | MISO | 21 | GPIO9 | | IRQ | None | None | | GND | Any | Any Ground | | RST | 22 | GPIO25 | | 3.3V | 1 | 3V3 |

Usage

Import the class by importing MFRC522 in the top of your script. For more info see the examples.

License

This code and examples are licensed under the GNU Lesser General Public License 3.0.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.