nRF5 SDK v17.1.0
Adafruit Tag Reader Example
This information applies to the nRF52832 SoC only.

The NFC Adafruit Tag Reader Example shows how to use the Adafruit NFC Shield library in combination with the Type 2 Tag parser, Type 4 Tag NDEF detection procedure, and the Message and record parser to create an NFC polling device. This device can then be used to read and parse the content of an NFC Type 2 Tag or Type 4 Tag.

The example requires the Adafruit PN532 NFC Shield.

When the example application starts, it initializes the Adafruit PN532 NFC Shield and waits for a Type 2 Tag or a Type 4 Tag to appear in the field. When a tag is detected, the application identifies its type, then reads it, and parses its content. After successful parsing, the tag content is printed on the serial port.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\nfc\adafruit_tag_reader

Note
This application is not power optimized!

Testing

Test the Adafruit Tag Reader Example application by performing the following steps:

  1. Compile and program the application. Make sure that the proper macros are defined in sdk_config.h to enable logging output.
  2. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None
  3. Touch the Adafruit PN532 NFC Shield with a Type 2 Tag or a Type 4 Tag. You can use one of the other NFC examples as a tag (for example, the Launch App Example or the URI Message Example).
  4. Observe the output on the serial port. The content of the tag is printed there.
  5. After a little delay, the tag can be read again.

Documentation feedback | Developer Zone | Subscribe | Updated