Skip to content

[Feature Request] Add an example showing how to remove the bridge offset #11

@PaulZC

Description

@PaulZC

As per this comment: #5 (comment)

From the datasheet:

USING SET AND RESET TO REMOVE BRIDGE
OFFSET

The integrated SET and RESET functions of the
MMC5893VA enables the user to remove the error
associated with bridge Offset change as a function of
temperature, thereby enabling more precise heading
measurements over a wider temperature than
competitive technologies. The SET and RESET
functions effectively alternately flip the magnetic
sensing polarity of the sensing elements of the device.
1) The most accurate magnetic field measurements
can be obtained by using the protocol described
as follows: Perform SET. This sets the internal
magnetization of the sensing resistors in the
direction of the SET field.
2) Perform MEASUREMENT. This measurement
will contain not only the sensors response to the
external magnetic field, H, but also the Offset; in
other words,
Output1 = +H + Offset.
3) Perform RESET. This resets the internal
magnetization of the sensing resistors in the
direction of the RESET field, which is opposite to
the SET field (180o opposed).
4) Perform MEASUREMENT. This measurement
will contain both the sensors response to the
external field and also the Offset. In other words,
Output2 = -H + Offset.
5) Finally, calculate H by subtracting the two
measurements and dividing by 2. This procedure
effectively eliminates the Offset from the
measurement and therefore any changes in the
Offset over temperature.
Note: To calculate and store the offset; add the two
measurements and divide by 2. This calculated offset
value can be subtracted from subsequent
measurements to obtain H directly from each
measurement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions