1 The NXP PN7120 NFC controller board top is plugged into an adapter that in turn plugs into the Raspberry Pi 2 bottom

Checking Out NFC with the Raspberry Pi 2

Sept. 25, 2015
Technology Editor Bill Wong checks out NXP’s NFC PN7120 kit with the Raspberry Pi 2.

Near-field communication (NFC) is a wireless technology that can be found in most of the new smartphones. The list is rather long. It can be found in Apple’s latest iPhone 6S as well as the iPhone 6 to drive its Apple Pay service (see “Will Apple Boost NFC?” on electronicdesign.com). It is also in Samsung’s Galaxy S5 and S6. NFC readers have been cropping up in stores as credit-card kiosks are updated. These typically handle credit-card swipes, smartcards, and NFC.

Most of the major NFC players have been working on this technology for a while now, but smartphones and payment kiosks are not the only items to take advantage of NFC (see “NFC/RFID Ripe for Application Expansion” on electronicdesign.com). Now with NXP’s OM5577 Interface Board kit, developers can pair NXP’s NFC support with popular development platforms like the Raspberry Pi 2 (Fig. 1) and the BeagleBone. The kit comes with an NXP PN7120 NFC controller module that plugs into either a Raspberry Pi (Model B, B+ or 2) or BeagleBone (original or Black) expansion socket.

The kit can be used to interface with any NFC device, including NFC-enabled smartphones. The PN7210 supports the NFC Forum device requirements V1.3 compliant for all modes. It actually has its own ARM Cortex-M0 in the chip. This includes support for NFC Forum Type 1/2/3/4/5 tags. The NFC chips uses an I²C host interface and it can handle read/write, peer-to-peer, and card-emulation mode. The module has an integrated antenna.

Getting the system up and running is relatively easy since the two platforms, Raspberry Pi 2 or BeagleBone, run Linux. Just be careful plugging in the PN7210 module. The sockets are a bit tight and I tend to be a little fumble-fingered sometimes (Fig. 2). Luckily you will probably only use one of the adapters, so the module will be installed just once.

2. No, this is now how the boards are delivered. I had to straighten the header pins after bending them by accident.

The kit comes with demos and drivers for Linux and Android. I used the Raspberry Pi 2 running the Raspbien operating system. Most of the demo apps provide a text interface that is accessible via the command line shown on the HDMI driven display. I checked out the supplied demos, including ones that displayed NFC info and another for writing tag data. They also worked nicely using an SSH connection as well.

The demo source is easy enough to modify to create some interesting NFC-enabled applications, including something like an NFC-enabled television or at least a close facsimile.

Most of the heavy lifting is hidden behind the NFC chip and drivers. The advantage is that the communication is secure. NFC also has advantages over Bluetooth since pairing is not required. In fact, Bluetooth pairing is an application for NFC. 

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!