Is it possible to make spatial orientation with magnetic sensor only?

5

Can you determine the spatial orientation of the smartphone using only the x , y , and z values of the magnetic sensor?

    
asked by anonymous 26.09.2014 / 18:52

1 answer

2

First of all, the x , y and z values you refer to are not from the magnetic sensor, but from a component called accelerometer . The magnetic sensor you are referring to is a Hall Effect Sensor, which measures the presence and intensity of a magnetic field, and therefore can measure the magnetism of the magnetic north (geographical south). There are accelerometers working with Hall Effect Sensors, but I will not go into those details.

Grossly speaking, accelerometer is an electronic component capable of measuring acceleration on one or more axes from the forces acting on it. This acceleration is measured with respect to the force of gravity and therefore the acceleration is measured in g and can easily be converted to m / s2.

So suppose we have a VANT , which is taking off from home, from a beautiful runway in a flying club somewhere in Brazil:

AccordingtoAguiar,theactualaccelerationofthedisplacementofthisaircraftismeasuredbytheformula:

Where Ax (v) is the resulting acceleration of the axis on which you intend to measure and A (v) is the total acceleration received. Since g (Φ) is due to the incidence of the force of gravity due to the angle of inclination Φ, since the force of gravity also acts on the accelerometer.

Aguiar states that in order to make the equation of the resulting acceleration on the aircraft, it is necessary to obtain the tilt angle made by the pitch, so that the acceleration is calculated.

Another very interesting thing that you should remember about high school physics classes is that it is possible to measure speed and position from the acceleration, since the derivative of the acceleration as a function of time is the velocity, and if you derive again, you will have the position in meters from the origin.

Answering your question: Yes! It is possible, but doing so from an accelerometer is something much more complex because you will need to monitor the time and you will have to derive to get the position, plus you will need to use a set of other types of sensors and their application it will not be accurate. I recommend that you use GPS, as well as being easier to work with, you will have a very accurate user position on a global scale. The possibility of detecting the position of a particular user can bring interesting applications, one of them is the concept of Locative Mobile Games, demonstrated in this article of my friend Pablo Roxo. If you give more details of your application, maybe I can help you choose which are the best sensors for what you want to do. Soon I'll be adding more details to my answer, I'll talk about other sensors that can help you monitor the position.

    
17.12.2014 / 22:34