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

Offline haversin

  • High Voltage Enthusiast
  • *
  • Posts: 28
  • 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 »

Offline klugesmith

  • High Voltage Engineer
  • ****
  • Posts: 360
  • Karma: +11/-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: UD2.7 Thru Hole
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
Today at 02:41:13 AM
post Re: Capacitor Bank Series-Parallel Configuration
[Capacitor Banks]
MrScrOggs
Today at 02:41:08 AM
post B64290l0048x830 core for gate drive Help
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedoc298
April 21, 2021, 09:18:14 PM
post Re: Capacitor Bank Series-Parallel Configuration
[Capacitor Banks]
MRMILSTAR
April 21, 2021, 08:38:20 PM
post Re: MidiStick Polyphonic USB Midi Interrupter
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
April 21, 2021, 08:15:13 PM
post Re: UD2.7 Thru Hole
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 21, 2021, 08:08:15 PM
post Re: Corona discharge
[General Chat]
Mads Barnkob
April 21, 2021, 07:59:41 PM
post Re: Capacitor Bank Series-Parallel Configuration
[Capacitor Banks]
Mads Barnkob
April 21, 2021, 07:40:40 PM
post Capacitor Bank Series-Parallel Configuration
[Capacitor Banks]
MrScrOggs
April 21, 2021, 04:29:42 PM
post Re: gdt high frequency ring
[Solid State Tesla Coils (SSTC)]
davekni
April 21, 2021, 06:12:33 AM
post UD2.7 Thru Hole
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 21, 2021, 03:52:44 AM
post Corona discharge
[General Chat]
T3sl4co1l
April 21, 2021, 12:16:22 AM
post Re: Mains Fullwave CWDRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Vdekje
April 20, 2021, 10:48:45 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
Vdekje
April 20, 2021, 10:33:53 PM
post Re: Project: FreakyDRSSTC MK1
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 20, 2021, 07:32:37 PM
post Re: gdt high frequency ring
[Solid State Tesla Coils (SSTC)]
balazs
April 20, 2021, 07:29:04 PM
post Re: Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 20, 2021, 07:25:30 PM
post Re: What driver to use for first DRSSTC build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 20, 2021, 06:55:36 PM
post Re: What driver to use for first DRSSTC build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedoc298
April 20, 2021, 06:48:29 PM
post Re: What driver to use for first DRSSTC build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
futurist
April 20, 2021, 03:42:58 PM
post Re: Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
mrsebe
April 20, 2021, 01:54:01 PM
post Re: MidiStick Polyphonic USB Midi Interrupter
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
TMaxElectronics
April 20, 2021, 04:53:09 AM
post Re: Project: FreakyDRSSTC MK1
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 20, 2021, 02:32:21 AM
post Re: gdt high frequency ring
[Solid State Tesla Coils (SSTC)]
davekni
April 20, 2021, 02:28:12 AM
post Re: Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 20, 2021, 12:20:45 AM
post Re: Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
MRMILSTAR
April 19, 2021, 09:59:08 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic Circuits]
petespaco
April 19, 2021, 09:35:16 PM
post Re: Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
AstRii
April 19, 2021, 08:48:07 PM
post Re: gdt high frequency ring
[Solid State Tesla Coils (SSTC)]
balazs
April 19, 2021, 05:03:29 PM
post Intensifying screen
[X-ray]
Merces
April 19, 2021, 04:45:03 PM
post Some questions about DRSSTC's, and guidance to build one.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
mrsebe
April 19, 2021, 04:36:43 PM
post Whoohoooooo
[Dual Resonant Solid State Tesla coils (DRSSTC)]
GrantV
April 19, 2021, 12:29:03 PM
post Please, Share SSTC schematics with me
[Solid State Tesla Coils (SSTC)]
hashtala
April 19, 2021, 10:02:46 AM
post What driver to use for first DRSSTC build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedoc298
April 19, 2021, 06:04:03 AM
post Re: Mitsubishi CM300DY-24H IGBT
[Beginners]
thedoc298
April 19, 2021, 02:48:40 AM
post Re: Mitsubishi CM300DY-24H IGBT
[Beginners]
Mads Barnkob
April 18, 2021, 08:04:18 PM
post Mitsubishi CM300DY-24H IGBT
[Beginners]
thedoc298
April 18, 2021, 07:10:24 PM
post Re: gdt high frequency ring
[Solid State Tesla Coils (SSTC)]
balazs
April 18, 2021, 01:11:28 PM
post Re: Drsstc Driver Board for Tesla Coil Driver Optic Fiber Splice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
iw1esu
April 18, 2021, 12:26:48 PM
post Re: Mains synced sstc questions
[Solid State Tesla Coils (SSTC)]
Magneticitist
April 18, 2021, 02:36:34 AM
post Re: Help needed with SSTC. First TC build
[Solid State Tesla Coils (SSTC)]
davekni
April 18, 2021, 01:24:59 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
mrsebe
April 17, 2021, 07:56:07 PM
post Re: Project: FreakyDRSSTC MK1
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 17, 2021, 07:50:17 PM
post Re: Help needed with SSTC. First TC build
[Solid State Tesla Coils (SSTC)]
Maverikie
April 17, 2021, 07:20:58 PM
post Re: Project: FreakyDRSSTC MK1
[Dual Resonant Solid State Tesla coils (DRSSTC)]
GrantV
April 17, 2021, 11:53:37 AM
post Re: Help needed with SSTC. First TC build
[Solid State Tesla Coils (SSTC)]
Mads Barnkob
April 17, 2021, 09:34:02 AM
post Re: Help needed with SSTC. First TC build
[Solid State Tesla Coils (SSTC)]
davekni
April 17, 2021, 05:36:49 AM
post Re: Project: FreakyDRSSTC MK1
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 17, 2021, 04:30:36 AM
post Help needed with SSTC. First TC build
[Solid State Tesla Coils (SSTC)]
Maverikie
April 16, 2021, 09:22:47 PM
post HELP .... PLEASE?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
GrantV
April 16, 2021, 10:50:24 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