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?
Code for Adafruit PN532 NFC/RFID breakout board with Arduino
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- rswagle
- Posts: 2
- Joined: Thu Aug 07, 2014 10:36 am
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Code for Adafruit PN532 NFC/RFID breakout board with Ard
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.
- rswagle
- Posts: 2
- Joined: Thu Aug 07, 2014 10:36 am
Re: Code for Adafruit PN532 NFC/RFID breakout board with Ard
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..
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..
Please be positive and constructive with your questions and comments.