Hi all,
I would like to know the best power saving solution for my specific case.
My xiao is battery powered (100mah li-ion), and stays most of the time (almost 99%) in system off, until intentionally waken up by the user with a tilt movement.
The rest of the time I really don´t care too much about the consumption, I use some sensors and BLE, but the battery is big enough for all them.
What is really important is the power consumption during system off.
My actual power off sequence is:
disable gyroscope
enable embedded tilt function on int1 (lsm6ds3)
set pinMode of int1 as INPUT_PULLDOWN_SENSE
call sd_power_system_off()
SLEEP…
It works perfectly but the current drained during the system off is still higher than expected.
I don´t know exactly what sd_power_system_off() does, maybe I have to power off something else manually before calling the function, something like the bluetooth radio, the flash, I don’t know…
The only needed hardware is the accelerometer, to wake up the xiao.
hi msfujino.
This is exactly what I need to know, what do I have to switch off or on to get the minimum current in system power off?
I didn´t set the flash in power down mode, neither set on the dcdc regulator.
Is it necessary to power off the ble radio too?
I ended up using the first solution, because of a library interference between Adafruit_SPIFlash.h and InternalFileSystem.h
Seems to work well, but I have to check the current, I will reply in a few days.