hi i have made gate opener for my farm, i am using MPU9250 and nrf52 to measure how much degree its open
i am putting my MPU in cycle mode to wake up and take data, but it consumes ~3.2ma when sense some of the vibration, i have checked if LPF, acclero G and others effect, but changing those effect my angle measurement
i wanted to reduce my battery consuption and making sure its angel measurement working all time
i have Tried with these settings mention below
1- i have set Acclero configration - @8G getting random values, on 4G getting exact values and on 2g miss some of values
2-acclero config2 - when set the 0x0E, getting the exact values, 0x08- random values, 0x0D- some of the random values
3- PWR_MGMT_1 - cycle mode - getting right values and in sleep mode no values occuars
when sleep its not taking any value, but i wanted to take a value to make sure my door is open or closed or how much opened.
i have to make sure that my battery would last for couple of years but in this scenario, my battery will standing till couple of months only as i am usin 2400mah battery
i have made my enclosure, so changing battery is not an option, i am making this as iot project
thanks in advance..
I'm lost too, but I found this that might help you. https://www.invensense.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf (page 31). Maybe reduce your wakeup to 0.24 Hz. As I learn this, seems it doesn't really sleep, but wakes at this interval to see if there is motion (limit defined by user) before waking up the system. So you could be just running out of power even if it doesn't wake up... but 2800 is quite a bit of power to work with.
FYI, you won't get gyro data as an angle just by waking it up. The angle is done by integrating over time the angular acceleration of the gyro sensor (unless you stored the value somewhere before going to sleep.)
I wish invensense had more examples of register settings like the one I referenced. Maybe they just want us to pay for the dev conference to figure this thing out.
Good luck.