Skip to content

Wrong values every 16th time  #9

@fred9999

Description

@fred9999

Hi,

I bought a couple of SparkFun ISM330DHCX + MMC5983MA modules. Really accurate sensors, thank you.

Testing MMC5983MA with your library I encountered a strange problem though. Running the example Example1-I2C_Simple_measurement.ino I get wrong measurements in every 16th time the measurement is taken. It does not depend on the delay number at the end of the loop. With delay bigger or smaller, the wrong measurement occurs every 16th time.

When using the call
currentX = myMag.getMeasurementX();
currentY = myMag.getMeasurementY();
currentZ = myMag.getMeasurementZ();
all axes have wrong measurements

When using the call
myMag.getMeasurementXYZ(&currentX, &currentY, &currentZ);
only X axis has wrong measurements

For clarity I have added screenshots of Arduino serial plotter view.

I am using the 1.0.3 version of the library and I am running the code on ESP32.

Hopefully you can solve this problem.

Thank you beforehand,
Fred

problem_X_axis
problem_all_axes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions