PN532 NFC Module

PN532 NFC Module image

View on Amazon

Overview

The PN532 NFC module provides a powerful and flexible platform for integrating NFC and RFID capabilities into your projects. Its multi-protocol support and versatile interfaces make it suitable for various use cases, including access control, contactless payment, and data exchange.

About PN532 NFC Module

The PN532 is a widely used NFC and RFID module, offering reliable wireless data exchange for various applications.

Key Features

  • Multi-Protocol Support – Works with ISO/IEC 14443 Type A & B cards and NFC peer-to-peer communication.
  • Flexible Interfaces – Supports I2C, SPI, and UART, ensuring easy integration.
  • Versatile Applications – Ideal for access control, contactless payments, smart authentication, and data exchange.
  • Compact & Efficient – Low power consumption with a high-performance NFC controller.
Where to Buy

Get Your PN532

PN532 NFC Module

Starting from

8.00$ per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

PN532 Specifications

Complete technical specification details for PN532 NFC Module

📊 Technical Parameters

Communication Protocols I2C, SPI, UART
Operating Voltage 3.3V or 5V
Supported Standards ISO/IEC 14443 Type A & B, NFC
Operating Temperature -25°C to +85°C
Dimensions 40mm x 40mm x 4mm
Pin Configuration

PN532 Pinout

The PN532 is a versatile NFC controller supporting multiple communication protocols: I²C, SPI, and HSU (High-Speed UART). Select the mode using onboard switches (Switch 1: ON + Switch 2: OFF = I²C | Switch 1: OFF + Switch 2: ON = SPI | Both OFF = UART).

Visual Pinout Diagram

Pinout Diagram Primary
PN532 NFC Module pinout
12
Total Pins

Pin Types

Power
4
Communication
6
Control
2

Quick Tips

🔀

I²C Mode: Switch 1 ON, Switch 2 OFF - Uses SDA/SCL pins (address 0x24),⚡ SPI Mode: Switch 1 OFF, Switch 2 ON - Uses MISO/MOSI/SCK/SS pins (fastest)

📡

UART Mode: Both switches OFF - SDA becomes TX, SCL becomes RX,⚠️ Choose only ONE communication mode at a time by setting switches correctly

💡

IRQ and RSTO pins are optional but recommended for advanced applications,🔌 The module auto-detects 3.3V or 5V operation

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VCC
Power

Power supply (3.3V or 5V) - pin 1

Works with both 3.3V and 5V logic levels

2 VCC
Power

Power supply (3.3V or 5V) - pin 2

Both VCC pins should be connected for stable power

3 GND
Power

Ground connection (pin 1)

Connect to ESP32 ground

4 GND
Power

Ground connection (pin 2)

Both GND pins should be connected for stability

5 SDA
Communication

I²C Data / UART TX (mode-dependent)

I²C mode = Data line | UART mode = TX to ESP32 RX

6 SCL
Communication

I²C Clock / UART RX (mode-dependent)

I²C mode = Clock line | UART mode = RX from ESP32 TX

7 MISO
Communication

SPI Master In Slave Out

Used only in SPI mode

8 MOSI
Communication

SPI Master Out Slave In

Used only in SPI mode

9 SCK
Communication

SPI Serial Clock

Used only in SPI mode

10 SS (NSS)
Communication

SPI Slave Select / Chip Select

Used only in SPI mode

11 IRQ
Control

Interrupt output (optional)

Triggers when NFC event occurs - can improve efficiency

12 RSTO
Control

Reset control (optional)

Hardware reset for the module

3D Enclosure

Premium 3D Printed Enclosure

Protect your PN532 sensor with a custom-designed 3D printed enclosure. Professional quality, perfect fit, and ready to use.

We offer a variety of enclosures for the ESP32 C3 Super Mini, available in different colors and configurations – with or without header pins, and more! You can also choose between a hexagon-patterned lid for improved heat dispersion ❄️ or a solid lid for a sleek finish.

Perfect Fit

Custom designed

Premium Quality

High-grade materials

Durable

Long-lasting protection

Quick Setup

Easy to install

Each enclosure is carefully designed and tested to ensure perfect fit and functionality. Made with premium materials for durability and aesthetics.

Connection Guide

Wiring PN532 to ESP32

