Code Monkey home page Code Monkey logo

tt_rfid's Introduction

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

tt_rfid's People

Contributors

patrick9958 avatar

Watchers

James Cloos avatar  avatar

Forkers

patrick9958

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.