Problem mit NFC PN532 von Elechouse

Ich habe mir das PN532 NFC Shield von Elechouse gekauft.
Dazu habe ich diesen Code benutzt:

Angeschlossen habe ich das Shield mit I2C an meinem Arduino wie folgt:
VCC - 5V
GND - GND
SDA - A4
SCL - A5

Leider kommt immer folgender Fehler:
Didn't find PN53x board

Warum postest du keinen Link des Produktes ?
Und immer den Sketch hier posten, dann brauchen wir nicht danach suchen.

Poste den bitte in Code-Tags.

Verwende dazu die Schaltfläche </> oben links im Editorfenster.
Das kannst du auch nachträglich machen.
Dazu den Sketch markieren und die Schaltfläche klicken.

Damit wird dieser für alle besser lesbar.

Und für I2C immer Pullup-Widerstände verwenden.

Oh sorry Link zum Produkt:
https://www.amazon.de/dp/B01GJX7F9K/ref=cm_sw_r_cp_api_yFvQzb6X1RWSK

Und Code:

/**************************************************************************/
/*! 
    This example will attempt to connect to an ISO14443A
    card or tag and retrieve some basic information about it
    that can be used to determine what type of card it is.   
   
    Note that you need the baud rate to be 115200 because we need to print
    out the data and read from the card at the same time!
    To enable debug message, define DEBUG in PN532/PN532_debug.h
    
*/
/**************************************************************************/


/* When the number after #if set as 1, it will be switch to SPI Mode*/
#if 0
  #include <SPI.h>
  #include <PN532_SPI.h>
  #include "PN532.h"

  PN532_SPI pn532spi(SPI, 10);
  PN532 nfc(pn532spi);

/* When the number after #elif set as 1, it will be switch to HSU Mode*/
#elif 0
  #include <PN532_HSU.h>
  #include <PN532.h>
      
  PN532_HSU pn532hsu(Serial1);
  PN532 nfc(pn532hsu);

/* When the number after #if & #elif set as 0, it will be switch to I2C Mode*/
#else 
  #include <Wire.h>
  #include <PN532_I2C.h>
  #include <PN532.h>
  #include <NfcAdapter.h>
  
  PN532_I2C pn532i2c(Wire);
  PN532 nfc(pn532i2c);
#endif
  
void setup(void) {
  Serial.begin(115200);
  Serial.println("Hello!");

  nfc.begin();

  uint32_t versiondata = nfc.getFirmwareVersion();
  if (! versiondata) {
    Serial.print("Didn't find PN53x board");
    while (1); // halt
  }
  
  // Got ok data, print it out!
  Serial.print("Found chip PN5"); Serial.println((versiondata>>24) & 0xFF, HEX); 
  Serial.print("Firmware ver. "); Serial.print((versiondata>>16) & 0xFF, DEC); 
  Serial.print('.'); Serial.println((versiondata>>8) & 0xFF, DEC);
  
  // Set the max number of retry attempts to read from a card
  // This prevents us from waiting forever for a card, which is
  // the default behaviour of the PN532.
  nfc.setPassiveActivationRetries(0xFF);
  
  // configure board to read RFID tags
  nfc.SAMConfig();
    
  Serial.println("Waiting for an ISO14443A card");
}

void loop(void) {
  boolean success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 };  // Buffer to store the returned UID
  uint8_t uidLength;                        // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
  
  // Wait for an ISO14443A type cards (Mifare, etc.).  When one is found
  // 'uid' will be populated with the UID, and uidLength will indicate
  // if the uid is 4 bytes (Mifare Classic) or 7 bytes (Mifare Ultralight)
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);
  
  if (success) {
    Serial.println("Found a card!");
    Serial.print("UID Length: ");Serial.print(uidLength, DEC);Serial.println(" bytes");
    Serial.print("UID Value: ");
    for (uint8_t i=0; i < uidLength; i++) 
    {
      Serial.print(" 0x");Serial.print(uid[i], HEX); 
    }
    Serial.println("");
    // Wait 1 second before continuing
    delay(1000);
  }
  else
  {
    // PN532 probably timed out waiting for a card
    Serial.println("Timed out waiting for a card");
  }
}

ps
CODE TAGS kommen in eckige Klammern nicht in < >

Hast du schon mal mit dem I2C-Scanner geprüft, ob eine I2C-Adresse vorhanden ist ?

Den OnBoard-Schalter hast du richtig eingestellt ?

HotSystems:
Hast du schon mal mit dem I2C-Scanner geprüft, ob eine I2C-Adresse vorhanden ist ?

Ja, Ergebnis war das:

Scanning...
I2C device found at address 0x24  !
done

HotSystems:
Den OnBoard-Schalter hast du richtig eingestellt ?

Meinst du den am Shield?
Wenn ja, habe ich ihn richtig eingestellt.

Dann versuch mal im Setup beim Aufruf des NFC die I2C-Adresse mitzugeben.

nfc.begin(0x24);

Wenn das nicht funktioniert muss du mal in der Library nachsehen, ob da die richtige I2C-Adresse eingetragen ist.

Laut Kundenbeschreibung soll es mit der Library von Seeed klappen.
Ich vermute dass diese gemeint ist: GitHub - Seeed-Studio/PN532: NFC library using PN532 to read/write card and communicate with android
Hast Du es damit schon mal probiert?

Mit GitHub - Seeed-Studio/PN532: NFC library using PN532 to read/write card and communicate with android
Funktionierts leider auch nicht da kommt ein Fehler, dass man das nicht auf einen Arduino UNO laden kann