![]() (Arduino Uno has only one serial interface, which is also connected to the USB port of the PC. However, here, the Arduino Uno has only one serial interface, and we want to keep it for control or debugging with the Serial Monitor, so the “SoftwareSerial” library is called to control PN532 by emulating a serial interface. The HSU interface needs only four wires to connect PN532 with Arduino (HSU uses 115200 baud rate), and in some Arduino boards (such as Leonardo, DUE, and Mega), there is more than one serial, so we can use the additional serial (serial 1) to control PN532. Now, onto a simple test sketch (code) tailored for running HSU mode with Arduino Uno. If you directly solder bare wires on top, make sure that the wires go across the antenna lines at a 90° angle. Soldering right-angled male-header pins (which come with the module) on the breakout board will ease up the jumper wire interlinks. Just take a set of breadboard jumper wires and follow the hardware setup as shown in the below table: See the partial snap of my libraries folder below:īecause the default communication mode/interface of the module is HSU, let’s continue without bearing on the selector switch right now. After downloading the zip file, extract the following six folders into Arduino’s libraries: The library supports all interfaces of PN532 and works well with Don’s NDEF Library. This new library is based on Adafruit_NFCShield_I2C, improved by Seeed Studio, with an HSU driver added by Elechouse. Now, you can download the PN532 library from here. Apart from the NFC RFID module, you need only an Arduino board to complement the test setup. Even though most of the available libraries (for PN532) are focused primarily on Arduino Mega, I still prefer the Uno, as it’s more comfortable for a beginner. ![]() I am guessing that you have an Arduino Uno board handy. Although the HSU mode is configured as the default mode, with a small on-board SMD DIP switch, it becomes pretty easy to change among I 2C, SPI, and HSU interfaces. The definition of the I 2C pins is labeled on top of the breakout board, while the HSU’s is labeled at the bottom. In the module, the I 2C and HSU share the same pins. Works as a 1443-A card or a virtual card.Standard 5-V TTL for I 2C/UART and 3.3-V TTL SPI (VCC 3.3 to 5 V).Built-in PCB antenna (covered by white paint).FeliCa cards such as RCS_860 and RCS_854.Innovision Jewel cards such as the IRT5001 card.ISO/IEC 14443-4 cards such as CD97BX, CD light, DesFire, and P5CN072 (SMX).Mifare 1K, 4K, Ultralight, and DesFire cards.Supports II2, SPI, and high-speed UART (HSU).This Arduino-compatible module has the following features: This module is built around NXP PN532, and the maker break out almost all of the I/O pins of the NXP532 chip on this little module. The most common module/breakout board is the PN532 NFC RFID module (v3) by Elechouse. Fortunately, the PN532 NFC RFID module is one of the more affordable NFC and RFID modules. NFC and RFID projects have become a huge trend, but many modules are pricey for electronics hobbyists and need a complex setup. Well, do you have an NFC project in mind? Or do you have an irresistible temptation to build your own RFID access system? In any case, this article will clear a few doubts that you may have about NFC and RFID DIY projects.įor starters, you need a pre-wired NFC RFID module as the key hardware. If you’re an active electronics hobbyist, you’re likely familiar with the terms “near-field communication” (NFC) and “radio frequency identification” (RFID).
0 Comments
Leave a Reply. |