In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Mi A1

Mi Fixer

[Discussion] All About Accelerometer Sensor and Troubleshooting

2018-07-16 10:41:28
19423 210
Hi Mi Fans!
The accelerometer is a built-in component for measuring the acceleration of any mobile device. Motions like swinging, tilting, rotating, shaking is detected using the accelerometer. The value of XYZ is used to calculate and detect the motions.

How does it work?
The main function of the accelerometer is to sense the changes in the orientation of the smartphone with respect to a datum and adjust the orientation to suits the viewing angle of an operator. For example, when you are looking for web-page with increased width, you can get this landscape view from changing the orientation of phone to horizontal. Similarly, camera mode also changes the portrait to landscape or landscape to portrait mode when we change the orientation of phone/camera. Ultimately this accelerometer sensor senses the change in orientation by 3D (X, Y & Z axis) measurement of the acceleration of the device with respect to free fall. One can better use this feature/sensor while playing racing games where he/she can steer the car in the desired direction by leaning the phone in that direction.
How to measure acceleration?

The accelerometer in the mobile device provides the XYZ coordinate values, which is used to measure the position and the acceleration of the device. The XYZ coordinate represents direction and position of the device at which acceleration occurred. The rotation direction and position are measured using gyroscope sensors that are found in the Android devices. The mobile device rest on the Earth includes the acceleration due to gravity (g = 9.81m/s2) and the acceleration value. The accelerometer values provided by the device normally includes the gravity as well. Accelerometer along with the linear acceleration and gyroscope will provide results close to accuracy. Linear acceleration does not include the gravity. The accelerometer value is passed into the low/high pass filters for refining the result, based on the application that has been used.

Sleep Tracking with accelerometer
  • The accelerometer measures the magnitude of your sleep movement by a tiny electromechanic device that is present in every smartphone. The phone has to be in bed with you in order to transfer your motion to the accelerometer.
The accelerometer can be either on the phone or in a wearable device like Mi Band. The measuring device has to have direct contact with you to be precise. This means that the phone has to be in bed with you. The accelerometereter is the default sensor and works on every phone.
The movement is measured relatively. This means that it doesn’t matter whether you are a tiny girl or a regular person. The app is always able to distinguish between ‘moving a little’ and ‘moving a lot’. Heck – it should be able to measure a fly sleeping on the phone! You always see the maximum of your movement as a maximum of the sleep graph and the same with minimums.

The accelerometer sensor/component is device-centric (according to manufacturer), so the accuracy of the acceleration values differs from device to device. So before building an application, you should have built your device with accelerometer by the same manufacturer. Limitations are there, but they vary based on environmental conditions.

Troubleshooting Guide
Solution I - Take a CIT Test

Step 1: Open Phone
Step 2: Dial *#*#6484#*#* from the dial pad

Step 3: Select the option 28.Accelerator
Step 4: Place the phone on a plane level surface and click the Calibration button

If the test succeeds, the accelerometer sensor is working fine on your device. In case of error, Kindly follow the Solution II & III respectively.

Solution II - Factory Data Reset
Before performing a hard reset, please note the following
  • Take a backup of all the essentials files to a local storage media or cloud.
  • Make sure about the battery should have a minimum of 30%

Solution III - Visit a Mi Authorized Service Center.

Before reaching the service centre, please note the following
  • Take a backup of all the essentials files to a local storage media or cloud.
  • Do a factory data reset
  • Full charge your device upto maximum battery %


Number of participants 3 Experience +31 Pack Reason

View Rating Log

2018-07-16 10:41:28
Favorites241 RateRate
Mi Fixer
Includes all the solution for your issues
22 Article Description     951 Subscribers

Pro Bunny

Gordon R5153955941 | from Redmi Note 5


thanks for the information
2018-07-17 01:53:52

Grandmaster Bunny

1673623237 | from Redmi 3S


2018-07-17 02:33:01

Rookie Bunny

N@n! ReddY'$ | from Redmi Note 5 Pro


thanks....For that! bro
2018-07-17 09:19:29

Rookie Bunny

udai kumar | from Mi A1


nice info thanks
2018-07-17 09:51:04

Master Bunny

8131016561 | from MI MAX


Nice Thread.
2018-07-17 12:43:32

Master Bunny

akkapil | from Mi A1


nice information about Accelerometer Sensor
2018-07-17 13:12:30

Grandmaster Bunny

Solver13 | from Redmi Note 4


Awesome! Thanks For Sharing
2018-07-17 14:40:10

Semi Pro Bunny

Mahesh1989 | from Redmi 4


good information
2018-07-17 18:39:19

Pro Bunny

1754811940 | from Redmi Note 5 Pro


thanks for sharing
2018-07-18 00:24:30

Advanced Bunny

P. Minlun | from MI MAX 2


Thanks a lot
2018-07-18 01:35:01
please sign in to reply.
Sign In Sign Up


Grandmaster Bunny

  • Followers


  • Threads


  • Replies


  • Points


3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
2016 Christmas
Mi Explorers
2016 #ThrowbackwithMiComm
App Review
1 million members
Xiaomi 7th Birthday
Mi Campus Superstars Entry
100 threads in a Month
July-100 replies in a month
Aug-100 replies in a month
Sep-100 replies in a month
Oct-100 replies in a month
Nov-100 replies in a month
Dec-100 replies in a month
1st Anniversary
Місія здійсненна
71st Independence Day
My Poster My Life
MIUI 7th Anniversary
2 million registered members
Mi A1 Review Contest
10 000 Мі-Фанів
Newbie Member
Вбивця смартфонів
200 000 пользователей
Helloween 2017
World Records
Twitter Medal
250 000 пользователей
Black Friday
Device Team Member
10k Members
Christmas 2017
Christmas 2017
Christmas 2017
Подлый Санта
Android O Tester
Christmas 2017
MIUI Instagram
2017 Xiaomi Annual Bill
Mi Community Updater
Color Your Planet
Color Our Planet Game
April Participation
Golden Mi Bunny
MIUI Subscriber
10 Million Downloads
Message in a bottle
Throwback With Mi 2018

Read moreGet new
Copyright©2010-2020, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list