Make a directory inside your “tessel-code” folder called “rfid”, change directory into that folder, and initialize a tessel project:
mkdir rfid; cd rfid; t2 init
Plug the RFID module into Tessel port A with the hexagon/icon side down and the electrical components on the top, then plug Tessel into your computer via USB.
Install by typing
npm install rfid-pn532 into the command line.
Rename “index.js” to “rfid.js” and replace the file’s contents with the following:
Save the file.
In your command line,
t2 run rfid.js Tap the included RFID card on the reader to get its UID!
Bonus: Change the polling rate of the RFID module so that it only checks for a card once every three seconds. (Hint: you may need to check the docs.)
To see what else you can do with the RFID module, see the module docs here.
What else can you do with a RFID module? Try a community-created project.