Skip to content

NFC

Open from: main menu eGrove 4 / n

Unit NFC (ST25R3916) on the left Grove: read / write 13.56 MHz cards, NDEF / stored-card emulation, and read history. Uses Ex_I2C (G2=SDA, G1=SCL), same port as Radio / I2C scan.

Requires Unit NFC, not Unit RFID (U031 / 0x28). 13.56 MHz only; protected blocks need matching keys.

Screenshots

Hub / Reader / Dump

nfc-mainnfc-readnfc-donenfc-dumpnfc-write_waitnfc-write_done

History / Detail / Write / Emulate

nfc-historynfc-detailnfc-writenfc-emu

Write / Emulate setup

nfc-write-setupnfc-write-typenfc-emu-setupnfc-emu-type

Write UID / NDEF

nfc-write-uidnfc-write-ndef

Module & wiring

Plug into the left Grove (HY2.0-4P). Match silkscreen SDA / SCL / VCC / GND:

ModuleLeft Grove
SDAG2
SCLG1
VCC5V
GNDGND

On enter the Unit is initialized; failure shows unit begin failed. Do not share the Grove with GPS (GPS reuses the same pins as UART).

Views

NFC opens on the main Hub. Press r / w / l / e for Read, Write, History, Emulate. Write and Emulation open only from the Hub (wizard: saved card or custom).

ViewRole
HubLeft module status; right tiles: r READ / w WRITE / l LIST / e EMU
ReaderLeft status icon; right UID / ATQA/SAK / type / USR/TOT; blk grid aligned with the bar (green=ok / red=fail); dump pages list readable blocks only
HistoryUp to 12 recent reads (GPS-style list + scrollbar)
DetailFull record
RenameEdit a history name
WriteFrom Hub w: pick a saved card or custom (type / UID / text), then tap to write
EmulationFrom Hub e: clone a stored Type2 card, or a custom NDEF text tag

Shortcuts

Full list: h Help (multi-page).

KeyAction
hHelp
Hub r / w / l / eEnter READ / WRITE / LIST / EMU
Reader rScan until a card is found
Reader oToggle “save reads to history”
History rRename selection
History BkspDelete selection
↑ ↓ etc.Page Reader dump; select / page History or Detail
EnterHistory → Detail
During write / emu w / eLeave write session / leave emulation
ESCStep back toward Hub; from Hub leave to Grove

Default write payload is Cardputer NFC (NDEF Text). Reads / writes fail on protected sectors without the right keys.

On a MIFARE Classic read, the app first authenticates with default KeyA FFFFFFFFFFFF and reads blk 4 (sector 1, block 0), then continues with a full dump:

ResultMeaning
default keySector still uses the factory default key
Auth ErrorKey was changed (common on property access cards)
n/a (not Classic)Not Classic; probe skipped

The status line and the key row both show this result, and it is stored in History.

Emulation limits

  • Supported: MIFARE Ultralight family and NTAG 2xx (Type 2). Reads store a full page image; Hub e can replay a history card’s UID + memory.
  • Not supported: MIFARE Classic / Plus / DESFire (library listener is Type 2 only). Those records show type not emulatable (UID-only emu with a tip is possible).

Usage

  1. Plug Unit NFC into the left Grove; main menu en (or 4) to open the NFC Hub.
  2. Enter every sub-module from the Hub only: r read, w write, l history, e emulate.
  3. Hub r opens Reader and arms scanning; tap a card, then check UID / type / key probe / NDEF; arrows page the dump; o toggles auto-history.
  4. Hub l browses history; Enter for detail, r rename, Bksp delete; ESC returns to Hub.
  5. Hub w / e starts the write or emulate wizard (saved card or custom type / UID / text); finish with w / e or ESC back to Hub.
  6. Leaving the App stops scan / emulation and releases I2C.

Sparks for M5Stack Cardputer