2

I'm trying to use my Seeed Studio XIAO nRF52840 like an NFC reader and like an NFC badge (not at the same time). For this, I have bought an NFC antenna, I soldered the wires to the two slots provided below the card and I have tried the official NFC example, but it returns NFC.h: No such file or directory.

The example of the wiki:

#include <NFC.h>

void setup() { 
  NFC.setTXTmessage("Hello World!", "en");
  NFC.start();
}

void loop() {
}

But, at the top of the wiki, It's write:

NOTE The NFC function for Seeed Studio XIAO nRF52840 board is temportorily not functioning. The new wiki will be updated as soon as possible, once the new NFC library comes out.

So I did some research and couldn't find anything to solve this problem.

Have you an idea to solve my problem please ?

Thank you for your help

2 Answers 2

1

I've been trying the same thing and I've found that the XIAO-nrf52840 built in NFC capabilities with the antenna only support transmitting NFC data, but won't work as an NFC reader. So far it looks like I'll need to use a peripheral NFC reader module like the PN532. Still struggling to make even that work, but I'm getting closer!

Hope this helps

Sign up to request clarification or add additional context in comments.

1 Comment

That's indeed what I ended up doing. So I switched back to a standalone ATMega328P (for low standby power and small size) with a PN532 for NFC HCE communication. I'm still very upset that Seeed Studio sells cards that don't work as advertised.
0

The wiki says to use:

#include <NFCT.h>

1 Comment

Thanks, indeed, but it depends on the version of the card put on the IDE.The wiki version does not use the correct version (deprecated version) so I must use NFC.h

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.