hi there, Im wanting to use an RFID tag to activate a servo. I have the PN532 stacked on an arduino uno and Im looking for some eample sketches to work from. If anyone has any suggestions on where to start i would appreciate it.Thanks

// Wait for an ISO14443A type cards (Mifare, etc.). When one is found // 'uid' will be populated with the UID, and uidLength will indicate // if the uid is 4 bytes (Mifare Classic) or 7 bytes (Mifare Ultralight) Serial.print("."); success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength, 10);

thanks that worked great. I was wondering if you could tell me how to authorize only cretin RFID cards. Also before the servo is set back to the "0" position if it could check if a RFID card is still present.Thanks again for your help and hope you had a nice Thanksgiving. :D

// Wait for an ISO14443A type cards (Mifare, etc.). When one is found // 'uid' will be populated with the UID, and uidLength will indicate // if the uid is 4 bytes (Mifare Classic) or 7 bytes (Mifare Ultralight) Serial.print("."); success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength, 10);

Have you looked at the BabelFish project? That uses UIDs to trigger sounds for specific cards wen they are recognized. You might want to read through that to get an idea of how that works. Your project is not so much different. Instead of triggering sounds, you will trigger servo movement.

// repeat this for loop as many times as you have RFID cards if (cardidentifier == 2588581390) { // this is the card's unique identifier playcomplete("1.WAV"); // these are file names for the sample audio files - change them to your own file names }

if (cardidentifier == 2146122274) { playcomplete("2.WAV"); }

You will need to replace the UIDs in the "if" statements with the UIDs of your cards.Then you can replace the "playcomplete" with your servo code.