Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android accelerometer, sensor usage and power consumption

I have a quick question about the accelerometer in Android devices. Is it always on/active? Given that accelerometer is used to detect the orientation of the device, either landscape or portrait.

In the official documentation (SensorManager) it states that sensors should be turned off to save power. But I wonder if this only applies to others sensors like magnetic field sensors, gyroscope, light sensor and so on.

I need to make a case for power conservation and I don't want to make the mistake of saying that the accelerometer can at times be disabled, and instead use it for the purpose of disabling other sensors (in compass features of the application).

Or is the battery consumption by an accelerometer only related to an app being registered for receiving the data, while simply being "on" or enabled is not relevant since it always is?

Thanks for any clarification!

like image 844
gorn Avatar asked Mar 25 '12 19:03

gorn


People also ask

How much energy does a sensor use?

The cost and consumption of motion sensors is more than offset by the amount money not wasted. Depending on the device, their power consumption ranges from 0.5W to 8W for the most powerful ones. To give you an idea of how little this is, a low consumption bulb that is equivalent to the old 100W bulb consumes 30W.

Does gyroscope consume more battery?

Actually accelerometer and gyroscope has low power consumption, but they support by OS may consume more battery.

Do phone sensors drain battery?

Amount of power taken by sensor varies from sensor to sensor, and device to device. On average, your most power hungry sensors are the GPS, accelerometer and gyroscope. Leaving them On all the time will reduce the battery faster.So you should pause the sensor when the device is where-ever not necessary.

What is the use of accelerometer in Android?

In general, the accelerometer is a good sensor to use if you are monitoring device motion. Almost every Android-powered handset and tablet has an accelerometer, and it uses about 10 times less power than the other motion sensors.


1 Answers

Or is the battery consumption by an accelerometer only related to an app being registered for receiving the data, while simply being "on" or enabled is not relevant since it always is?

That's correct.

The power consumption results from your app running and registered for sensor events. This keeps your app running all the time, keeps it consuming CPU, and potentially can keep the device from sleeping.

As far as I know, there's no way to shut down the sensors. Now, that is not to say that the device does not smartly shut down the sensors if there's nothing listening to them. I don't know that, but it seems likely. Regardless, again, the trigger is listening to them, so I don't think it makes a difference for your question.

like image 139
Jeffrey Blattman Avatar answered Nov 09 '22 03:11

Jeffrey Blattman