PN532 NFC RFID module for Arduino

PN532 NFC RFID Module is a highly integrated transmission module for Near Field Communication at 13.56MHz. With the mode switch on board, you can change easily between I2C, SPI, and UART modes. In addition, it supports RFID reading and writing, and NFC function with Android phone, which makes it quite convenient for wireless connection. This module is equipped with two 3mm mounting holes, of which the small dimension makes it easy for using in your project!

Adafruit has a complete library for PN532 NFC module, so we will just use its code to test the module directly.

step 1: open Arduino IDE,select Sketch->Including Library->Manage Libraries, type in PN532 to search. than you will see Adafruit PN532 searched out, and click INSTALL at the right side to start the installation.

step 4: Click at the upper right corner to open the serial monitor, and select 115200 baud.

step 5: You can see the basic information of the card here.

Test IIC Mode

Step 1: Since the SPI mode is set as default, we need to make some changes to the code before testing under I2C mode. Use "//" to comment out the line56, and activate Line 65 by removing the double slashes (comment mark) as shown below:

Step 2: Slide the switch to IIC mode on the module

Step 3: Connect the PN532 and the Uno/Mega2560 as shown below

PN532 Module

Uno/Mega2560

VCC

5V

GND

GND

SDA

A4/ pin20 Mega2560

SCL

A5 /pin21 Mega2560

RSTO

D3

IRQ

D2

Step 4: Upload the program to the board, and open the Serial Monitor. Change the baud rate to 115200, then put the blank NFC card on the PN532 NFC Module, and then you can see the data of the card as shown below: (the UID Value varies from different UID settings.)

The HC-06 is a class 2 slave Bluetooth module designed for transparent wireless serial communication. Once it is paired to a master Bluetooth device such as PC, smart phones and tablet, its operation becomes transparent to the user.
Address:
E-mail:
Tel: