Skip to content

A user-friendly RFID library for MFRC522 RFID modules focused on access control and used in TinkerTech camps

License

Notifications You must be signed in to change notification settings

TinkerYpsi/TT_RFID

Repository files navigation

MFRC522 Access Control Library

Written by Patrick Neggie, 2018 <[email protected]>

Installation

Please download the the ZIP file to this library and extract it into your Arduino/libraries folder. Restart your Arduino IDE and open the AccessControl example for inspiration.

Features

  • Add and remove RFID tags from a list of allowed tags
  • Use a master RFID tag to control which tags are added/removed
  • Delete all allowed tags with a single function
  • Set and reset master RFID tag as much as desired
  • Crank up the range on RFID module to detect RFID tags from a distance

Functions

void initialize();				// initialize SPI and RFID module hardware
void printInitMessage();	// print to Serial that RFID is initialized
void defineMasterCard();	// defines master ID through RFID scanning
bool isMasterDefined();		// returns whether or not master ID has been defined
void toggleDeleteAllRecords(uint8_t wipeB);		// if wipeB is pressed for 10 seconds, all records are wiped
void getCardID(byte *_cardID);		// sets _cardID to be the last read ID
void toggleDeleteMasterCard(uint8_t wipeB);		// if wipeB is pressed for 10 seconds, master ID is wiped
void deleteID(byte cardID[4]);	// removes ID from list of passable IDs
void writeID(byte cardID[4]);		// adds ID to list of passable IDs
void maxRangeOn();		// turns on max range detection for RFID module

Dependencies

Note: The non-native libraries below (MFRC522 and EEPROM) have been copied into the AllLibraries branch for your convenience

  • MFRC522.h

    • From: Github Repo
    • License: Unlicense
  • EEPROM.h

    • From: Github Repo
    • Liscense: (target: Arduino) GNU Lesser General Public License 2.1
  • Arduino.h

    • From: Arduino IDE / target specific
    • License: (target: Arduino) GNU Lesser General Public License 2.1
  • SPI.h

    • From: Arduino IDE / target specific
    • License: (target: Arduino) GNU Lesser General Public License 2.1
  • stdint.h

    • From: Arduino IDE / Compiler and target specific
    • License: different

About

A user-friendly RFID library for MFRC522 RFID modules focused on access control and used in TinkerTech camps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages