Esp32s3 sense with PN532 from elecrow

IRQ is interupt Request… so when it is floating the processor may be interupting

I notice you don’t have a declares for the output pins or input pins?
You’ll need those
:v:

Adafruit_PN532::Adafruit_PN532(uint8_t irq, uint8_t reset, TwoWire *theWire)
    : _irq(irq), _reset(reset) {
  pinMode(_irq, INPUT);
  pinMode(_reset, OUTPUT);
  i2c_dev = new Adafruit_I2CDevice(PN532_I2C_ADDRESS, theWire);
}

no need to, its declared in the constructor

yo, btw i changed the delay(10) to delay(1) it now works fine :smile:

FUCK i love electronics :revolving_hearts:

Hilarious,
WE all do…
Mark it as the solution so others can find it…
GL :slight_smile: PJ

Delay Lives Matter :face_with_hand_over_mouth: :+1:

now its a matter of integration with the rest of the code. i dont know if ill have difficulties with i2c

the delay was somehow messing with the IIC signal timing

1 Like

how to mark it as a solution ?

should be a button on your side on the comment… near the heart and stuff

now that im trying to integrate the code in my current project, the fun starts
what could cause this kind of warning ?

[ 3664][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1

it gives me this warning just after uploading the main.cpp. After that, if i restart the mcu with usb for example i have no warning

Hi there, Sounds like a high baud rate issue or shaky cable ,a clock or pull up resistor issue?
If reset fixes it, add some delay after the wire begin to give it time to run.
HTH
GL :slight_smile: PJ
:v:

I really think if you get one of these…

you can do away with half your problems and get a few bonus as well

dont forget the case too… very handy

but the battery polarity is reverse from standard so you need to make up your own cable or switch the pins… i get a

https://www.amazon.com/dp/B08T9FB56F

https://www.amazon.com/dp/B01M5AHF0Z

https://www.amazon.com/dp/B0797NRXZY

https://www.amazon.com/dp/B096D8SCP6

ahahahahah you are an affiliated seller or what. i dont need that thank you. i dont see the value in investing in something i will not re-use after prototyping stage. Sorry.

thats how you pay back for all the free help you got

Hi there,
Sounds like it did NOT respond to the read request is what I’m seeing?
HTH
GL :slight_smile: PJ
:v: