I have designed a custom PCB for one of my side projects. PN532 is interfaced with ESP32 over i2c. Goal is to have the system consume current in uAmps range when in deep sleep. I put ESP32 in deep sleep and before doing that, I cut off power to PN532 using NPN transistor. All is working well on a breadboard setup with breakout boards. In deep sleep, current drops to 32uA for the complete system.
But on my custom PCB, current only drops to 4mA in deep sleep. I have put the PCB under thermal camera and PN532 is the only part showing heat signature. I then proceeded to verify that there is no power applied to PN532. So, I am struggling to find why is it pulling 4mA?
I had two theories:
1- The i2c lines between PN532 and ESP32 are probably active for deep sleep mode meaning some part within PN532 is being powered from these lines. But I have checked the lines for voltage and both drop to around 0 in deep sleep.
2- The thermal pin 41 of PN532 is probably not properly grounded (PCB assembly error). I have no way to verify this since thermal pin is the pad below the IC. But could this be the reason for 4mA consumption even when no power is applied?
I am attaching screenshot from the schematic diagram: