Grove - NFC

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.

Specification

Static Mode: 73mA
Write/Read Mode: 83mA

Get Started

  1. Download PN532 library and put 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into Arduino's libraries.
  2. Download [1], 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



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).

Cut following connections:
  • TP1 to UART
  • TP2 to RX
  • TP3 to TX
Solder following connections:
  • TP1 to I2C
  • TP2 to SCL
  • TP3 to SDA

Related Reading

Also, you can enter the FAQ page by clicking the "FAQ" button which in the right side of product's wiki page.

Resource

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)
This static html page was created from http://www.seeedstudio.com/wiki