Questions tagged [gyroscope]

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Modern high-end Mobile devices have been supplying this device.Thus, many uses are found in Android API and iOS API.

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Mechanically, a gyroscope is a spinning wheel or disk in which the axle is free to assume any orientation. Although this orientation does not remain fixed, it changes in response to an external torque much less and in a different direction than it would without the large angular momentum associated with the disk's high rate of spin and moment of inertia. Since external torque is minimized by mounting the device in gimbals, its orientation remains nearly fixed, regardless of any motion of the platform on which it is mounted.

805 questions
16
votes
2 answers

Determine the Device Orientation and its resulting Angle on one Dimension?

I have the following setup: An iPhone lies with the display to the ceiling on a table (alpha = 0 degrees). When the iPhone is moved upwards like shown in the image above the alpha angle increases. How do I compute the value of the alpha angle…
Michael
  • 32,527
  • 49
  • 210
  • 370
16
votes
1 answer

Obtaining orientation using gyroscope and accelerometer

I want to monitor the orientation of a device on 2 axis: very simply: which way is down. It must maintain accuracy over extended time period (12 hours) It will be subject to rotations and accelerations about all axes The device will be an Android…
Jodes
  • 14,118
  • 26
  • 97
  • 156
15
votes
2 answers

iPhone gyroscope - why is YAW and PITCH connected?

I have a very simple application where I am trying to use the gyroscope thru core motion. At this point, for test purposes, I am just grabbing the values of roll, pitch and yaw and printing on screen. According to the picture below and as far as I…
Roger
  • 243
  • 2
  • 4
  • 14
14
votes
2 answers

iOS Gyroscope API

I am learning to write an app using the gyroscope sensor in iOS. Are there classes for dealing with the gyroscope similar to UIAcceleration/UIAccelerometer/UIAccelerometerDelegate for the accelerometer?
user682765
  • 1,229
  • 3
  • 21
  • 33
14
votes
3 answers

Changes in accelerometer / gyroscope limitations for iPhone 5 / 5th Gen iPod Touch?

Back when the iPhone 4 and 4th Generation iPod Touch came out, I was toying around with Apple's Core Motion sensor fusion algorithms to see if I could get any interesting results for very local dead reckoning (over the range of a few inches or…
Warren Whipple
  • 1,060
  • 2
  • 9
  • 18
14
votes
6 answers

Integrating gyro and accelerometer readings

Possible Duplicate: Combine Gyroscope and Accelerometer Data I have read a number of papers on Kalman filters, but there seem to be few good publically accessible worked examples of getting from mathematical paper to actual working code. I have a…
moonshadow
  • 86,889
  • 7
  • 82
  • 122
13
votes
2 answers

iOS: Movement Precision in 3D Space

From what I understand, GPS has limited accuracy. Is it possible to get a more precise location for a person in 3D space? I'm planning to write an application where users will move with their phones in any direction, but only need to move a few…
Derek
  • 747
  • 3
  • 8
  • 13
13
votes
2 answers

Sensor.TYPE_ROTATION_VECTOR has drift: Is there an alternative?

I'm trying out Sensor.TYPE_ROTATION_VECTOR on Android. It is supposed to use magnetfieldsensor, accelerometer and gyroscope to provide accurate rotation at all times. However, I notice enormous drift occurring on Moto G 2nd. I wonder if this is a…
RobotRock
  • 4,211
  • 6
  • 46
  • 86
13
votes
5 answers

Calculating displacement using Accelerometer and Gyroscope (MPU6050)

I am a computer science student and working on an electronics project that requires to calculate yaw, pitch, roll and X,Y,Z displacement. I want to attach an IMU in a gun and track its orientation and displacement. I am able to get Yaw, Pitch and…
svhr
  • 260
  • 2
  • 4
  • 10
13
votes
4 answers

Gyroscope drift on mobile phones

Lots of posts talk about the gyro drift problem. Some guys say that the gyro reading has drift, however others say the integration has drift. The raw gyro reading has drift[link]. The integration has drift[link](Answer1). So, I conduct one…
Allen Jee
  • 719
  • 2
  • 7
  • 14
13
votes
2 answers

Getting Direction Vector in Android

How can I get a direction vector representing the direction the back of the device is pointing relative to earth coordinates? For example, if place down on a desk (screen facing up) it should read [0,0,-1] and if held vertically facing north it…
Joey
  • 10,504
  • 16
  • 39
  • 54
12
votes
1 answer

Sensor Fusion on iOS Devices

I'm trying to find out how could I start to implement sensor fusion on the iPhone. I've started from this talk from David Sachs: Sensor Fusion on Android Devices Although David's talk is very illustrative, it doesn't show any code (it makes sense).…
Ruben Marin
  • 1,639
  • 14
  • 24
12
votes
4 answers

How to get a phone's azimuth with compass readings and gyroscope readings?

I wish to get my phone's current orientation by the following method: Get the initial orientation (azimuth) first via the getRotationMatrix() and getOrientation(). Add the integration of gyroscope reading over time to it to get the current…
Sibbs Gambling
  • 19,274
  • 42
  • 103
  • 174
11
votes
1 answer

Best book for learning sensor fusion, specifically regarding IMU and GPS integration

I have a requirement of building an Inertial Measurement Unit (IMU) from the following sensors: Accelerometer Gyroscope Magnetometer I must integrate this data to derive the attitude of the sensor platform and the external forces involved (eg.…
James
  • 2,458
  • 3
  • 26
  • 50
11
votes
5 answers

Detect when an iphone has been bumped

I want to be able to detect if an iphone has been bumped into something...would it be best to listen to the gyroscope / accelerometer and judge how fast its moved or if its moved and stopped suddenly. In fact how would I judge if the device has…
daihovey
  • 3,485
  • 13
  • 66
  • 110
1
2
3
53 54