Accelerometer, gyro, compass: Which one for orientation?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caphair
    Badcaps Legend
    • Nov 2011
    • 1249

    #1

    Accelerometer, gyro, compass: Which one for orientation?

    Have an iPhone which screen orientation doesn't work and is stuck in one direction. The compass app also doesn't work.

    Tried a restore and no change so its hardware related but I don't know which one is responsible for the issue. Do they all work together? I figured it'd be the gyro circuit but since the compass doesn't work as well I'm wondering if it's the compass circuit?
    Attached Files
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 30941
    • Albion

    #2
    Re: Accelerometer, gyro, compass: Which one for orientation?

    compass, the others detect movement.
    although if they share a databus one could silence the others.

    Comment

    • Curious.George
      Badcaps Legend
      • Nov 2011
      • 2305
      • Unknown

      #3
      Re: Accelerometer, gyro, compass: Which one for orientation?

      Originally posted by stj
      compass, the others detect movement.
      although if they share a databus one could silence the others.
      No (I read the OP's post as "his screen is stuck in landscape/portrait mode and won't switch to portrait/landscape when he reorients the phone").

      The accelerometer tells the phone which way is DOWN; the compass tells it which way is NORTH!

      Comment

      • caphair
        Badcaps Legend
        • Nov 2011
        • 1249

        #4
        Re: Accelerometer, gyro, compass: Which one for orientation?

        Originally posted by Curious.George
        No (I read the OP's post as "his screen is stuck in landscape/portrait mode and won't switch to portrait/landscape when he reorients the phone").

        The accelerometer tells the phone which way is DOWN; the compass tells it which way is NORTH!
        Thanks. So the gyro isn't responsible for screen orientation?

        Comment

        • stj
          Great Sage 齊天大聖
          • Dec 2009
          • 30941
          • Albion

          #5
          Re: Accelerometer, gyro, compass: Which one for orientation?

          no, the compass indicates actual direction in relation to the planet,
          the gyro detects movement in 3 axis - but not relative to [up] afaik,
          the accelerometer detects how fast you move the phone.

          so the gyro and accelerometer are used together to tell if you move the fone, and how fast - but not which way it's facing.

          Comment

          • caphair
            Badcaps Legend
            • Nov 2011
            • 1249

            #6
            Re: Accelerometer, gyro, compass: Which one for orientation?

            So the compass and screen orientation issue are separate?

            Comment

            • Curious.George
              Badcaps Legend
              • Nov 2011
              • 2305
              • Unknown

              #7
              Re: Accelerometer, gyro, compass: Which one for orientation?

              Originally posted by stj
              no, the compass indicates actual direction in relation to the planet,
              the gyro detects movement in 3 axis - but not relative to [up] afaik,
              the accelerometer detects how fast you move the phone.

              so the gyro and accelerometer are used together to tell if you move the fone, and how fast - but not which way it's facing.
              From https://www.livescience.com/40103-ac...gyroscope.html:

              The typical two-axis accelerometer gives users a direction of gravity in an aircraft, smartphone, car or other device. In comparison, a gyroscope is intended to determine an angular position based on the principle of rigidity of space. The applications of each device vary quite drastically despite their similar purpose. A gyroscope, for example, is used in navigation on unmanned aerial vehicles, compasses and large boats, ultimately assisting with stability in navigation. Accelerometers are equally widespread in use and can be found in engineering, machinery, hardware monitoring, building and structural monitoring, navigation, transport and even consumer electronics.

              The appearance of the accelerometer in the consumer electronics market, with the introduction of such widespread devices like the iPhone using it for the built-in compass app, has facilitated its overall popularity in all avenues of software. Determining screen orientation, acting as a compass and undoing actions by simply shaking the smartphone are a few basic functions that rely on the presence of an accelerometer. In recent years, its application among consumer electronics extends now to personal laptops.
              [emphasis mine]

              Because the designers took pains to ensure the accelerometer was installed in a specific orientation in EVERY phone (of that make/model), they can use that knowledge to deduce which way (orientation) you're holding the phone, currently. But, they can't tell if the microphone is "north" or "south" of the earpiece!
              Last edited by Curious.George; 02-21-2019, 03:42 PM.

              Comment

              • stj
                Great Sage 齊天大聖
                • Dec 2009
                • 30941
                • Albion

                #8
                Re: Accelerometer, gyro, compass: Which one for orientation?

                we shall see, an electronic "gyroscope" is not the same as the old spinning ones in a cube in aircraft.

                Comment

                • desert-rat
                  Badcaps Legend
                  • Mar 2014
                  • 4103
                  • USA

                  #9
                  Re: Accelerometer, gyro, compass: Which one for orientation?

                  They still make the mec. ones
                  https://www.amazon.com/TAFULOR-Multi...-3-spons&psc=1

                  Comment

                  • eccerr0r
                    Solder Sloth
                    • Nov 2012
                    • 8673
                    • USA

                    #10
                    Re: Accelerometer, gyro, compass: Which one for orientation?

                    Speaking of which, what is a cheap electronic compass chip I could buy... ? Yeah chip for a project and SMD is fine...

                    Comment

                    • stj
                      Great Sage 齊天大聖
                      • Dec 2009
                      • 30941
                      • Albion

                      #11
                      Re: Accelerometer, gyro, compass: Which one for orientation?

                      you can get pcb's from china for arduino projects that have the whole set on them.
                      they cost peanuts.

                      Comment

                      • stj
                        Great Sage 齊天大聖
                        • Dec 2009
                        • 30941
                        • Albion

                        #12
                        Re: Accelerometer, gyro, compass: Which one for orientation?

                        https://www.aliexpress.com/item/GY-2...043504120.html

                        Comment

                        • eccerr0r
                          Solder Sloth
                          • Nov 2012
                          • 8673
                          • USA

                          #13
                          Re: Accelerometer, gyro, compass: Which one for orientation?

                          hmm.... maybe next is compass plus GPS...

                          Comment

                          • caphair
                            Badcaps Legend
                            • Nov 2011
                            • 1249

                            #14
                            Re: Accelerometer, gyro, compass: Which one for orientation?

                            I replaced the accelerometer and screen orientation was fixed. However compass still doesn’t function. So I suppose they’re not one in the same

                            Comment

                            Related Topics

                            Collapse

                            • rounin
                              MacBook Air A2337 (820-02016) USB-C Port Issue – Only Works in One Orientation (CC Line Problem?)
                              by rounin
                              Hi everyone,

                              I'm working on a MacBook Air 2020 (A2337, board 820-02016) and running into a strange USB-C issue. I've gone through quite a bit of testing and part replacement, but I'm stuck — hoping someone here can shed some light.

                              🛠 Original Issue
                              The machine initially wouldn't negotiate 20V over USB-C — stuck at 5V.
                              Diagnosis showed PP1V5_UPC0_LDO_CORE shorted to ground.

                              I replaced U3100 (UF400) using a donor board (A2179), and the machine powers on fine now.

                              ⚠️ New Problem: One USB-C Port Only Works in One Orientation...
                              04-19-2025, 01:18 AM
                            • Document Archive
                              Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) Specification for Upgrade or Repair
                              by Document Archive
                              This specification for the Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the U9310X boardview and U9310X schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for Fujitsu...
                              09-06-2024, 06:20 PM
                            • Document Archive
                              Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) Specification for Upgrade or Repair
                              by Document Archive
                              This specification for the Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the U9310X boardview and U9310X schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for Fujitsu...
                              09-06-2024, 06:20 PM
                            • Document Archive
                              Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) Specification for Upgrade or Repair
                              by Document Archive
                              This specification for the Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the U9310X boardview and U9310X schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for Fujitsu...
                              09-06-2024, 06:20 PM
                            • Document Archive
                              Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) Specification for Upgrade or Repair
                              by Document Archive
                              This specification for the Fujitsu LIFEBOOK U9310X Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the U9310X boardview and U9310X schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for Fujitsu...
                              09-06-2024, 06:20 PM
                            • Loading...
                            • No more items.
                            Working...