zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.63k stars 2.69k forks source link

XIAO BLE sleep current on zephyr 3.5.0 #2125

Open ldab opened 7 months ago

ldab commented 7 months ago

Issue to track current when zephyr 3.5.0 is merged

  > I am not sure if the power consumption is normal after waking up since I don't have a power profiler, but I'll track overall battery life.

I didn't flash the board you mentioned to my keyboard because the GPIOs are different, but I have build based on https://github.com/zmkfirmware/zmk/pull/1995 my keyboard and the result is:

image

So using https://github.com/zmkfirmware/zmk/pull/1995 the sleep current is 20uA vs ~1uA I measured, but it seems to fix the sleep issue after second wake. I guess we can open an issue to track it and investigate more when 3.5.0 is merged, what do you think @caksoylar ?

Originally posted by @ldab in https://github.com/zmkfirmware/zmk/issues/2091#issuecomment-1902239239

carrefinho commented 4 months ago

Can confirm my XIAO nRF52840 on 3.5 also sleeps at ~20µA

SCR-20240420-mctx
caksoylar commented 4 months ago

While I don't have a PPK, I can confirm that my battery life has massively improved since 3.5 upgrade. My peripheral half (of a split) is especially better, where the battery life is more than 5x as long as before. That would be expected if the standby/sleep power usage decreased significantly.