RFID - MFRC522

RFID Reader

Plugin details

Type: RFID

Name: MFRC5222

Status: COLLECTION C

GitHub: P111_RC522_RFID.ino

Maintainer: TD-er, twinbee77, tonhuisman

Used libraries: https://github.com/miguelbalboa/rfid (local copy)

Description

This SPI device reads the tag ID from Mifare tags, cards and stickers using the NXP MFRC522 NFC chip.

The value is placed in the Tag variable, and can be read from rules and sent to controllers.

Settings

../_images/P111_Settings.png

Name: The name for this task, should be unique.

Enabled: Allows to enable/disable the device.

This device is connected via SPI, so the SPI interface should be enabled on the Hardware tab. There, also the common SPI pin numbers are shown. CS and other optional pin configurations are to be set in the device cconfiguration.

The MFRC522 needs at least the CS pin configured, the RST (Reset) pin is optional.

CS Pin: The Chip Select signal, often labeled SDA on the board.

RST Pin: Optional pin that is pulled low when communication with the device fails a few times. Usually labeled RST on the board.

Tag removal mode After scanning a tag, it can be automatically removed (reset). There are 2 removal modes, ‘None’ and ‘Autoremove after Time-out’ (default).

Tag removal Time-out (Default 500 mSec) The timeout in milli seconds (range 0 - 60000) after which the last Tag will be automatically removed, if the Time-out option is selected.

Value to set on Tag removal (Default 0) Set a value to the Tag when the previous tag is removed. (Range 0 to 2147483647 as larger values are difficult to store in settings.)

Event on Tag removal (Disabled by default) When enabled sends the removed Tag value as an event and to all enabled controllers.

Supported hardware

MFRC522 based NFC RFID reader connected via SPI.

.

Change log

Added in version 2.0:

added 2021-02-07: Moved from PluginPlayground to main repository.

Added options for tag reset and event on tag reset.