I struggle with my experimental project of breath and apnea detection. It works except that I cannot reduce the poser consumption bellow 1mA when powered on battery, despite trying to cut all unnecessary components.
The program sleeps every 100ms, and wakes up by RTC2 to read IMU and trigger actions. I cannot use system_off as I need to keep RAM. I need only the IMU, and some digital and analog pins. I tried multiple code combinations to reduce significantly power usage. None works. I use the ‘non mbed ‘ version of the seeed core for nRF 52840 on Arduino IDE.
So, I wonder if this is due to this 'arduino’ setup , and if some libraires included by default activate unused modules, evenj when I cut them , or if I make something wrong.
Past experiences on minimum current usage with this environnement would be super nice.
My project is on github (https://github.com/midibody/BreathTracker).
Note that I finally removed the code of functions that disable features before sleeping as they have only a marginal effet.