Battery meter draining battery on Android Wear? (Android watch)

I am creating an Android Wear app that tries to detect some of the hand movements, in order to do this I need to constantly monitor the output of the accelerometer . I am wondering how this will affect battery life.

For phones, I know there are ways like "turn off the accelerometer when the screen is off" to save battery, but what's the battery cost in the case of a watch? Since the Android clock can count your steps, and it turns on the screen when you face it, I believe the accelerometer is on all the time.

in this case my app will drain the battery?

(Calculations after obtaining the accelerometer values ​​will be pretty straightforward.)

+3


source to share


1 answer


I think most android wearable devices constantly hold the accelerometer to monitor steps, tilt to baud, etc. However, I think that most or all of these devices handle this in a low power CPU (sensor hub) to allow the main processor to sleep most of the time when the screen is not on.

If you want to control the accelerometer from within the app, this will require the main processor to be running constantly and triggering a huge battery drain (20-40mAh). I tried this while trying to create a sleep tracker and drained about 70% of the battery overnight.



You may want to consider batching , which allows you to constantly monitor the accelerometer, allowing the main processor to sleep most of the time. Basically, you tell the sensor subsystem to collect data while the rest of the system is asleep, and you simply set a wake-up alarm at a fixed interval (about 10s for most Android wear devices) to collect the latest batch of data.

+3


source







All Articles