pn532 rfid/nfc shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
dennisbuter
 
Posts: 8
Joined: Fri Sep 27, 2013 1:56 pm

Re: pn532 rfid/nfc shield

Post by dennisbuter »

figured it out...
Had to decipher the library file and NXP data-sheet a bit.
You can block the "success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength);" call and wait for an input from the PLC...simple fix, just didn't understand how it worked.
Also needed to add "nfc.setPassiveActivationRetries(0x05);" to get the reader to exit its continuous loop when a card wasn't present.
Now I have control of the trigger event. Unfortunately I can only read the tags that I have one time per RF field entry.
I may dig a bit deeper to see if I can disable the readers field as well, which would allow multiple reads of the same tag of this type.

User avatar
amalraj
 
Posts: 1
Joined: Thu Feb 02, 2017 7:52 am

Re: pn532 rfid/nfc shield

Post by amalraj »

Im using Arduino UNO along with PN532 If my uid value is displayed like this: 0*25 0*A8 0*D4 0*65 and if i have to make a relay go high when this particular card uid is detected, then how can this be done?

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: pn532 rfid/nfc shield

Post by adafruit_support_bill »

The code in this tutorial shows how to recognize specific UIDs. https://learn.adafruit.com/nfc-ring-pas ... w=all#code

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

Return to “Arduino Shields from Adafruit”