Thanks a lot for your answers @msfujino !
It’s the Ultra Low Power co-processor (present in eps32’s s2/s3 and c6). It runs in parallel with the main CPU and can run during deep sleep. But for the sake this question, you can just consider it as some load (<1mA) which exists during deep sleep.
See ULP RISC-V Coprocessor Programming - ESP32-S3 - — ESP-IDF Programming Guide latest documentation for details.
I can share the full esp-idf project if you are willing to test it. If you could measure the current during deep sleep while running the project we could conclude whether there is a problem with my hardware.
I did! (although with 3.7v), it’s on the power consumption table I shared above (Through Battery pads at 3.7 + Deep sleep entries indicate: 30uA for the Xiao and 36uA for the AdaFruit).
I measured again at 3.8v but I didn’t see a considerable difference. So, there is a 3x current difference with what you measured in deep sleep.
This is what I get from PPK2 when injecting 3.8v on the battery pads with a 100ms zoom:
There are peaks every 12ms, I was attributing those peaks to the regulator, but now I am not sure. 12ms seems too wide, so clearly something’s up.
I could attribute it to a software problem but that doesn’t explain why the same view (with exactly the same code), when injecting 3.3v (actually, injecting 3.38V) directly to the 3v3 PIN is:
15uA seems very reasonable.
Note also that, unlike my other boards, the Xiao seems to be using a 0.1 version of the chip (as shown by the flashing tool) as opposed to the Adafruit board (and another Waveshare board I have) which use version 0.2 of the chip. Maybe this has something to do with it? Could you share your chip revision?
Sure I just did! Here are the results:
Note that a variable resistor was used (since I didn’t have fixed resistors for all the values you supplied and I don’t own an electronic load) so the results won’t be super precise:
I added an extra measurement with a 1971 Ω resistor
I get a steady voltage of ~3.75V from the PPK2 during all the tests except for when the 1971 Ω resistor is used, where I get 3.796V