Stufin
Home Quick Cart Profile

PN532 NFC-Near Field Communication RF-ID V3 Module

Buy Now on Stufin

Component Name

PN532 NFC-Near Field Communication RF-ID V3 Module

Overview

The PN532 NFC-Near Field Communication RF-ID V3 Module is a highly integrated, compact, and cost-effective solution for implementing Near Field Communication (NFC) and Radio Frequency Identification (RFID) technology in various applications. This module is based on the popular PN532 chipset from NXP Semiconductors, which provides a versatile platform for developing NFC-enabled devices.

Functionality

  • Reader/Writer Mode: Enables the module to read and write data to NFC tags, such as MIFARE Classic, MIFARE Ultralight, and ISO/IEC 14443A/B.
  • Peer-to-Peer Mode: Facilitates data exchange between two NFC-enabled devices.
  • Card Emulation Mode: Allows the module to emulate an NFC tag, enabling communication with NFC readers.
The PN532 NFC-Near Field Communication RF-ID V3 Module is designed to enable NFC communication between devices, allowing for the exchange of data, authentication, and payment transactions. It supports various NFC modes, including

The module also supports RFID functionality, allowing it to read and write data to RFID tags.

Key Features

  • High-Speed Interface: Supports SPI, I2C, and UART interfaces for easy integration with microcontrollers and other devices.
  • NFC Compliance: Compliant with NFC Forum specifications, ensuring compatibility with a wide range of NFC devices.
  • RFID Support: Supports various RFID frequencies, including 13.56 MHz, 125 kHz, and 134 kHz.
  • Multi-Tag Support: Can read and write data to multiple tags simultaneously.
  • Integrated Antenna: Features an onboard antenna, reducing the need for external components.
  • Low Power Consumption: Designed to minimize power consumption, making it suitable for battery-powered devices.
  • Operating Voltage: Supports a wide operating voltage range of 2.7V to 5.5V.
  • Small Form Factor: Compact design makes it ideal for integration into space-constrained applications.

Operating Frequency

13.56 MHz (NFC), 125 kHz/134 kHz (RFID)

Data Transfer Rate

Up to 424 kbps (NFC), up to 105 kbps (RFID)

Communication Range

Up to 10 cm (NFC), up to 1 meter (RFID)

Operating Temperature

-20C to +85C

Storage Temperature

-40C to +125C

Dimension

40 mm x 35 mm x 5 mm

Applications

The PN532 NFC-Near Field Communication RF-ID V3 Module is suitable for a wide range of applications, including

Smart Home Automation

Enables NFC-based device control and automation.

Access Control Systems

Supports secure authentication and access control using NFC and RFID technologies.

Payment Systems

Facilitates secure payment transactions using NFC-enabled devices.

Healthcare

Enables secure data exchange and tracking in healthcare applications.

Industrial Automation

Supports IoT-based industrial automation and control systems.

Overall, the PN532 NFC-Near Field Communication RF-ID V3 Module provides a comprehensive and cost-effective solution for integrating NFC and RFID technology into various applications.

Pin Configuration

  • PN532 NFC-Near Field Communication RF-ID V3 Module Pinout Explanation
  • The PN532 NFC-Near Field Communication RF-ID V3 Module is a popular IoT component used for near-field communication (NFC) and radio-frequency identification (RFID) applications. The module has a total of 8 pins, which are used for communication, power supply, and other functions. Here's a detailed explanation of each pin:
  • Pin 1: VCC
  • Function: Power supply pin
  • Description: This pin provides the power supply to the module. It should be connected to a stable 3.3V or 5V power source.
  • Connection: Connect to a 3.3V or 5V power supply line.
  • Pin 2: GND
  • Function: Ground pin
  • Description: This pin is the ground connection for the module.
  • Connection: Connect to a ground line on the circuit board or breadboard.
  • Pin 3: SCL
  • Function: Clock pin for I2C communication
  • Description: This pin is used for I2C communication and is the clock signal line.
  • Connection: Connect to the SCL pin on the microcontroller or other I2C devices.
  • Pin 4: SDA
  • Function: Data pin for I2C communication
  • Description: This pin is used for I2C communication and is the data signal line.
  • Connection: Connect to the SDA pin on the microcontroller or other I2C devices.
  • Pin 5: IRQ
  • Function: Interrupt request pin
  • Description: This pin is an interrupt request output from the PN532 module. It is used to notify the microcontroller of events such as card detection or data reception.
  • Connection: Connect to an interrupt-enabled digital input on the microcontroller.
  • Pin 6: RST
  • Function: Reset pin
  • Description: This pin is used to reset the PN532 module. A low pulse on this pin will reset the module.
  • Connection: Connect to a digital output on the microcontroller, or a push-button switch to ground for manual reset.
  • Pin 7: NC (Not Connected)
  • Function: No connection
  • Description: This pin is not used and should be left unconnected.
  • Connection: Leave unconnected.
  • Pin 8: NC (Not Connected)
  • Function: No connection
  • Description: This pin is not used and should be left unconnected.
  • Connection: Leave unconnected.
  • Connection Structure:
  • Here's a suggested connection structure for the PN532 NFC-Near Field Communication RF-ID V3 Module:
  • VCC (Pin 1) -> 3.3V or 5V power supply
  • GND (Pin 2) -> Ground
  • SCL (Pin 3) -> SCL pin on microcontroller or other I2C devices
  • SDA (Pin 4) -> SDA pin on microcontroller or other I2C devices
  • IRQ (Pin 5) -> Interrupt-enabled digital input on microcontroller
  • RST (Pin 6) -> Digital output on microcontroller or push-button switch to ground for manual reset
  • Pin 7 and Pin 8: Leave unconnected
  • Note: The connection structure may vary depending on the specific microcontroller or application requirements. Make sure to consult the datasheet and application notes for the PN532 module and the microcontroller being used.

