I could make it work.(sorry from my english..I am an uruguayan native :) )
I took my libraries from this tutorial:
http://www.instructables.com/id/NFC-Ring-Lock-Box/
Also , this are some steps that i did:
- I asigned read/write permissions to arduino libraries folder.
- Just put on libraries the same from tutorial
- I changed the conexion pin to 3.3V , not 5V from arduino to nfc reader.
- Before upload the code, y pressed arduino nano reset button some seconds!, after that y upload the code.
- I modified the code removing that was not required.
Its seems that the lines thats gets the firmware doesn´t work.
This is the code( i don´t wnow hoy to formatead it)
#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
PN532_I2C pn532i2c(Wire);
PN532 nfc(pn532i2c);
void setup() {
Serial.begin(115200);
Serial.println("Hello!");
nfc.begin();
nfc.SAMConfig(); // configure board to read RFID tags
Serial.println("Waiting for an ISO14443A card");
}
void loop() {
String ringUid;
boolean success;
uint8_t uid[] = {0, 0, 0, 0, 0, 0, 0}; // Buffer to store the returned UID
uint8_t uidLength; // Length of the UID (4 or 7 bytes depending on ISO14443A card type
success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);
if (success) {
Serial.println("Found a card!");
Serial.print("UID Length: ");
Serial.print(uidLength, DEC);
Serial.println(" bytes");
Serial.print("UID Value: ");
for (uint8_t i=0; i < uidLength; i++) {
Serial.print(" 0x");
Serial.print(uid[i], HEX);
ringUid += String(uid[i], HEX);
}
Serial.println("");
// Wait 1 second before continuing
delay(1000);
}
}
(edit) indent express train ran by @andreas