In SPI (Serial Peripheral Interface) mode, the PN532 NFC module communicates with the ESP32 using fast, synchronous data exchange. This mode is ideal for high-speed applications requiring stable communication. Set switches: Switch 1 OFF, Switch 2 ON.

Visual Wiring Diagram

Wiring Diagram Recommended
PN532 NFC Module wiring with ESP32
8
Connections

Connection Status

Required
6
Optional
2

Protocol

SPI

Pin Connections

PN532 PinConnectionESP32 PinDescription
1 VCC Required
3.3V

Power supply pin

2 GND Required
GND

Ground connection (connect both GND pins)

3 MISO Required
GPIO19

SPI Master In Slave Out

4 MOSI Required
GPIO23

SPI Master Out Slave In

5 SCK Required
GPIO18

SPI Serial Clock

6 SS (NSS) Required
GPIO5

SPI Chip Select / Slave Select

7 IRQ Optional
GPIO4

Interrupt output for NFC events

8 RSTO Optional
GPIO21

Hardware reset control

SPI mode provides the fastest communication speed compared to I²C and UART

🔧

Set Switch 1 to OFF and Switch 2 to ON for SPI mode before powering up

💡

Connect both VCC pins and both GND pins for stable power delivery

⚠️

IRQ pin can improve efficiency by eliminating polling - highly recommended

More Wiring Options

Alternative Wiring #1

In I²C (Inter-Integrated Circuit) mode, the PN532 NFC module communicates with the ESP32 using a simple two-wire interface. This mode requires fewer connections than SPI and allows multiple devices on the same bus. Set switches: Switch 1 ON, Switch 2 OFF.

Alternative Wiring Option 3
PN532 NFC Module wiring option 3
6
Connections

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections - Option 3

PN532 PinConnectionESP32 PinDescription
1 VCC Required
3.3V

Power supply pin

2 GND Required
GND

Ground connection (connect both GND pins)

3 SDA Required
GPIO21

I²C Data line (default ESP32 SDA)

4 SCL Required
GPIO22

I²C Clock line (default ESP32 SCL)

5 IRQ Optional
GPIO4

Interrupt output for NFC events

6 RSTO Optional
GPIO5

Hardware reset control

📡

I²C mode uses only two data lines (SDA & SCL) - ideal for minimal wiring

🔧

Set Switch 1 to ON and Switch 2 to OFF for I²C mode (address 0x24)

🔗

Multiple I²C devices can share the same bus with different addresses

💡

Pull-up resistors (4.7kΩ) on SDA/SCL are usually built-in on ESP32

Alternative Wiring #2

In HSU (High-Speed UART) mode, the PN532 NFC module communicates with the ESP32 using standard serial UART interface. This mode is simple and widely supported across microcontrollers. Set switches: Both switches OFF.

Alternative Wiring Option 4
PN532 NFC Module wiring option 4
6
Connections

Connection Status

Required
4
Optional
2

Protocol

UART

Pin Connections - Option 4

PN532 PinConnectionESP32 PinDescription
1 VCC Required
3.3V

Power supply pin

2 GND Required
GND

Ground connection (connect both GND pins)

3 SDA (TX) Required
GPIO16

UART TX from PN532 to ESP32 RX

4 SCL (RX) Required
GPIO17

UART RX from ESP32 TX to PN532

5 IRQ Optional
GPIO4

Interrupt output for NFC events

6 RSTO Optional
GPIO5

Hardware reset control

📡

UART mode provides standard serial communication - widely compatible

🔧

Set both switches to OFF for HSU (UART) mode

High-speed data transfer suitable for real-time NFC applications

💡

SDA pin becomes TX, SCL pin becomes RX in UART mode

Help & Support

PN532 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

PN532 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up PN532

The ESP32 PN532 NFC Module is a powerful NFC sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the PN532 into your ESP32 project and bring your ideas to life!

Similar Options

Explore Alternative Sensors

Looking for alternatives to the PN532? Check out these similar sensors that might fit your project needs.

RC522 RFID/NFC Module

RC522 RFID/NFC Module

NFC SPI,I2C,UART

The RC522 RFID/NFC module offers an affordable and reliable solution for integrating NFC and RFID functionality into your projects. Its...

View Details
RDM6300 RFID Reader Module

RDM6300 RFID Reader Module

NFC UART

The RDM6300 is a simple and reliable 125kHz RFID reader module suitable for a wide range of identification and access control applications....

View Details