Can we use PN7160 NFC Reader instead of PN532 Adafruit NFC Reader

Hello,

In my project, I want to use PN7160 NFC Reader instead of PN532 NFC Reader because in nRF SDK had a library for PN532 but the library is comfortable for PN7160 or not .??

Yes, i can go for PN532 also but they are not recommended for a new design by anybody. So Please let us know if it's comfortable or not.??

Thank You.

  • Yes, the nRF Connect SDK is built on the Zephyr RTOS, and all applications are built with the Zephyr RTOS in mind. 

    If you're not familiar with the nRF Connect SDK I would strongly recommend reading the introduction page of the documentation, and checking out our DevAcademy where we have some courses on how to get started with development on the nRF Connect SDK.

    You're currently basing your project on the NFC: Tag reader sample project, correct? It should already use SPI to communicate. For a simpler SPI application you can check out the JEDEC SPI-NOR sample for instance.

    Can you explain what you mean about "not getting any clock cycles"? How does the oscilloscope trace look when measuring on I.E. the lines to the ST25's crystal?

    Best regards,

    Simon

  • You're currently basing your project on the NFC: Tag reader sample project, correct? It should already use SPI to communicate. For a simpler SPI application you can check out the JEDEC SPI-NOR sample for instance.

    Yes, but i have doubts here that when i read the NFC Tag data from ST25's reader I got only "NFC Tag found" data without any nrf52832.

    Now my question is there any code snippet required to read the data from NFC Tag to ST25's reader because if this works then only i can proceed further to read the data from ST25's reader to nrf52832.

    Thank You.

  • Hello,

    Using st25's with nrf52840 dev kit can we use spi0 because spi0 in nrf52840 dev kit disabled so the library example Tag_reader is for spi0 or spi1.??

    and please confirm the nrf52840 dev kit spi 0 pins are correct.??

    SCLK-(0,27)

    MISO-(0,29)

    MOSI-(0,26)

    CS-(O,12)

    IRQ(0,3)

    OR 

    SCLK-(1,15)

    MISO-(1,14)

    MOSI-(1,13)

    CS-(0,12)

    IRQ-(0,3)

    I have connected the second spi pins which i mentioned  and in the logic analyzer i got this 

    and in NRF terminal 

  • Hi

    You can configure most of the GPIOs to work as SPI pins on the nRF52840, but on the DK some of the pins are by default set up as LEDs, buttons, etc. And I think the first one should be almost okay, except that the CS pin is by default set up as a button, so try changing it to one of the free GPIOs. Full overview, and how to gain control of the ones used for LEDs/buttons, etc. can be found in the nRF52840 DK user guide. Both the SPI0 and SPI1 instances should be usable, as the tag reader sample only uses one SPI instance at all to my knowledge. You can configure it as either.

    Best regards,

    Simon

  • Hello,

    You said first one is ok but it didn't work for me i connect the second one just now it worked for me NFC field is on now and i just tried another nrf52832 dev kit with write nfc example with an NFC connection so when i keep nrf52832 NFC to ST25 reader it reads the URL data from nrf52832 NFC to nrf62840. but now i want to send those data to nrf connect mobile app over BLE.

    So in nrf5SDK, i can use nus_send() function to send the data to app over BLE so here what API's available to send the data to app.??

    Thank You.

Related