Looking for library for PN532 RFID/NFC Card Reader

golinux
Posts: 2
Joined: Fri Dec 16, 2022 8:08 pm

Looking for library for PN532 RFID/NFC Card Reader

Postby golinux » Fri Dec 16, 2022 8:30 pm

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

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

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

Postby bidrohini » Sat Dec 17, 2022 3:39 pm


golinux
Posts: 2
Joined: Fri Dec 16, 2022 8:08 pm

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

Postby golinux » 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.

Lido555
Posts: 1
Joined: Sun May 05, 2024 10:13 am

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

Postby Lido555 » Sun May 05, 2024 10:16 am

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

Who is online

Users browsing this forum: No registered users and 91 guests