Hi folks,
I am using zephyr sdk version 2.7.0 with a custom board that integrates a nrf52832, an ens210 sensor for temperature and humidity and lis3dh sensor for accelerations.
Both sensors communicate with i2c0 and i2c1, in my project the lis3dh works with the sensor_attr_set(sensor, trig.chan, SENSOR_ATTR_SLOPE_TH, &thresh) mode and I also have a timer1 that creates interrupts every hour.
In my main I have a state machine where the code blocks at the k_poll() function, awakened by the two signals that come from either the timer1 or the accelerometer lis3dh.
The consumption is around 400 uA, I should have consumption equal to 4-7 uA.
I have set in the prj
Do you have any advice on how to reach these consumptions? Is the function k_poll() correct for standby or is there another way?
Here my main: