Skip to content
A small class to interface with the NFC reader Module MFRC522
Python Dockerfile
Branch: master
Clone or download
Pull request Compare This branch is 15 commits ahead of mxgxw:master.
Latest commit e70c533 Apr 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__ revertback Feb 1, 2019
.gitignore Added docker file Aug 5, 2017
Dockerfile Added docker file Aug 5, 2017
DoorSystem.py PEP8 check Feb 1, 2019
DoorSystem_HowTo.txt temporary update Apr 5, 2019
Dump.py Merge branch 'master' into master Mar 20, 2018
LICENSE.txt Added missing License information (LGPL v3) Mar 20, 2018
MFRC522.py revertback Feb 1, 2019
README.md Update README.md Nov 3, 2018
Read.py PEP8 check Feb 1, 2019
addCard.py PEP8 check Feb 1, 2019
requirements.txt Added docker file Aug 5, 2017

README.md

MFRC522-python

  • Update Oct 2018
    Replace spi by spidev
    Remove Hardware reset
    Remove GPIO from MFRC522
    Add DoorSystem example using a relay with mariadb sql
    Check DoorSystem_HowTo.txt

  • Update Sept 2018 Modification of the Read function to be able to get RFID Identification of 7 Bytes and 10 bytes

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.

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 None None
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.

You can’t perform that action at this time.