Gravity: UART & I2C NFC Module

SKU: DFR0231-H

Gravity: UART & I2C NFC Module uses NXP PN532, supporting MIFARE Classic/NTAG cards. It has a large PCB antenna for better range. Upgraded to Gravity PH2.0-4P (I2C/UART combo, no 2.54 headers) with a switch: UART works with USB-to-UART + PN532 software; I2C compatible with 3.3V/5V controllers (Arduino, micro:bit, ESP32/ESP8266). Ideal for contactless payment etc.

Front of Gravity NFC module with UART interface and RFID connectivity-DFRobot product sku:DFR0231-H image.
  • Docs
  • Tech Specs
  • Projects
  • 1. Getting Started

    This guide helps you get started with reading and writing data to S50 NFC cards using an NFC module and Arduino. It covers initial setup, library requirements, and provides sample code for successful NFC communication.

    2. Example Code for Arduino-Read Basic Info of NFC Card

    This demo runs on the arduino platform. Download this demo to read the basic information of the card, including UID, manufacturer, storage space, RF technology etc. Supported NFC card/tag: MIFARE Classic S50/S70, NTAG213/215/216, MIFARE Ultralight.

    3. Example Code for Arduino-Read and Write MIFARE Classic S50 NFC Card with IIC

    This demo runs on the arduino platform. Download this demo to learn how to write data to card. We can read the data on the card to see if the write is successful.

    4. Example Code for Arduino-Read and Write MIFARE Classic S50 NFC Card with IIC and Interrupt

    This demo runs on the arduino uno platform. Download this demo to learn how to read data on card and read data by interrupt. We can read the data on the card to see if the write is successful.

    5. Example Code for Arduino-Read and Write MIFARE Classic S50 NFC Card with UART

    This demo runs on the Arduino MEGA2560 platform. Download this demo to learn how to read data on card and read data through serial ports. Read the data on the card to see if the write is successful.

    Reference

    Specification

    Parameter Details
    IC NXP PN532
    Input Voltage (VCC) 3.3V~5.5V
    Interface Gravity I2C & UART (PH2.0-4P, Logic Level 0-3.3V)
    UART Baud Rate 115200 bps
    I2C Address 0x48
    Communication Frequency 13.56 MHz
    Maximum Communication Distance ≥10mm,depend on the size of the NFC card/tag
    Protocol Support - Reader/Writer Mode: ISO/IEC 14443A, ISO/IEC 14443B, MIFARE, FeliCa
    - Card Emulation Mode: ISO 14443A/MIFARE Classic 1K or 4K, FeliCa
    - Peer-to-Peer: ISO/IEC18092, ECM340
    Dimension 110 ×50 mm / 4.33×1.97 in
    Weight 20 g

    Pinout

    DFR0231-H_overview.png

    No. Label Description
    1 D/T I2C data SDA or UART transmission TXD
    2 C/R I2C clock SCL or UART receive RXD
    3 GND Power negative
    4 VCC Power positive (3.3V ~ 5.5V)
    5 / I2C/UART selector
    6 IRQ Interruption output
    7 ON Power indicator (red)
    8 / NFC antenna

    Was this article helpful?

    TOP