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

Offline haversin

  • High Voltage Enthusiast
  • *
  • Posts: 27
  • 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: Server PSU OPV Hack - Fujitsu DPS-800GB-5 A
[Electronic Circuits]
klugesmith
Today at 03:02:00 PM
post Re: Server PSU OPV Hack - Fujitsu DPS-800GB-5 A
[Electronic Circuits]
v.coelho
Today at 01:11:27 PM
post Re: Info needed: probably old military High Voltage Multiplier?
[Voltage Multipliers]
Zipdox
Today at 10:25:42 AM
post Re: Info needed: probably old military High Voltage Multiplier?
[Voltage Multipliers]
johnnyzoo
Today at 07:32:43 AM
post Re: Current transformer for narrow spaces
[Laboratories, Equipment and Tools]
klugesmith
September 23, 2020, 11:20:53 PM
post WTS [US]:"Terry filter" varistors for sale
[Sell / Buy / Trade]
MRMILSTAR
September 23, 2020, 10:41:54 PM
post Re: Info needed: probably old military High Voltage Multiplier?
[Voltage Multipliers]
Zipdox
September 23, 2020, 10:25:07 PM
post Info needed: probably old military High Voltage Multiplier?
[Voltage Multipliers]
HighVoltageRulezz
September 23, 2020, 10:06:30 PM
post Re: Server PSU OPV Hack - Fujitsu DPS-800GB-5 A
[Electronic Circuits]
petespaco
September 23, 2020, 04:26:34 PM
post Re: 6" Coil Update now 72" and better lighting
[Spark Gap Tesla Coils (SGTC)]
klugesmith
September 23, 2020, 03:06:28 PM
post Re: Server PSU OPV Hack - Fujitsu DPS-800GB-5 A
[Electronic Circuits]
Zipdox
September 23, 2020, 01:34:42 PM
post Server PSU OPV Hack - Fujitsu DPS-800GB-5 A
[Electronic Circuits]
v.coelho
September 23, 2020, 01:11:50 PM
post 6" Coil Update now 72" and better lighting
[Spark Gap Tesla Coils (SGTC)]
Bradselph
September 23, 2020, 09:03:56 AM
post Re: steam engine
[Capacitor Banks]
plasma
September 23, 2020, 12:53:49 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic Circuits]
extremeodd
September 23, 2020, 12:35:16 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic Circuits]
petespaco
September 22, 2020, 08:15:40 PM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
klugesmith
September 22, 2020, 05:59:21 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic Circuits]
klugesmith
September 22, 2020, 05:42:28 PM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
T3sl4co1l
September 22, 2020, 06:48:34 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic Circuits]
petespaco
September 22, 2020, 01:48:11 AM
post Re: steam engine
[Capacitor Banks]
klugesmith
September 21, 2020, 11:58:09 PM
post Re: steam engine
[Capacitor Banks]
plasma
September 21, 2020, 11:21:28 PM
post Re: steam engine
[Capacitor Banks]
HiVi
September 21, 2020, 08:30:22 PM
post Re: steam engine
[Capacitor Banks]
klugesmith
September 21, 2020, 07:11:30 PM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
klugesmith
September 21, 2020, 06:57:13 PM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 21, 2020, 05:50:56 PM
post Re: Easy to build Polyphonic MIDI Interrupter
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Max
September 21, 2020, 02:59:47 PM
post Re: VTTC on GU-81M
[Vacuum Tube Tesla Coils (VTTC)]
Continuum
September 21, 2020, 12:18:10 PM
post Re: steam engine
[Capacitor Banks]
plasma
September 21, 2020, 09:49:57 AM
post Re: steam engine
[Capacitor Banks]
Zipdox
September 21, 2020, 09:18:53 AM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
Zipdox
September 21, 2020, 09:13:12 AM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 21, 2020, 06:45:24 AM
post Re: DRSSTC driver
[General Chat]
Mads Barnkob
September 20, 2020, 08:37:58 PM
post Re: Current transformer for narrow spaces
[Laboratories, Equipment and Tools]
klugesmith
September 20, 2020, 05:31:25 PM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
GKnapp
September 20, 2020, 05:20:51 PM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
Uspring
September 20, 2020, 03:46:15 PM
post Re: How do you all pronounce kluge or kludge?
[General Chat]
Uspring
September 20, 2020, 03:25:48 PM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 20, 2020, 02:12:35 PM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
GKnapp
September 20, 2020, 02:02:34 PM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
Hydron
September 20, 2020, 01:27:52 PM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
Mads Barnkob
September 20, 2020, 11:58:14 AM
post Re: Corona lockdown thread, tell about your situation
[General Chat]
friday
September 20, 2020, 07:53:30 AM
post Re: How do you all pronounce kluge or kludge?
[General Chat]
johnf
September 20, 2020, 06:09:20 AM
post Re: How do you all pronounce kluge or kludge?
[General Chat]
MRMILSTAR
September 20, 2020, 05:58:46 AM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
T3sl4co1l
September 20, 2020, 04:40:21 AM
post Re: DRSSTC Tuning for Music vs Big Sparks?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 20, 2020, 02:22:28 AM
post Re: Cheapest source so far for step adjustable DC power for ZVS induction heaters
[Electronic Circuits]
davekni
September 20, 2020, 02:06:56 AM
post Re: Rogowski current probe
[Laboratories, Equipment and Tools]
Hydron
September 19, 2020, 11:34:01 PM
post How do you all pronounce kluge or kludge?
[General Chat]
klugesmith
September 19, 2020, 11:21:11 PM
post Re: Am I Misunderstanding of DC Blocking Capacitors
[Solid State Tesla Coils (SSTC)]
klugesmith
September 19, 2020, 10:13:44 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