cancel
Showing results for 
Search instead for 
Did you mean: 

"Relative" heading without calibration?

TStee.1
Associate

Hello

I’m work on a project where it is necessary to detect if unit has moved and/or rotated. The unit (battery powered and wireless) is eg. placed on the floor and needs to be placed with same heading if it is picked up and put back up on floor within heading being +/-5-10 deg and in an upright position. The unit also have a PIR to detect movement in front of the unit. When repositioning and turning it to find the right heading, the unit will make a sound when the heading is found.

In the unit is a LIS3DH accelerometer and a LIS2MDL magnetometer.

From the accelerometer any movement will detected if the unit has been eg. picked up or pushed etc.

When put back the magnetometer is used to find the heading.

In test, it returns the correct heading each time, but can it be trusted over time?

True north etc is not needed since the heading is set once for this unique placement of the unit – it is more like a relative heading.

The accelerometer is always on, but magnetometer is off by default only if movement are detected by accelerometer the magnetometer is turned on. Also, magnetometer is shortly turned on each 10 minutes to verify the heading.

It is impossible to have user do a calibration like the 8-figure calibration so must be completely without. Can calibration be discarded since it is only matter finding the same heading again in the same environment?

If the position selected, will stationary metal which is close to the unit and the magnetometer is interfered, will the heading still be same when you put unit back?

What can possibly go wrong?

Thanks :)

1 REPLY 1
Federica Bossi
ST Employee

Hi @TStee.1​ ,

In test, it returns the correct heading each time, but can it be trusted over time? Yes

Can calibration be discarded since it is only matter finding the same heading again in the same environment? Calibration is necessary due to soft and hard iron that modify the magnetic field

If the position selected, will stationary metal which is close to the unit and the magnetometer is interfered, will the heading still be same when you put unit back? An interference is not predictable so it is hard to estimate such thing.

If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.