Hi folks,
i am using a Arduino Uno R4 wifi together with a PN532 from Elechouse (NFC Module v3)
The NFC Module is set up as I2C: "ON" = up/1, "KE" = down/0.
It is connected as:
PN532 GND to Arduino GND
PN532 VCC to Arduino 3.3V
PN532 SDA to Arduino SDA
PN532 SCL to Arduino SCL
I am using this code:
#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NfcAdapter.h>
PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
String tagId = "None";
byte nuidPICC[4];
void setup(void)
{
Serial.begin(115200);
Serial.println("System initialized");
nfc.begin();
}
void loop()
{
readNFC();
}
void readNFC()
{
if (nfc.tagPresent())
{
NfcTag tag = nfc.read();
tag.print();
tagId = tag.getUidString();
}
delay(5000);
}
Serial monitor is only showing:
19:17:11.557 -> System initialized
19:17:13.039 -> Didn't find PN53x board
What am i doing wrong here?
