# Grove NFC Tag

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/Grove-NFC_Tag_uasge.jpg)

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.

[![](https://raw.githubusercontent.com/SeeedDocument/common/master/Get_One_Now_Banner.png)](http://www.seeedstudio.com/Grove-NFC-Tag-p-1866.html)

## 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](http://wiki.seeed.cc/Grove_System/)

### Platforms Supported

## Usage

### Read/Write from Mobile

1. Download [NfcV-reader for Android](https://github.com/Seeed-Studio/NFC_Tag_M24LR6E/blob/master/Resources/NfcVreader.apk) and install it
2. We can Read/Write it from Mobile

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/NFC_Tag_1.png)

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/NFC_Tag_2.jpg)

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/NFC_Tag_3.jpg)

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/NFC_Tag_4.png)

### Control LED

1. Hardware Installation

![](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/img/Grove-NFC_Tag_Photo.jpg)

1. Download [NfcV-reader for Android](https://github.com/Seeed-Studio/NFC_Tag_M24LR6E/blob/master/Resources/NfcVreader.apk) and install it
2. Download [NFC Tag Lib](https://github.com/Seeed-Studio/NFC_Tag_M24LR6E), 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);
}
```

### Resources

* [Grove - NFC Tag.PDF](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/res/Grove-NFC_Tag_v1.0.pdf)
* [Grove - NFC Tag Eagle file](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/res/Grove-NFC_Tag_v1.0.zip)
* [M24LR64E-R datasheet.pdf](https://raw.githubusercontent.com/SeeedDocument/Grove-NFC_Tag/master/res/M24LR64E-R.pdf)
* [NfcV-reader for Android](https://github.com/Seeed-Studio/NFC_Tag_M24LR6E/blob/master/Resources/NfcVreader.apk)
* [NFC Tag M24LR6E Lib](https://github.com/Seeed-Studio/NFC_Tag_M24LR6E)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.pakronics.com.au/seed-studio/grove-modules/actuator/grove_nfc_tag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
