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
8
votes
1 answer

TYPE_ROTATION_VECTOR, TYPE_ORIENTATION give different results that too with deviation

I have implemented listener for both Rotation Vector and Orientation Vector though i know it's depreciated i wanted to test both. I know Rotation Vector is a fusion sensor & recommended but according to it the NORTH (the value[0] returned by…
8
votes
2 answers

Which iOS class/code returns the magnetic North?

I want to get the device's deviation from the magnetic North in degrees, and use that value in some code I'm writing. I don't want to use the device's location services and therefore I'm not interested in getting the True north but rather the…
user1073400
7
votes
3 answers

Mobile phone sensors

After some hours of searching I'm so confused, so I'll tell now what I learned, so please correct me if I was wrong : Light Sensor: surrounding light Magnetic Sensor: I can get the north location. Accelerometer Sensor: the gravity X Y Z , earth…
rami
  • 341
  • 2
  • 4
  • 8
7
votes
1 answer

Difference between orientation sensor and magnetic field sensor on Android?

Does anyone know the difference between the orientation sensor and magnetic field sensor on Android? My understanding: orientation => digital compass magnetic field => magnetometer Since I've read that magnetometer is synonymous with digital…
devpg
  • 300
  • 1
  • 3
  • 10
7
votes
2 answers

CoreLocation heading base on back camera (Augmented reality)

I would like to create an augmented reality view that is going to point an object in a direction. However, the CoreLocation heading is not working correctly when you are facing upwards with your camera (say to a top of a 20-storeys building when you…
Chee
  • 211
  • 2
  • 9
6
votes
9 answers

How to build a compass with the iPhone?

After some searching on Google, I ask myself: Is it possible to build a compass (simple showing the heading/direction) with the iPhone 3G's GPS sensor? I have the suspicion, that this is only possible, if the device is moving. Any ideas are…
Stefan
  • 28,843
  • 15
  • 64
  • 76
6
votes
0 answers

How to get user location using accelerometer, gryoscope, and magnetometer in iPhone?

The simple equation for user location using inbuilt inertial measurement unit (IMU) which is also called pedestrian dead reckoning (PDR) is given as: x= x(previous)+step length * sin(heading direction) y= y(previous)+step length *cos(heading…
6
votes
1 answer

Reading magnetic ink (MICR)

I need to be able read the waveform produced by any arbitrary shape created in magnetic ink. How would it possible to simulate this programmatically? I'm not interested in OCR. As per Magnetic ink character recognition, and assuming you have the…
Salaryman
  • 395
  • 5
  • 13
6
votes
1 answer

Weird behaviour of the magnetic field measurements while rotating the device

The situation: I'm trying to create an indoor localisation system with the use of the magnetic field variations inside a building via fingerprinting. As a sensor I'm using my mobile phone a Galaxy Nexus. Basically the idea to get my fingerprints is…
6
votes
4 answers

ios magnetometer: force display of calibration view

As an user of a mechanical compass, I noticed that the heading that the magnetometer delivers, is often off by 45 degrees or more, although the calibration display did not appear in that cases. If I test, or use my app outdoors, I ever calibrate the…
AlexWien
  • 28,470
  • 6
  • 53
  • 83
5
votes
1 answer

iOS5: low update rate of CLHeading readings -> switching to CoreMotion is problematic

With iOS5 the update frequencey of the Compass raw data reading, CLHeading, dropped dramatically. This rendered my augmented reality app unusable, because it depends on a close-to-real-time reading of the raw compass data. Therefore I'm now trying…
5
votes
1 answer

Using magnetic sensor

I want to get the three coordinates values of the magnetic field measured by the sensor of my phone. For this, I get a handle to the SensorManager by using sm=(SensorManager)getApplicationContext().getSystemService(Context.SENSOR_SERVICE), then get…
Zelig
  • 157
  • 3
  • 12
5
votes
1 answer

Calibration of magnetometer doesn't give expected results

I want to have a "compass heading" (I want to know the angle upon the north) using a magnetometer. I have seen on several tutorials that first, I need to calibrate it. When I looked up on how to do it I saw graphics comparisons of magnetometer value…
MelKoutch
  • 180
  • 1
  • 12
5
votes
1 answer

How can I use the Magnetometer from this Sensor API?

I'm trying to get use the magnetometer from this Sensor API but I'm not sure if I'm doing so correctly. I copied and edited the example code from the their site into my test site; let sensor = new Magnetometer(); sensor.start(); sensor.onreading =…
Nic Hooper
  • 133
  • 7
5
votes
1 answer

How to calculate Heading using Gyro and magnetometer

I have raw data of Gyroscope and magnetometer. on basis of this data, i have to calculate Heading information with an accuracy of 1Deg. I would like to know, is there any algorithm which can help me to get heading info using available information…
Pratik
  • 77
  • 1
  • 1
  • 11
1
2
3
17 18