Code Examples

PN532 NFC-Near Field Communication RF-ID V3 Module Documentation
Overview
The PN532 NFC-Near Field Communication RF-ID V3 Module is a highly integrated NFC (Near Field Communication) transceiver module that supports various NFC modes, including peer-to-peer, reader/writer, and card emulation modes. This module is based on the NXP PN532 chip and provides a convenient way to add NFC capabilities to various IoT projects.
Features
Supports NFC tags (ISO/IEC 18092, ISO/IEC 21481, and ISO/IEC 14443A/Mifare)
 Peer-to-peer mode for data exchange between two devices
 Reader/writer mode for accessing NFC tags
 Card emulation mode for emulating an NFC tag
 I2C, SPI, and UART interfaces
 Operating frequency: 13.56 MHz
 Supports various operating systems, including Android, iOS, and Windows
Hardware Connection
The PN532 NFC-Near Field Communication RF-ID V3 Module has the following pinouts:
| Pin | Function |
| --- | --- |
| VCC | Power supply (3.3V or 5V) |
| GND | Ground |
| SCL | I2C clock |
| SDA | I2C data |
| MOSI | SPI data input |
| MISO | SPI data output |
| SCK | SPI clock |
| RX | UART receive |
| TX | UART transmit |
| IRQ | Interrupt request |
Code Examples
Example 1: Reading an NFC Tag using I2C Interface (Arduino)
```cpp
#include <PN532_I2C.h>
#include <PN532.h>
PN532_I2C pn532i2c(Wire);
void setup() {
  Serial.begin(115200);
  pn532i2c.begin();
  uint32_t versiondata = pn532i2c.getFirmwareVersion();
  if (!versiondata) {
    Serial.println("Didn't find PN53x board");
    while (1); // halt
  }
}
void loop() {
  bool success;
  uint8_t uid[] = {0, 0, 0, 0, 0, 0, 0}; // Buffer to store the UID of the card
  uint8_t uidLength; // Length of the UID
  success = pn532i2c.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength);
  if (success) {
    Serial.println("Found an NFC tag:");
    for (uint8_t i = 0; i < uidLength; i++) {
      Serial.print(uid[i], HEX);
    }
    Serial.println("");
  } else {
    Serial.println("NFC tag not found");
  }
  delay(1000);
}
```
Example 2: Writing Data to an NFC Tag using SPI Interface (Raspberry Pi with Python)
```python
import spidev
import time
# SPI connection
spi = spidev.SpiDev()
spi.open(0, 0)  # CE0
# PN532 commands
PN532_COMMAND.samconfiguration = 0x02
PN532_COMMAND.readgreg = 0x06
PN532_COMMAND.writegreg = 0x08
def write_tag(uid, data):
  # Send the SAM configuration command
  spi.xfer2([PN532_COMMAND.samconfiguration, 0x01, 0x00, 0x00])
# Send the InAT command
  spi.xfer2([0x40, 0x01])
# Send the Write command
  spi.xfer2([PN532_COMMAND.writegreg, 0x06])
  spi.xfer2(uid)
  spi.xfer2(data)
# Send the Stop command
  spi.xfer2([0x70, 0x00])
uid = [0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10]  # Replace with the UID of your NFC tag
data = [0x01, 0x02, 0x03, 0x04, 0x05]  # Data to be written to the NFC tag
write_tag(uid, data)
spi.close()
```
Note: These examples demonstrate basic usage of the PN532 NFC-Near Field Communication RF-ID V3 Module and are not intended to be used in production environments without proper error handling and security measures.