2016-08-19 10 views
0

NFCシールドとarduino unoの間の接続を確立しようとしています。私はseeedstudio nfc shield v2.0を使用しています。Arduino Uno&NFC Shield

必要なライブラリをすべてアップロードしました。しかし、このコードスニペットを試したところ、

#include <SPI.h> 
#include "PN532_SPI.h" 
#include "PN532.h" 
#include "NfcAdapter.h" 

PN532_SPI interface(SPI, 10); // create a PN532 SPI interface with the SPI CS terminal located at digital pin 10 
NfcAdapter nfc = NfcAdapter(interface); // create an NFC adapter object 

void setup(void) { 
    Serial.begin(115200); // begin serial communication 
    Serial.println("NDEF Reader"); 
    nfc.begin(); // begin NFC communication 
} 

void loop(void) { 

Serial.println("\nScan an NFC tag\n"); 

if (nfc.tagPresent()) // Do an NFC scan to see if an NFC tag is present 
{ 
    NfcTag tag = nfc.read(); // read the NFC tag into an object, nfc.read() returns an NfcTag object. 
    tag.print(); // prints the NFC tags type, UID, and NDEF message (if available) 
} 
    delay(500); // wait half a second (500ms) before scanning again (you may increment or decrement the wait time) 
} 

私は、エラーメッセージが表示されました:

NDEFリーダー がPN53xボードに

を見つけることができませんでした誰もが私の問題についてどんな考えを持っていますか?私は何をすべきか?

サンキュー

答えて

0

PN53xボードは、それが(例えば電話番号など)他のNFCリーダーで読み取ることができないNFCリーダー、です。 NFCにはReaderとTagという2つのモードがあります。 タグはリーダーで読み取ることができます。

PN53xボードを使用してnfcタグを読み取ります。

関連する問題