Author Topic: Finding accelerometer location inside a phone  (Read 123 times)

Offline haversin

  • High Voltage Enthusiast
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Finding accelerometer location inside a phone
« on: February 22, 2020, 07:23:28 PM »
     The purpose of this experiment is to find the accelerometer location inside a phone by placing the phone on a turntable and recording the accelerometer readings while the turntable is rotating. The methods found on the internet for doing this seemed overly complicated in terms of setup geometry and location calculations. The method I present here simplify both of these by placing the middle right side of the phone against the spindle of the turntable. This position of the phone on the turntable automatically aligns the accelerometer x and y axes and at the same time places the geometric center of the phone along the x axis.
 
Photo of actual setup


Accelerometer location calculations.


There are many free apps that can record the phone's accelerometer and gyro outputs and write them to a comma separated variable (csv) text file. The app I used was Phyphox. The csv file can then be plotted and analyzed. The turntable was carefully leveled to remove large oscillations on the accelerometer outputs Ax and Ay during rotation due to a component of the gravity in the x y plane.

Accelerometer and gyro Wz data for a run of the experiment.

The run starts with the turntable stationary then the turntable is turned on and speeds up to 45 RPM. The turntable is then turned off and slows down to a stop.
The accelerometer Az output is 1 g up because the accelerometer senses gravity as an acceleration in the up direction. It's noted that the accelerometer Ax and Ay outputs show bias terms of -0.27 and 0.085 m/s^2 respectively.

Here is a different run with linear acceleration and gyro Wz data plotted.

The linear acceleration terms Ax and Ay do not show bias terms but overshoot zero as the turntable is slowing down. Linear acceleration is an estimate of the actual inertial acceleration of the IMU by removing the gravity acceleration vector from the accelerometer outputs. This requires an estimate of the phones orientation in space and then calculating the components of gravity acceleration along each of the three accelerometer axes. The accuracy of this algorithm probably varies with model of phone.
It will be shown later that for my phone ( Galaxy J7 Crown SM S767VL ), using linear acceleration gave very bad accelerometer position estimates.

   The accelerometer positions calculated using accelerometer, accelerometer minus bias and linear acceleration data did not agree so an alternative method of measuring accelerometer position was used for comparison. This other method I'm calling the “null method” and involves varying the phones position on the turntable until the Ax and Ay readings go to zero while the turntable rotates. Because the spindle is in the way for free positioning of the phone, the phone is placed on a small platform above the spindle.

The null method setup is shown here.

The remote control feature of Phyphox came in very handy for this because I could start recording data after the turntable got up to full speed. With no startup transients on the graphs the scale of the plots remained small and I could clearly see the mean of Ax and Ay getting close to null. Once null was established a felt marking pen was used to trace circles on the protective glass cover of the phone. These marked circles allow the center of rotation and hence the accelerometer position to be measured.


Here is the accelerometer minus bias null position.


Linear acceleration null position.


Table of results

  The largest difference between the calculated position and the null position was seen in the linear acceleration with 1.6 cm, accelerometer was 3 mm and accelerometer minus bias was about 2 mm. Of course these results will probably vary with the type of phone.

  I found two good images of my phone's logic board on ebay. The positioning of the logic board inside the phone was estimated from a teardown video. The rear side of the board with all six accelerometer position estimates plotted to scale are shown here.

  Only three of the positions were on the logic board and only two of those landed on a chip. The IMU chip used on my phone is a LSM6DSL. The data sheet for the LSM6DSL gives it's size as 2.5 mm by 3.0 mm by 0.8 mm. This matches the size of the chip that the accelerometer minus bias position estimates fell on. I'm fairly confident that this is the accelerometer/gyro chip. The front side of logic board is shown below with the three positions estimates that landed on the board. None of these positions landed on a chip for this side of the board.
« Last Edit: February 22, 2020, 07:28:59 PM by haversin »

High Voltage Forum

Finding accelerometer location inside a phone
« on: February 22, 2020, 07:23:28 PM »

 


* Recent Topics and Posts

