Page 1 of 1

Looking for library for PN532 RFID/NFC Card Reader

Posted: Fri Dec 16, 2022 8:30 pm
by golinux
I am looking for library for PN532 RFID/NFC Card Reader (red board) via I2C on CORE-ESP32-C3

I found only support for Arduino IDE but not for ESP-IDF.

I only found this old library, but without an example to use and documentation.
https://github.com/lucafaccin/esp-pn532

I also get error with ESP32-C3 and clock and i2c_set_timeout, that I solved but I am not sure the correct value for the clock
In any way the code word, but not recognize the board , it not read the Firmware version of the board.

The boards are this:
https://wiki.luatos.com/chips/esp32c3/board.html
https://www.elechouse.com/product/pn532 ... module-v4/ (but I have version 3)

main.c: https://pastebin.com/vR934dqT
modified libs:
pn532.c: https://pastebin.com/jvDs6NXx
pn532.h: https://pastebin.com/1U1ccbbe

Re: Looking for library for PN532 RFID/NFC Card Reader

Posted: Sat Dec 17, 2022 3:39 pm
by bidrohini

Re: Looking for library for PN532 RFID/NFC Card Reader

Posted: Sun Dec 18, 2022 3:44 pm
by golinux
this library use SPI with 4 wire, I would use I2C with only 2 wire, Because I have already almost all pins of Core-Esp32-c3 used. I am doing a door access system, and I use RFid card and matrix keyboard, this one use 7 gpio pins.

Re: Looking for library for PN532 RFID/NFC Card Reader

Posted: Sun May 05, 2024 10:16 am
by Lido555
golinux wrote:
Sun Dec 18, 2022 3:44 pm
this library use SPI with 4 wire, I would use I2C with only 2 wire, Because I have already almost all pins of Core-Esp32-c3 used. I am doing a door access system, and I use RFid card and matrix keyboard, this one use 7 gpio pins.
Hey Did you ever manage to get it to work with i2c it seems i can get everything going except for reading tags wondering if you could shed any light thanks