Skip to content

Latest commit

 

History

History
130 lines (96 loc) · 6.49 KB

Grove_NFC_Tag.md

File metadata and controls

130 lines (96 loc) · 6.49 KB
name category bzurl oldwikiname prodimagename bzprodimageurl surveyurl sku tags
Grove - NFC Tag
Communication
Grove_-_NFC_Tag
Grove-NFC_Tag_uasge.jpg
101020070
grove_i2c, io_3v3, io_5v, plat_duino

Grove - NFC Tag is a highly integrated Near Field Communication Tag module,this module is I2C interface,which base on M24LR64E-R,M24LR64E-R have a 64-bit unique identifier and 64 -Kbit EEPROM.Grove - NFC Tag attach 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.

Specifications

  • Working Voltage:5V or 3V3
  • Working Current<1mA
  • Effective range<2cm
  • Serve for contactless communication at 13.56MHz
  • ISO 15693 and ISO 18000-3 mode 1 compatible
  • 64-bit unique identifier (UID)
  • Read Block & Write (32-bit blocks)
  • Grove I2C Interface

!!!Tip More details about Grove modules please refer to Grove System

Platforms Supported

Arduino Raspberry Pi BeagleBone Wio LinkIt ONE

!!!Caution The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

Usage

Read/Write from Mobile

  1. Download NfcV-reader for Android and install it
  2. We can Read/Write it from Mobile

Control LED

  1. Hardware Installation

  1. Download NfcV-reader for Android and install it
  2. Download NFC Tag Lib, rename it to NFC_Tag_M24LR6E and put it into Arduino's library .
  3. Open Arduino IDE. If Arduino IDE is already opened, restart it.
  4. In Arduino IDE, click menus: File -> Example -> NFC_Tag_M24LR6E -> ledControl
  5. Now, you can control LED from your phone.
 
#include "NfcTag.h"
#include <Wire.h>
 
NfcTag nfcTag;
int led = 5;
bool flag = false;
bool preFlag = false;
void setup(){
  Serial.begin(9600);
  pinMode(led,OUTPUT);
  nfcTag.init();
}
 
void loop(){
  flag = nfcTag.readByte(EEPROM_I2C_LENGTH-1) == 0xff?true:false;
  if(flag != preFlag){
    Serial.println("get remote NFC control signal!");
    if(flag == true){
      Serial.println("led will light up!");
      digitalWrite(led,HIGH);
    }else{
      Serial.println("led will turn dark!");
      digitalWrite(led,LOW);
    }
    preFlag = flag;
  }
  delay(5*1000);
}

Schematic Online Viewer

Resources

Tech Support

Please submit any technical issue into our forum.