I was really exited when I found this library and ordered the PN5180, hoping I could increase the range compared to my RC522.
I wired everything up as shown in the example. Since I'm using a Wemos D1 Mini Pro (ESP8266) and it's already running on 3.3V, I'm skipping the level shifter.
I've updated the three pin-outs in the example accordingly:
However, I get this output, with or without holding a card close to the reader:
Uploaded: Aug 19 2020 20:34:30
PN5180 ISO15693 Demo Sketch
----------------------------------
PN5180 Hard-Reset...
----------------------------------
Reading product version...
Product version=3.5
----------------------------------
Reading firmware version...
Firmware version=3.5
----------------------------------
Reading EEPROM version...
EEPROM version=145.0
----------------------------------
Enable RF field...
----------------------------------
Loop #0
Error in getInventory: No card detected!
IRQ-Status 0x6: [ TX IDLE ]
*** No card detected!
----------------------------------
Loop #1
Error in getInventory: No card detected!
IRQ-Status 0x6: [ TX IDLE ]
*** No card detected!
----------------------------------
Loop #2
Error in getInventory: No card detected!
IRQ-Status 0x6: [ TX IDLE ]
*** No card detected!
----------------------------------
The loop is insanely fast, so it's not waiting for the card or anything...
As mentioned in other issues I've tried to uncomment DEBUG on PN5180ISO15693.cpp, but then I get this compiling error:
In file included from C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\PN5180ISO15693.cpp:23:0:
C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\PN5180ISO15693.cpp: In member function 'ISO15693ErrorCode PN5180ISO15693::issueISO15693Command(uint8_t*, uint8_t, uint8_t**)':
C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\PN5180ISO15693.cpp:562:35: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'ISO15693ErrorCode' [-fpermissive]
PN5180DEBUG(strerror(errorCode));
^
C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\Debug.h:23:39: note: in definition of macro 'PN5180DEBUG'
#define PN5180DEBUG(msg) Serial.print(msg)
^
In file included from C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\PN5180ISO15693.cpp:22:0:
C:\Users\neoid\Documents\Arduino\libraries\PN5180-Library\PN5180ISO15693.h:65:30: error: initializing argument 1 of 'const __FlashStringHelper* PN5180ISO15693::strerror(ISO15693ErrorCode)' [-fpermissive]
const __FlashStringHelper *strerror(ISO15693ErrorCode errno);
^
exit status 1
Error compiling for board LOLIN(WEMOS) D1 mini Pro.
I was really exited when I found this library and ordered the PN5180, hoping I could increase the range compared to my RC522. I wired everything up as shown in the example. Since I'm using a Wemos D1 Mini Pro (ESP8266) and it's already running on 3.3V, I'm skipping the level shifter.
I've updated the three pin-outs in the example accordingly:
However, I get this output, with or without holding a card close to the reader:
The loop is insanely fast, so it's not waiting for the card or anything...
As mentioned in other issues I've tried to uncomment DEBUG on PN5180ISO15693.cpp, but then I get this compiling error: