4
3.
Get Started
1.
Download
and put 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into
Arduino's libraries.
2.
Download
, put it into Arduino's library and rename it to NDEF.
3.
Open Arduino IDE. If Arduino IDE is already opened, restart it.
4.
In Arduino IDE, click menus: File -> Example -> NDEF -> ReadTag
5.
We used I2C interface in the libraries of NDEF, so please cut off the connection between P1 and
UART via a little knife, and solder P1 and I2C together.
Debug for Grove - NFC v1.0 : There's a bug while using I2C communication, please use jumper wires to
follow those connection
Arduino/Arduino Mega
Grove - NFC
SCL
RX
SDA
TX
GND
GND
5V
VCC
Also you can use UART interface without cutting any connection, Seeeduino Mega (Arduino Mega) or
Seeeduino lite(Arduino Leonardo) are preferred. Following are the modified program.
#include "PN532_HSU.h"
#include "PN532.h"
#include "NfcAdapter.h"
PN532_HSU interface
(
Serial1
);
NfcAdapter nfc
=
NfcAdapter
(
interface
);