Open thaianramalho opened 6 months ago
@thaianramalho - Are both RFID readers exactly the same hardware? If these 2 devices are the same product, each one must have a different I2C Address in order to have both in the same I2C bus.
The PN532 supports both I2C and SPI. I would suggest to use SPI instead of I2C to communicate and select one or the other using the CS pin.
https://learn.adafruit.com/adafruit-pn532-rfid-nfc/breakout-wiring#wiring-the-breakout-for-spi-1556257 https://github.com/adafruit/Adafruit-PN532/blob/master/examples/ntag2xx_read/ntag2xx_read.ino
Hey @SuGlider - Yes, they are exactly the same hardware. Both PN532. I'll try with SPI, following these links, thank you very much for the comment.
Board
ESP32 DOIT DEVKIT V1
Device Description
My esp32 is connected to a relay, an Ethernet adapter, Buzzer and PN532 RFID Reader.
Hardware Configuration
The Pn532 reader is connected to the HSU.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
40mhz
PSRAM enabled
yes
Upload speed
9600
Description
I need to connect two RFID readers to my esp32. Currently one reader is using the HSU input. When trying to configure a second reader to I2C, the readers conflict and only one works. Generally, I2C. I would like to know how I can make this work.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide