Near Field Communication (NFC) is a set of short-range wireless technologies. It's behind daily applications such as access control system and mobile payment system.
Grove NFC features a highly integrated transceiver module PN532 which handles contactless communication at 13.56MHz. You can read and write a 13.56MHz tag with this module or implement point to point data exchange with two NFCs. Grove NFC is designed to use I2C or UART communication protocols, and UART is the default mode. In addition, we assign an independent PCB antenna which can easily stretch out of any enclosure you use, leaving more room for you to design the exterior of your project.
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 |
You can still 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); void setup(void) { Serial.begin(115200); Serial.println("NDEF Reader"); nfc.begin(); } void loop(void) { Serial.println("\nScan a NFC tag\n"); if (nfc.tagPresent()) { NfcTag tag = nfc.read(); tag.print(); } delay(5000); }
Note that if using it with Seeeduino or Arduino UNO, the only way to get the return message is setting it to I2C interface bus. While using it with Mega or Leonardo, you can use UART interface bus. Ensure PN532 library and Don's NDEF libraries are downloaded for Arduino library. And you might test the example ReadTag.ino under folder example. Delete code Line 1 to Line 10 (line #else ...... and the above lines to top).
Also, you can enter the FAQ page by clicking the "FAQ" button which in the right side of product's wiki page.
Grove - NFC v1.0 EAGLE (schematic and board) files
Grove - NFC v1.1 EAGLE (schematic and board) files
PN532 Datasheet PDF
Copyright (c) 2008-2016 Seeed Development Limited (www.seeedstudio.com / www.seeed.cc)