PN7150 is a Plug-and-Play all-in-one NFC solution for easy integration into any OS environment like Linux and Android, reducing Bill of Material (BoM) size and cost. The embedded Arm® Cortex®-M0 microcontroller core is loaded with the integrated firmware, simplifying the implementation as all the NFC real-time constraints, protocols and the device discovery (polling loop) are processed internally. In few NCI commands, the host SW can configure the PN7150 to notify for card or peer detection and start communicating with them.
It has the following salient features:
Full NFC forum compliancy with small form factor antenna
Embedded NFC firmware providing all NFC protocols as pre-integrated feature
Direct connection to the main host or microcontroller, by I2C-bus physical and NCI protocol
Ultra-low power consumption in polling loop mode
Highly efficient integrated power management unit (PMU) allowing direct supply from a Battery
The hardware connections are simple. Both the EVKB-IMXRT1060 board and OM5578/PN7150ARD board have an Arduino interface. So, mount the PN7150ARD board with male Arduino connector onto the female Arduino connector of the EVKB-IMXRT1060 board.
Running the Demo
If this is the first time you’re using EVK-MIMXRT1060 board, follow the getting started guide first:i.MX RT1060 Evaluation Kit | NXP . Make sure to install the SDK package for EVK-MIMXRT1060 board which is required for the project to run.
Download the ‘evkbimxrt1060_PN7150’ package which you will find attached to this post.
Now that the package has been imported to the MCUXpresso IDE (via drag and drop), click on Debug icon from the Quickstart panel to begin a debug session. Once the debug session has started, click on the run icon to run the code:
After step 3, the project should be running now. The project contains basic discovery loop functionality. Here is how the output looks in the console tab on MCUXpresso:
Bring any NFC card near the PN7150 board’s antenna and the output console will show the detection and type of the card. For example, in the picture below, we can see that type 4 card was detected: