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

Offline haversin

  • High Voltage Experimenter
  • **
  • Posts: 63
  • Karma: +5/-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 »

Offline klugesmith

  • High Voltage Senior
  • *****
  • Posts: 695
  • Karma: +22/-0
    • View Profile
Re: Finding accelerometer location inside a phone
« Reply #1 on: September 27, 2020, 06:36:41 PM »
That's a really nice bit of work, Haversin, and well reported.

I think my starter smartphone (Samsung Galaxy A10e) might be too basic to include an accelerometer. Is there less expensive "level" sensor for it to know which phone axis is up, when held in a vertical plane?  And not too easily frustrated about the portrait/landscape decision when phone is in horizontal plane. 

Anybody seen reports from space, about how smartphones deal with their orientation in microgravity?

High Voltage Forum

Re: Finding accelerometer location inside a phone
« Reply #1 on: September 27, 2020, 06:36:41 PM »

 


* Recent Topics and Posts

post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
Today at 06:30:43 PM
post Re: Tesla coil UV eye protection?
[General Chat]
Michelle_
Today at 06:14:35 PM
post Re: Tesla coil UV eye protection?
[General Chat]
MRMILSTAR
Today at 05:13:46 PM
post Re: Tesla coil UV eye protection?
[General Chat]
Twospoons
Today at 11:40:08 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
NyaaX_X
Today at 06:01:50 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
Today at 05:55:45 AM
post Re: Tesla coil UV eye protection?
[General Chat]
Michelle_
Today at 05:47:36 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
Today at 05:45:36 AM
post Re: Tesla coil UV eye protection?
[General Chat]
MRMILSTAR
Today at 05:41:05 AM
post Re: Tesla coil UV eye protection?
[General Chat]
Twospoons
Today at 04:33:57 AM
post Re: Tesla coil UV eye protection?
[General Chat]
alan sailer
April 24, 2024, 08:02:47 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 24, 2024, 06:51:17 PM
post Re: Tesla coil UV eye protection?
[General Chat]
Michelle_
April 24, 2024, 06:45:00 PM
post Re: Tesla coil UV eye protection?
[General Chat]
Mads Barnkob
April 24, 2024, 05:18:27 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
NyaaX_X
April 24, 2024, 05:14:27 PM
post Re: Ignitron trigger drive ideas?
[Capacitor Banks]
huntergroundmind
April 24, 2024, 02:51:23 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 24, 2024, 05:58:27 AM
post Tesla coil UV eye protection?
[General Chat]
Michelle_
April 24, 2024, 05:17:22 AM
post Re: Tenebrescent Potassium Iodide
[Solid State Tesla Coils (SSTC)]
alan sailer
April 24, 2024, 12:39:59 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 23, 2024, 11:07:41 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 23, 2024, 10:57:39 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 23, 2024, 09:33:49 PM
post Re: Tenebrescent Potassium Iodide
[Solid State Tesla Coils (SSTC)]
haversin
April 23, 2024, 06:00:42 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 23, 2024, 03:50:49 AM
post Re: Tenebrescent Potassium Iodide
[Solid State Tesla Coils (SSTC)]
alan sailer
April 23, 2024, 03:13:31 AM
post Re: Tenebrescent Potassium Iodide
[Solid State Tesla Coils (SSTC)]
haversin
April 23, 2024, 12:50:40 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 11:21:06 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 08:11:00 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 06:15:30 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
NyaaX_X
April 22, 2024, 05:52:50 PM
post Tenebrescent Potassium Iodide
[Solid State Tesla Coils (SSTC)]
alan sailer
April 22, 2024, 05:52:13 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 04:31:52 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
NyaaX_X
April 22, 2024, 04:05:34 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
markus
April 22, 2024, 01:02:30 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 22, 2024, 06:32:35 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 06:24:10 AM
post M2000NM1 toroid for gdt tesla coil
[General Chat]
thedark
April 22, 2024, 05:13:15 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 02:25:29 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 22, 2024, 02:09:18 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 22, 2024, 12:14:21 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 21, 2024, 09:47:15 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
April 21, 2024, 08:34:02 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 21, 2024, 06:09:57 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 21, 2024, 06:21:54 AM
post Re: Insulate the secondary of the Tesla coil with a PET plastic bottle
[General Chat]
Michelle_
April 21, 2024, 06:18:30 AM
post Re: Insulate the secondary of the Tesla coil with a PET plastic bottle
[General Chat]
davekni
April 21, 2024, 06:12:31 AM
post Re: Insulate the secondary of the Tesla coil with a PET plastic bottle
[General Chat]
MRMILSTAR
April 21, 2024, 05:19:55 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 21, 2024, 02:29:17 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 21, 2024, 01:28:59 AM
post Insulate the secondary of the Tesla coil with a PET plastic bottle
[General Chat]
thedark
April 21, 2024, 01:19:44 AM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 21, 2024, 12:55:25 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 11:25:32 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 20, 2024, 10:28:26 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 20, 2024, 10:23:28 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 10:06:44 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 20, 2024, 09:21:55 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 20, 2024, 09:16:14 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
April 20, 2024, 08:58:40 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 06:18:26 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 06:15:26 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
April 20, 2024, 03:45:43 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Benjamin Lockhart
April 20, 2024, 06:33:37 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 05:45:04 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Benjamin Lockhart
April 20, 2024, 05:34:16 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 20, 2024, 04:50:57 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Benjamin Lockhart
April 20, 2024, 04:03:55 AM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 20, 2024, 02:35:56 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 19, 2024, 09:37:52 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
klugesmith
April 19, 2024, 09:20:10 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 19, 2024, 07:22:26 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 19, 2024, 04:46:36 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 19, 2024, 03:49:28 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 19, 2024, 01:53:57 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
MRMILSTAR
April 19, 2024, 05:24:19 AM
post Re: Difference between these transformers
[Transformer (Ferrite Core)]
Tesla Junior
April 19, 2024, 04:24:09 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 19, 2024, 04:20:35 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 19, 2024, 04:05:28 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 19, 2024, 04:03:54 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 19, 2024, 03:19:19 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 19, 2024, 03:09:29 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 19, 2024, 01:47:37 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 19, 2024, 12:19:21 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
klugesmith
April 18, 2024, 11:33:01 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 18, 2024, 11:15:15 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 18, 2024, 10:59:36 PM
post Re: What actually kills MOSFETs?
[Beginners]
unrealcrafter2
April 18, 2024, 10:03:48 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
klugesmith
April 18, 2024, 09:53:25 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
unrealcrafter2
April 18, 2024, 09:50:09 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 18, 2024, 09:15:55 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 18, 2024, 08:50:49 PM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 18, 2024, 08:11:27 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 18, 2024, 07:28:05 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 18, 2024, 06:30:30 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 18, 2024, 06:03:57 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 18, 2024, 05:26:13 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
NyaaX_X
April 18, 2024, 04:03:38 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 18, 2024, 02:56:40 PM
post Re: DIY induction guns? (warning:long)
[Induction Launchers, Coil Guns and Rails guns]
Benbmw
April 18, 2024, 06:17:15 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 18, 2024, 05:46:07 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
April 18, 2024, 05:18:31 AM

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