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

What is the different between using accelerometer&gyroscope and accelerometer&Magnetometer to find the orientation?

Using accelerometer&gyroscope to find orientation need to integrate gyroscope and need to use filter. The program will become very complicated. I try to use this method but I can't control the time interval of getting sensor data. Therefore, I can't…
0
votes
2 answers

How to get speed of a train without using GPS

How can I measure approximate speed of a train in which I am travelling without using GPS/location services? The train can start underground or can start from ground level (where GPS is available) and then get underground in the subsequent…
SandeepAggarwal
  • 1,273
  • 3
  • 14
  • 38
0
votes
1 answer

Android point direction with 2 locations

I'm actually coding an application on Android and I need to point a certain direction, explaination, I have a position that is fixed and the position of my smartphone (the two in Longitude Latitude) and I want to point an arrow to the direction…
0
votes
1 answer

x-IMU Hard-iron calibration Values too big for Register

I am using a x-IMU from x-io Technologies. For drift correction it uses the AHRS On-board algorithm. Without Hard-iron calibration there is a small continuous rotation. From Hard-iron calibration with x-IMU-GUI-v13.1 I get values like: x-axis…
MagnusH
  • 1
  • 2
0
votes
1 answer

Getting calclated values from mpu 9150

for a school project we got a mpu 9150 (Gyro/Accelerometer/Magnetometer(?)) and we want to get Roll/Pitch/Yaw/Heading for it. I used a code that was as an example in the libary, but it gives us only the raw datas in that format:…
SeGa
  • 27
  • 3
0
votes
2 answers

On iOS/Android, can a magnetometer determine precise indoor mapping location?

IndoorAtlas claims that it's able to acquire exact location signal through a device's magnetometer for geolocation purposes. How is this possible? Is this a viable alternative to GPS, which does not work indoors, for determining where a person is at…
0
votes
0 answers

Android : Representing graphics in a smooth manner

I am developing an indoor positioning app. One of the features of the map is representing the collected magnetic field strength data in a view. It is represented in the following manner: The data is collected at every 1m point along x & y (see…
dfj328
  • 367
  • 2
  • 13
0
votes
0 answers

Strange magnetometer readout

I am attempting to readout the data from my MPU-9150 magnetometer and getting some odd numbers. I have accessed the magnetometer within the IMU and am getting data which changes with the orientation of the IMU but is not within the range specified…
0
votes
0 answers

Recognize Device Position In User's Hand

I need to recognize how a user hold his device. So i tried to use in couple accelerometer and magnetometer in this way: public void onSensorChanged(SensorEvent event) { switch(event.sensor.getType()) { case…
paolo2988
  • 857
  • 3
  • 15
  • 31
0
votes
0 answers

iOS orientation estimation and heading error

Instead of doing my own sensor fusion, I am using the Quaternions available from iOS and converting them to Euler angles. I walked around in a rectangle shape for few times and I observe that the shape is not as expected. I am plotting the shape by…
chintan s
  • 6,170
  • 16
  • 53
  • 86
0
votes
1 answer

Android Tilt issue with Accelerometer and Magnetometer

I am trying to detect Yaw, Pitch & roll using the following code: @Override public void onSensorChanged(SensorEvent event) { if (event.sensor == mAccelerometer) { System.arraycopy(event.values.clone(), 0,…
user1148358
0
votes
2 answers

GPS Bearing on which Scale

On Which scale does location.getBearing()returns the angle ,is it from 0 to 360 in degrees of east of ture north or it is in some else scale. Does My phone's heading with true north need to match this bearing if my phone is placed parallel to the…
0
votes
1 answer

Getting accleration perpendicular to the direction of the gravity irrespective of the phone orientation.

I am trying to get the acceleration on the two axes which are perpendicular to the direction of the gravity irrespective of the orientation of the phone, but not quite sure on how to do that, I have been looking into using TYPE_MAGNETIC_FIELD and…
0
votes
2 answers

What are the boundaries for the SensorEvent values?

I'm programming an APP for Android and i can't find the boundaries for SensorEvent values on the documentation. Is there any way to know what are the limits or to obtain the device limits? Thanks!
Motheus
  • 533
  • 5
  • 21
0
votes
2 answers

Beginner: Need Help Accessing Magnetometer Data using Swift

TLDR - Goal: Build a simple compass app I'm brand new at coding and I'm challenging myself to try and learn something new. I've studied up on the main components of coding and followed a few simple tutorials. I've also been learning a lot on…
KeeperOfKale
  • 711
  • 1
  • 7
  • 10