🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    NFC PN532 grove v1.1 - M5PAPER

    Modules
    2
    2
    3.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gael
      last edited by

      hello
      i want to connect a NFC PN532 grove to my M5paper on the UART PORT C
      i installed the library : https://wiki.seeedstudio.com/Grove_NFC/
      but i have this error : Didn’t find PN53x board

      this is my code :
      #include <NfcAdapter.h>
      #include <PN532/PN532/PN532.h>
      #include <M5EPD.h>

      #include <PN532/PN532_SWHSU/PN532_SWHSU.h>
      #include "SoftwareSerial.h"
      //HardwareSerial Serial1(1);

      #define RX_PIN 18
      #define TX_PIN 19
      #define BAUD_RATE 57600
      SoftwareSerial SWSerial(RX_PIN, TX_PIN);
      PN532_SWHSU pn532swhsu(SWSerial);
      NfcAdapter nfc(pn532swhsu);

      void setup(void) {
      M5.begin();
      Serial1.println("NDEF begin");
      //delay(5000);
      Serial1.begin(9600, SERIAL_8N1,RX_PIN, TX_PIN);
      // Serial1.begin(BAUD_RATE, RX_PIN, TX_PIN, SWSERIAL_8N1, false, 95, 11);
      Serial1.println("NDEF Reader");
      nfc.begin();
      }

      void loop(void) {
      SERIAL.println("\nScan a NFC tag\n");
      if (nfc.tagPresent()) {
      NfcTag tag = nfc.read();
      tag.print();
      }
      //delay(5000);
      M5.update();
      delay(100);
      }

      1 Reply Last reply Reply Quote 0
      • ZontexZ
        Zontex
        last edited by

        Hello,
        the NFC PN532 is a grove sensor and not an M5Stck sensor thus we don't support it and not familiar with the way their product works, I suggest you to contact seed studio regarding this issue.

        Where did you get the software? I can see it's m5 combined with the seeedstudio sensor, did you made it yourself?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post