element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RFID or NFC
  • Challenges & Projects
  • Project14
  • RFID or NFC
  • More
  • Cancel
RFID or NFC
Project14: RFID or NFC Competition PiBook Tracker : Blog #02-- Hardware setup and initial PN7120 driver testing
  • Blog
  • Forum
  • Documents
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RFID or NFC to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: flyingbean
  • Date Created: 22 Nov 2022 3:34 AM Date Created
  • Views 7186 views
  • Likes 7 likes
  • Comments 0 comments
  • rfidornfcch
  • nfc
Related
Recommended

PiBook Tracker : Blog #02-- Hardware setup and initial PN7120 driver testing

flyingbean
flyingbean
22 Nov 2022

 I am going to demonstrate how to use PN7120/ with NTAG215 in this blog.

I ordered NTAG215 chips from eBay and received them this week. It is time to set up the hardware on my bench now. I followed the instructions (Ref[4])from NXP community to setup the platform PN7210 controller on a Raspberry Pi 3B as below:

image

Step #01: Setup Rasbian and I2C port on Raspberry Pi 3B. If you are very familiar with Rasbian, please skip this step

a. Visiting Rasberry Pi OS website: https://www.raspberrypi.com/software/

Download Raspberry Pi Imager for Windows 10: I downloaded imager_1.7.3.exe.

After I installed imager_1.7.3.exe, I selected Raspberry Pi OS(32-bit) and SDHC card to generate a Rasbian SD card.

image

It takes about 5 minutes to create a Rasbian SD card.

b. Install Rasbian from the SD card

Run “sudo raspi-config” and select “3 Interface Options” as below:

image

The snapshot telling me that my Raspberry Pi hardware version is Raspberry Pi 3 Model B Plus Rev1.3.

Then select “I5 I2C …”

image

Select “Yes” from this pop-up menu to confirm that I2C interface on Raspberry Pi is populated.

image

After selecting I2C interface, use right arrow to select <Finish> button. Finally reboot Raspberry Pi.

Verify I2C interface from Raspbian OS with the command

$ ls /dev/*i2c*

Step #02: Running out-of-box PN7120 applications

a. Install tools for PN7210 driver on Raspberry Pi

$ sudo apt-get install autoconf automake libtool git

image

b. Clone NXP PN7120 from NXP Github

$ git clone https://github.com/NXPNFCLinux/linux_libnfc-nci.git

image

c. Configure the library

$ cd linux_libnfc-nci

$ ./bootstrap

$ ./configure –enable-alt

image

d. Build and install the library

Execute the commands (take up to 5 minutes to build libraries)

$ make

$ sudo make install

$ export LD_LIBRARY_PATH=/usr/local/lib

image

Step #03: Testing eBay NTAG215 chips

Run demo application in poll mode executing the command:

$ nfcDemoApp poll

 imageimage

 

It looks the PN7120 controller working as expected on Raspberry Pi platform now. My next step is to use Python to call NXP PN7210 driver which will pave the path for building  PiBook Tracker software frame work.

Appendix #01:  NTAG215 NFC PVB Coins Chip from eBay:

 image

Ref[1]: https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/nfc-controller-with-integrated-firmware-and-nci-interface-for-home-appliances:PN7120

Ref[2]: https://www.nxp.com/products/rfid-nfc/nfc-hf/ntag-for-tags-labels/ntag-213-215-216-nfc-forum-type-2-tag-compliant-ic-with-144-504-888-bytes-user-memory:NTAG213_215_216

Ref[3]: https://www.nxp.com/design/training/nfc-use-cases:TIP-NFC-USE-CASES

Ref[4]: https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Easy-set-up-of-NFC-on-Raspberry-Pi/ta-p/1099034

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube