Code for Adafruit PN532 NFC/RFID breakout board with Arduino

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rswagle
 
Posts: 2
Joined: Thu Aug 07, 2014 10:36 am

Code for Adafruit PN532 NFC/RFID breakout board with Arduino

Post by rswagle »

Recently, I purchased Adafruit PN532 NFC/RFID Breakout Board from one of the resellers in Singapore.
https://www.adafruit.com/products/364

I am planning to connect to Arduino Uno to make RFID enabled Locker door locking/unlocking mechanism. As I understand the PN532 breakout board is connected to Arduino via SPI and it needs SPI code to

1. Define a Master Card/Tag (Mirafare 13.56MHz)
2. Authenticate Door locking/unlocking using Servo motor using Non-master Tag

I tried to find a code on the internet which can connect PN532 breakout board via SPI. Can you please assist me the process and sample code to perform the required function?

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Code for Adafruit PN532 NFC/RFID breakout board with Ard

Post by Franklin97355 »

There is this https://learn.adafruit.com/adafruit-pn532-rfid-nfc and after you install the library there will be example code in the File > examples dropdown of the IDE.

User avatar
rswagle
 
Posts: 2
Joined: Thu Aug 07, 2014 10:36 am

Re: Code for Adafruit PN532 NFC/RFID breakout board with Ard

Post by rswagle »

Thanks. I downloaded the library and installed under Arduino Software on MAC OS.

I could find 5 sample codes
1) iso14443a_uid
2) mifareclassic_formatndef
3) mifareclassic_memdump
4) readMifare
5) readMifareclassic

How can I use this code to create a master RFID tag and other tags?

Apart from the RFID card which has come with the kit, I have purchased MiFare Classic (13.56MHz RFID/NFC) Charm -1 KB and Clear Keychain Fob -1KB tags.

Thanks..

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”