Questions tagged [magnetometer]

Anything related to magnetometers, i.e. hardware measurement devices used to measure the intensity and/or the direction of a magnetic field. Many smartphones embed a magnetometer which is used as the sensing device in the implementation of electronic compass applications.

Anything related to magnetometers, i.e. hardware measurement devices used to measure the intensity and/or the direction of a magnetic field. Many smartphones embed a magnetometer which is used as the sensing device in the implementation of electronic compass applications.

See Wikipedia about magnetometers.

258 questions
0
votes
1 answer

Rotate UIView according to iDevice Magnetometer reading

I have a UIView containing some points within, and I make it rotate according to the readings from magnetometer via CLLocationManager, as follow: @interface PresentationVC () { float initialBearing; } @end @implementation PresentationVC -…
Raptor
  • 53,206
  • 45
  • 230
  • 366
0
votes
0 answers

Calibrating the magnetic field sensor

How do I calibrate the magnetic field sensor? I know it is done by software. Can I get the Java API code?
erlak36
  • 23
  • 3
0
votes
2 answers

Calculating yaw angle without calibration

Suppose we have accelerometer and magnetometer. I'm wondering if there is an approach to calculate yaw angle without calibrating magnetometer if - Yaw angle relative to the magnetic north is not required to be accurate; so when the device pointing…
Ted Cheng
  • 33
  • 1
  • 8
0
votes
1 answer

How to get the ID number of MPU 9150

I am using MPU 9150 for the first time with Arduino and therefore your answers will be a great help. I am using I2C communication protocol and in order start getting the raw data I want to know the ID number of MPU 9150 so that communication between…
0
votes
1 answer

How to build an Euler compass?

I want to build something similar to the Euler's compass and I need a bit of guidance. Using the Accelerometer and Magnetic sensors I managed to compute the yaw, pitch and roll angles(radians). Now, what should be the next step? I searched over the…
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
0
votes
1 answer

issues accessing magnetometer data from MPU9150

Output: -What I am getting is 0xFF on reading every register (corresponding to magnetometer). On the other hand I am able to access the registers of the accelerometer and the gyroscope perfectly. I have initialized the system with i2c master mode…
user3825537
  • 1
  • 1
  • 2
0
votes
1 answer

iPhone 5 magnetometer data calibration

I captured raw magnetometer data on the iPhone 5 by accident, and I actually require the calibrated data. The problem is that I can't go and recapture the data I originally got. Does anyone know what the iPhone's hard bias (device bias) calibration…
System123
  • 523
  • 5
  • 14
0
votes
1 answer

Which algorithm helps me offset sensor fused data?

I have this sensor fused data coming from a GYRO-ACC-MAG-hardware sensor. It's data (YAW-PITCH-ROLL) goes from -180 to +180 or -90 to +90 Which algorithm helps me offset this to an arbitrary position and also have no sign change to minus? What I…
Brutus Cruciatus
  • 404
  • 3
  • 18
0
votes
1 answer

How to combine gyroscope, acceleration of gravity, magnetometer to achieve the rotation of the picture?

How to combine gyroscope, acceleration of gravity, magnetometer to achieve the rotation of the picture in android?
0
votes
0 answers

Convert yaw and pitch to relative mouse movement

I have the output of a sensor fusion(Razor_AHRS) (gyro, magnetometer, accelerometer) as yaw pitch roll. My goal is to convert them into mouse movements for yaw and pitch. Unfortunately, Yaw goes from 0 to 359, pitch from 0 to 179(if you use…
0
votes
1 answer

How to get raw accelerometer and Magnetometer data in Android?

I know that, for gyroscopes, there exist TYPE_GYROSCOPE_UNCALIBRATED, which provide raw gyro data. Does anything similar exist for accelerpmeter and magnetometer, or they are by default raw data?
student1
  • 860
  • 3
  • 11
  • 22
0
votes
1 answer

How to access magnetometer data

Following the docs, here is my attempt to access magnetometer data. Needless to say, it doesn't work. I've gotten gyroscope and accelerometer data to work using the exact same approach, but for some reason, I get all zeroes in each axis using this…
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83
0
votes
1 answer

Detect tilting and shaking of Android device via accelerometer and magnetic field sensors

At the moment I am totally stuck with an university exercise. I've been trying hard the past few days and also did a lot of research but either I am trying to do something impossible or I am suffering from a terrible error in reasoning. What is my…
0
votes
2 answers

Device orientation on Android

I'm trying to get the device orientation on a Galaxy Note 2. This is my code for the onSensorChanged() method but the RotationMatrix returns false constantly and hence the orientation is not calculated. I've spent several hours going through docs…
ayushn21
  • 305
  • 2
  • 7
0
votes
0 answers

Trying to find distance using a 9dof imu

I am doing a research project to determine, acceleration, velocity, and distance of a weightlifting bar doing a clean. I have looked into using a 9dof imu sensor, however I have found out that calculating the distance the bar has traveled is not…
user1739999
  • 93
  • 2
  • 6