-->
Page 3 of 3

Re: WeMos D1 mini and PN532 RFID on I2C

PostPosted: Sun Apr 26, 2020 12:57 pm
by beic
The source code is in the post, but I went for SPI instead of I2C.

Re: WeMos D1 mini and PN532 RFID on I2C

PostPosted: Tue Jul 28, 2020 12:22 pm
by FFlorian
Hello, I have same issue.
Can you put the wiring diagram for SPI (PN532 <-> D1 MINI)
And the functional code

I used Adafruit_PN532 with commun exemple :
Code: Select all#define PN532_SCK (14)
#define PN532_MOSI (13)
#define PN532_SS (15)
#define PN532_MISO (12)

and my wiring is :
ESP TO PN532
    D5 to SCK
    D6 to MSO
    D7 to MOSI
    D8 to SS
    3v3 to VCC
    G to GND
all is power with USB cable (potential problem!)

Re: WeMos D1 mini and PN532 RFID on I2C

PostPosted: Tue Jan 11, 2022 6:39 am
by flez1966
I added serial print statements and i guess your problem is the exact same as mine, if the board isnt responding or wired incorrectly so it doesnt respond the nfc.begin bombs out.

Serial.println("trap9a");
nfc.begin();
Serial.println("trap9b");

9b is never printed, but i see a WDT crash.

I guess theres a loop in nfc.begin code that loops, esp doesnt perform background functions and WDT triggers.

yes i'm a noob blaming a library.....