TOP

NFC Shield V2.0

From Wiki 来自痴汉的爱
Jump to: navigation, search

[中文]


NFC front.png NFC back.png

Contents

Introduction

Near Field Communication, NFC is a widely used technology around us. It's behind daily applications such as access control system and mobile payment system. NFC Shield 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 shield or implement point to point data exchange with NFC Shield and smart phones. In this new version, 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.

The PCB comes stuck on the shield, but you can easily peel it off.
Model: SLD01097P




Features

  • Input Voltage: 5V
  • Typical Current: 100mA
  • 5cm max effective range
  • SPI pin saving interface
  • Serve for contactless communication at 13.56MHz
  • Support P2P communication
  • Support ISO14443 Type A and Type B protocols




Interface


NFC Shield Interface.jpgNFC_Antanna_28x30.5.jpg
U1: 74VHC125PW IC, Quad Buffer with 3-STATE Outputs.
U2: PN532 IC, Near Field Communication(NFC)Controller.

SPI Interface: Used for Arduino communicates with NFC shield.

Pins usage on Arduino:

D10: SPI chip select
D11: SPI MOSI pin
D12: SPI MISO pin
D13: SPI serial clock pin

Get Started

  1. Download PN532 library and put 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into Arduino's libraries.
  2. Download Don's NDEF library, 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. The ReadTag sketch uses I2C interface by default, change code to use SPI as following.
#include <SPI.h>
#include "PN532_SPI.h"
#include "PN532.h"
#include "NfcAdapter.h"
 
PN532_SPI interface(SPI, 10);
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);
}

Resource

NFC Shield v2.0 Schematic
NFC Shield v2.0 Eagle File
PN532_SPI Library For NFC Shield v2.0
PN532 Datasheet

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Navigation
Collections
Toolbox