Reland Sun PN532

Contents

Reland Sun PN532 Module Kit User Manual

NFC/RFID Reader Module with I2C, SPI, and HSU Interfaces

1. Introduction

This manual provides detailed instructions for the Reland Sun PN532 Module Kit. The PN532 is a highly integrated NFC reader module that supports various communication protocols, making it suitable for a wide range of NFC and RFID applications. It offers flexible interface options including I2C, SPI, and High Speed UART (HSU).

Reland Sun PN532 Module Kit showing the PN532 board, a white S50 card, and a blue key fob.

Figure 1: Reland Sun PN532 Module Kit components. This image displays the compact PN532 module board, a standard white S50 RFID card, and a blue RFID key fob, illustrating the complete kit.

2. Package Contents

Please verify that all items are present in your package:

  • 1x PN532 NFC RFID Module
  • 1x S50 White Card (RFID Card)
  • 1x Key Card (RFID Key Fob)
  • Connection Cables/Headers (may vary by kit version)

3. Key Features

  • Compact Design: Small dimensions for easy integration into various projects.
  • Multiple Interfaces: Supports I2C, SPI, and HSU (High Speed UART) communication protocols, easily switchable.
  • NFC/RFID Functionality: Capable of reading and writing NFC/RFID tags, and P2P (Peer-to-Peer) communication with other NFC devices.
  • Integrated Level Shifter: On-board level shifter provides standard 5V TTL for I2C and UART, and 3.3V TTL for SPI, ensuring compatibility with various microcontrollers.
  • Broad Compatibility: Compatible with various microcontrollers like Arduino, Raspberry Pi, etc.

4. Setup Guide

4.1. Interface Selection

The PN532 module supports three communication interfaces: I2C, SPI, and HSU. The interface is typically selected using onboard jumpers or switches. Refer to the module's silkscreen for specific jumper configurations.

  • I2C Mode: Often selected by default or specific jumper settings. Requires SDA, SCL, VCC, GND connections.
  • SPI Mode: Requires MOSI, MISO, SCK, SS (Slave Select), VCC, GND connections.
  • HSU (UART) Mode: Requires TX, RX, VCC, GND connections.

Note: Ensure the correct interface is selected before powering on the module to prevent unexpected behavior.

4.2. Hardware Connection

Connect the PN532 module to your microcontroller (e.g., Arduino) according to the chosen interface. Below are general connection guidelines:

4.2.1. Common Connections (All Modes)

  • VCC: Connect to 3.3V or 5V power supply from your microcontroller (the module has an onboard level shifter).
  • GND: Connect to the ground of your microcontroller.

4.2.2. I2C Mode Connections

  • SDA: Connect to the SDA pin of your microcontroller (e.g., A4 on Arduino Uno).
  • SCL: Connect to the SCL pin of your microcontroller (e.g., A5 on Arduino Uno).

4.2.3. SPI Mode Connections

  • MOSI: Connect to the MOSI pin of your microcontroller.
  • MISO: Connect to the MISO pin of your microcontroller.
  • SCK: Connect to the SCK pin of your microcontroller.
  • SS (Slave Select): Connect to a digital pin on your microcontroller (e.g., D10 on Arduino Uno).

4.2.4. HSU (UART) Mode Connections

  • TX: Connect to the RX pin of your microcontroller.
  • RX: Connect to the TX pin of your microcontroller.

4.3. Software Setup (Arduino Example)

For Arduino users, the Adafruit PN532 library is highly recommended. Follow these steps:

  1. Open the Arduino IDE.
  2. Go to Sketch > Include Library > Manage Libraries...
  3. Search for "PN532" and install the "Adafruit PN532" library.
  4. Explore the examples provided with the library (File > Examples > Adafruit PN532) to get started with reading and writing NFC tags.

5. Operating Instructions

5.1. Reading NFC/RFID Tags

  1. Ensure the PN532 module is correctly wired and powered.
  2. Upload a tag reading sketch (e.g., readMifare.ino from the Adafruit PN532 library examples) to your microcontroller.
  3. Open the Serial Monitor in your Arduino IDE.
  4. Place an S50 card or key fob near the PN532 antenna. The module will attempt to detect and read the tag's UID (Unique Identifier) and other data, which will be displayed in the Serial Monitor.

5.2. Writing NFC/RFID Tags

  1. Use a tag writing sketch (e.g., writeMifare.ino or ndef_write.ino from the library examples).
  2. Modify the sketch to write your desired data to the tag.
  3. Upload the sketch to your microcontroller.
  4. Place a compatible NFC/RFID tag (like the included S50 card) near the PN532 antenna. The module will attempt to write the data to the tag. Confirm success via the Serial Monitor.

5.3. Peer-to-Peer (P2P) Communication

The PN532 supports P2P communication, allowing it to exchange data with other NFC-enabled devices (e.g., smartphones, other PN532 modules). This typically involves setting the module into initiator or target mode and using NDEF (NFC Data Exchange Format) messages. Refer to the Adafruit PN532 library examples for P2P communication for detailed implementation.

6. Maintenance

  • Handling: Handle the module with care to avoid damaging the electronic components. Avoid static discharge.
  • Cleaning: If necessary, gently clean the module with a dry, soft cloth. Do not use liquids or abrasive cleaners.
  • Storage: Store the module in a dry, cool environment, away from direct sunlight and extreme temperatures.
  • Power Supply: Always ensure the correct voltage is supplied to the module (3.3V or 5V) to prevent damage.

7. Troubleshooting

ProblemPossible CauseSolution
Module not detected / No response
  • Incorrect wiring
  • Wrong interface selected (I2C/SPI/HSU)
  • Power supply issue
  • Incorrect library initialization
  • Double-check all connections (VCC, GND, data lines).
  • Verify jumper settings for the chosen interface.
  • Ensure stable 3.3V or 5V power.
  • Confirm correct constructor call in code (e.g., for SPI, I2C).
Cannot read tags
  • Tag out of range
  • Incompatible tag type
  • Antenna interference
  • Place tag closer to the antenna.
  • Ensure the tag is compatible with PN532 (e.g., Mifare Classic, NFC Forum Type 1-4).
  • Keep the module away from metal objects or other RF sources.
Cannot write to tags
  • Tag is write-protected
  • Insufficient power during write operation
  • Incorrect data format
  • Use a writable tag. Some tags are read-only.
  • Ensure stable power supply.
  • Verify the data format and block addresses in your code.

8. Specifications

FeatureDescription
ModelPN532
Operating Voltage3.3V - 5V DC
Communication InterfacesI2C, SPI, HSU (High Speed UART)
Operating Frequency13.56 MHz
Supported ProtocolsISO/IEC 14443 Type A & B, Mifare, FeliCa, NFCIP-1 (P2P)
Read RangeUp to 5-7 cm (depending on tag and antenna)
On-board FeaturesLevel shifter, Antenna
DimensionsCompact, suitable for embedding (exact dimensions may vary slightly by manufacturer)

9. Warranty and Support

This product is covered by a standard manufacturer's warranty against defects in materials and workmanship. For specific warranty terms and conditions, please refer to the retailer or manufacturer's official website.

For technical support, troubleshooting assistance, or further inquiries, please contact your point of purchase or refer to online community forums and resources related to the PN532 module. Source · https://manuals.plus/asin/B09WRSM3RN

© 2023 Reland Sun. All rights reserved.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Rate this product if you’ve used it

Was this page helpful?