post Re: Power MOSFETs with fast recovery body diodes
[Electronic Circuits]
T3sl4co1l
Today at 05:10:31 AM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
ZakW
Today at 04:17:27 AM
post Re: Power MOSFETs with fast recovery body diodes
[Electronic Circuits]
John123
April 08, 2020, 11:40:04 PM
post Has anybody got this board?
[Solid State Tesla Coils (SSTC)]
TMS
April 08, 2020, 10:34:42 PM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 08, 2020, 07:53:19 PM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 08, 2020, 04:15:12 AM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ritaismyconscience
April 08, 2020, 01:05:28 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
SteveN87
April 08, 2020, 12:53:15 AM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 07, 2020, 10:54:57 PM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ritaismyconscience
April 07, 2020, 10:24:16 PM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
ZakW
April 07, 2020, 09:22:16 PM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
johnf
April 07, 2020, 09:04:34 PM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
ZakW
April 07, 2020, 08:48:01 PM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
Weston
April 07, 2020, 08:15:43 PM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 07, 2020, 06:23:47 PM
post Re: Where is plasma globe arc arcing to?
[Beginners]
John123
April 07, 2020, 05:59:09 PM
post Re: Where is plasma globe arc arcing to?
[Beginners]
alan sailer
April 07, 2020, 04:30:26 PM
post Re: Powerful easy to build MIDI Interrupter
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Max
April 07, 2020, 01:10:30 PM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
SteveN87
April 07, 2020, 12:44:56 PM
post Re: Where is plasma globe arc arcing to?
[Beginners]
John123
April 07, 2020, 07:05:30 AM
post Re: Where is plasma globe arc arcing to?
[Beginners]
Jun
April 07, 2020, 06:40:02 AM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
ZakW
April 07, 2020, 05:07:31 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 07, 2020, 03:38:12 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
SteveN87
April 07, 2020, 03:21:55 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 07, 2020, 02:59:28 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
davekni
April 07, 2020, 02:52:19 AM
post Re: Small DIY plasma globe using ZVS oscillator
[Transformer (Ferrite Core)]
John123
April 07, 2020, 02:29:21 AM
post Re: Where is plasma globe arc arcing to?
[Beginners]
John123
April 07, 2020, 02:21:55 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 07, 2020, 02:00:26 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
SteveN87
April 07, 2020, 01:25:47 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 07, 2020, 12:38:59 AM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
petespaco
April 07, 2020, 12:13:11 AM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
John123
April 06, 2020, 10:07:59 PM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
davekni
April 06, 2020, 10:07:11 PM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
Mads Barnkob
April 06, 2020, 09:57:29 PM
post Re: TVS diode selection for 400v transistor
[Electronic Circuits]
John123
April 06, 2020, 08:04:52 PM
post Re: Power MOSFETs with fast recovery body diodes
[Electronic Circuits]
John123
April 06, 2020, 07:49:30 PM
post Re: Where is plasma globe arc arcing to?
[Beginners]
davekni
April 06, 2020, 06:30:24 PM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 06, 2020, 06:23:27 PM
post Where is plasma globe arc arcing to?
[Beginners]
Jun
April 06, 2020, 02:10:18 PM
post Re: Interuppter code help for sstc (LONEOCEANS SSTC2 )
[Solid State Tesla Coils (SSTC)]
Max
April 06, 2020, 10:21:47 AM
post Journey to a small stand alone CW signal synthesizer
[Radio Frequency]
Da_Stier
April 06, 2020, 09:56:07 AM
post Re: GDT keeps on killing IGBTs
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ritaismyconscience
April 06, 2020, 05:09:29 AM
post Re: Class E SSTC Topology
[Solid State Tesla Coils (SSTC)]
ZakW
April 06, 2020, 02:26:28 AM
post Re: Skm100 coil
[Dual Resonant Solid State Tesla coils (DRSSTC)]
oneKone
April 06, 2020, 02:16:56 AM
post Re: Portable Q(uarantine)CW Tesla Coil
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 06, 2020, 12:43:50 AM
post Portable Q(uarantine)CW Tesla Coil
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Weston
April 05, 2020, 10:47:07 PM
post Re: Unconventional 3kW SSTC
[Solid State Tesla Coils (SSTC)]
davekni
April 05, 2020, 10:46:48 PM
post Re: Interuppter code help for sstc (LONEOCEANS SSTC2 )
[Solid State Tesla Coils (SSTC)]
Max
April 05, 2020, 10:09:40 PM
post Re: Interuppter code help for sstc (LONEOCEANS SSTC2 )
[Solid State Tesla Coils (SSTC)]
ritaismyconscience
April 05, 2020, 09:55:33 PM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 
SimplePortal 2.3.6 © 2008-2014, SimplePortal