PN532 RFID NFC Module with Arduino, How to use HSU UART, SPI, & I2C

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this video is brought to you by ultim365 via the world designs electronics and octopod the fastest search engine for electronic parts in today's episode I am going to use the pn532 NFC RFID module with Arduino since this is a getting started video on the pn532 RFID module so I will try my level best to extend as much as possible I will also try to make this video a simple and easy to understand as possible if you have any questions or suggestions feel free to comment below I will try to answer all your questions as soon as possible anyway I will also compare pn53 to RFID module with the most popular and well-known RFID module mfrc522 I will also try to explain the difference between pn532 and mfrc522 I will also share with you the technical specifications of pn532 so that you can decide which which one is the right RFID model for you and in the end I will explain how to interface pn53 to RFID module with the Arduino and how to write a very basic program to control an LED using RFID takes so without any further delay let's get started [Music] the components and tools used in this video can be purchased from Amazon the components purchase links are given in the description first let's start by comparing the pn53 to RFID module with the most well-known mfrc522 RFID module which I've been using for quite a long time the mfrc522 RFID module is a good choice if you are looking for an inexpensive RFID reader module that supports the myfair classic 1K and 4K chips you can read takes it up to 5 meter or 16 feet with an active antenna and 10 centimeter or 3.9 inches with a passive one it has a high speed SPI interface which makes it easy to use in embedded applications I have used it in so many projects I will add links to all the related videos in the description while on the other hand the pn53 to NFC RFID Mario V3 is a very powerful and flexible RFID module it can be used for many different applications such as Access Control time attended systems animal identification Inventory management and more it uses less power than the mfrc522 because its parts are designed for low power consumption and it is also more flexible than the mfrc5002 it has additional features such as support for a wide range of frequencies making it easier to read takes from more angles without having to move your antenna around it is compatible with all ISO 15443 A and B standards as well as the nxp's My Fair Classic 1K and 4K chips the pn532 has a high speed SPI interface and is firmware upgradable via an 80 command set it can read takes it up to 8 meters or 27 feet with an active antenna and 10 centimeter or 3.9 inches with a passive one you can even use the pn532 in Linux or Meg OS X thanks to its open source drivers the pn532 RFID module also has an i2c interface which makes it easy to use and embedded applications so if you're looking for a more advanced RFID reader Mario the pn532 is a good choice it can pretty much do it all such as read and write to takes and cards communicate with phones and act like an NFC tag if you want to do any sort of embedded NFC work this is the chip you will want to use it supports a wide range of input voltages from 2.7 to 3.6 volts and this means it can be used with all 3.3 volt and 5 volt compatible controller boards like Arduino esp32 esp8266 Raspberry Pi Raspberry Pi Pico stm32 and so on in active mode it uses 50 milliamps at 13.56 megahertz and 80 milliamps at 125 kilohertz while in sleep mode it uses only 1 micro amps for more technical specifications read my article available on electronicclinic.com I will provide a link in the description now let's go ahead and take a look at its spin out Altium 365 lets you hold the fastest design reviews ever share your designs from anywhere and with anyone with a single click it's easy leave a comment taking your teammate and they will instantly receive an email with a link to the design anyone you invite can open the design using a web browser using the browser interface you are able to comment markup cross probe inspect and more comments are attached directly to the project making them viewable with an ultimate designer as well as through the browser interface design share and manufacture all in the same space with nothing extra to install or configure connect to the platform directly from Altium designer without changing how you already design Electronics ultim 365 requires no additional licenses and comes included with your subscription plan get real-time component insights as you design with octopod built into LTM 365. octopart is the fastest search engine for electronic parts and gives you the most update part data like specs data sheets grade models and how much the part costs at different amounts Etc right in the design environment so you can focus on your designs links to the ultim designer ultium 365 and octopod are given in the description you can see all the headers are clearly labeled the pn532 NFC RFID module V3 can be interfaced with the Arduino and other controller boards using Hsu high speed uart I Square C and SPI this board has an on-board level shifter standard 5 volt TTL for I Square C and uart and 3.3 volt detail SPI anyway the i2c and Hsu high speed uart shares the same pins the Hsu mode is configured is the default mode but if you want to change the interface then you can use these toggle switches don't worry I will explain how to use all the three modes first I'll start with its default mode hseo so before I'm going to interface it with Arduino first I'm going to solder the mail headers [Music] thank you foreign [Music] thank you foreign [Music] as you can see I'm done with the soldering and now it's ready to be interfaced with Arduino so first let's go ahead and take a look at the circuit diagram the VCC and ground pins of the pn532 RFID module are connected with the Arduino 5 volt and ground pins while the TX and RX pins are connected with the Arduino D2 and D3 pins two LEDs are connected with the Arduino pins 5 and 6. these are the minimal connections that you will need to get started if you want to externally power up your Arduino board then you can use this 5 volt regulator power supply based on the lm7805 voltage regulator otherwise you can use your laptop to power up the arduator as usual I'm using my Arduino Nano development board I've connected the LEDs and pn532 RFID module is for the circuit diagram I'm sure you guys might have guessed that this setup is for the Hsu high speed UA Rd it doesn't matter if you start with Hsu i2c or SPI first you'll need to download all the required libraries you can download this WinRAR file from our website electronicclinic.com [Music] you can see inside this folder we have all the required libraries so simply copy these folders and paste it into the Arduino libraries folder [Music] foreign [Music] as you can see I already have these folders so I'm going to click on skip these files this code is written for the Hsu mode and you can see I'm using pins 3 and 2 and the LED is all connected with the Arduino pins 5 and 6. you can also use this code to find the RFID takes IDs for this simply open the serial Monitor and start scanning your RFID takes foreign [Music] s in the programming you can control certain things in my case I'm going to control two LEDs anyway I have already uploaded this program and let's watch the pn532 RFID Mario Hsu mode in action foreign [Music] I have already explained that Hsu and I do see shares the same pins this time you can see the SDA and scl pins of the pn532 RFID module are connected with Arduino A4 and A5 pins while everything remains exactly the same now you can see the SDA and scl pins are connected with the Arduino A4 and A5 pins since this time I'm using the i2c mode so I'm also going to turn on the channel 1. this time I included the i2c library I have already uploaded this program and now let's watch the pn53 to RFID module i2c mode and action [Music] [Music] foreign [Music] and start with the SPI mode if you want to use the SPI mode of the pn532 RFID module then you will need to connect sck with the Arduino pin 13 M ISO with pin 12 MOSI with pin 11 SS with pin 10 rsdo with pin 9 of the Arduino while everything else remains exactly the same I connected the pn53 to RFID module SPI pins with the Arduino as per the circuit diagram now to activate the SPI mode on the pn532 RFID module you will need to turn off the channel 1 and turn on the channel 2. this time you can see I have added the SPI Library everything else remains exactly the same I have already uploaded this program and now let's watch the pn532 RFID Mario SPI mode and action [Music] support me on patreon for more videos I hope you liked today's episode like and share this video with your friends see you in next episode and thanks for watching
Info
Channel: Electronic Clinic
Views: 21,500
Rating: undefined out of 5
Keywords: pn532 rfid, pn532, nfc rfid tutorial, pn532 rfid module, pn532 nfc rfid module, pn532 rfid module with arduino, pn532 hsu, pn532 uart, pn532 hsu uart, pn532 spi, pn532 i2c, pn532 rfid arduino programming, pn532 arduino tutorial, electronic clinic, arduino project, arduino rfid tutorial, how to use pn532 rfid module with arduino, pn532 rfid module different interfaces, pn532 interfacing with arduino, how to use pn532 rfid module, arduino, rfid module, best rfid module, tutorial
Id: pNngRs0cBgg
Channel Id: undefined
Length: 14min 15sec (855 seconds)
Published: Sun Jan 22 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.