Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Nicla Sense Me BMM150 Magnetometer

    Nicla Sense Me BMM150 Magnetometer

    Frostily6765
    New Poster

    Hello, 

    we are trying to use the magnetometer on the Nicla Sense Me Board for absolute measurements.

    We measured the values of the Magnetometer in a Helmholtz Coil. We measured the values with an Teslameter and the Nicla. The RAW_Data  of the Nicla for the x, y and z values are consequently wrong about the factor 16 compared to the Teslameter.  

    x-values are applied values of the static field and y-values are measured with the Nicla. The linear approximation shows the factor of ~16 between measured and applied values.

    magnet_verlauf.png

    Furthermore the compensated Data (blue line in left graphs "norm") jumps randomly to the positive/negativ Overflow  ( -32768 or 32767).

    In the attached example we had a magnetic field of 400 uT in z-direction of the sensor and a sample frequency of 1kHz. In the right samples only the RAW data is shown.

    Magnet_1kHz_sampling_400uT.pngMagnet_1kHz_sampling_400uT_RAW.png

      

    Our suggestion is that some bits are shifted falsely here. Can you help us and fix this bug?

    Futhermore, we did an FFT of the signals for a static magnetic field and measured a clear peak at 20 Hz. Therefore we tried applying AC fields, to see if this frequency in the measurement data fits to the applied field frequencies, and if the 20 Hz frequency remains the same. The answer to both unfortunately is no. 

    The picture shows the RAW-data and the FFT for a field with a frequency of 1Hz and the maximum peak at the FFT is at 13 Hz.

    magnet_frequenz.png

    Anyone has ideas where this is coming from?

    6 REPLIES 6

    Hi Frostily6765,

    compensated Data (blue line in left graphs "norm") jumps randomly to the positive/negative Overflow.
    Jumps randomly issue can be reproduced in SENSOR_ID_MAG virtual sensor. when 400uT magnetic field added in -z direction. We will do further analysis for it.

    FFT of the signals for a static magnetic field is measured a clear peak at 20 Hz.
    Haven't fond the abnormal peak at 20hz in 3D coil environment. Since the max ODR of BMM150 is around 300hz(200hz is limited in BHI sensor hub), please make sure the read interval is stable and should be below 200hz limitation. And the possible reason can be that the driven power of your Helmholtz coils have some 15hz noise.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Frostily6765,

    Background algorithm BSX need gyro to do calibration with magnet sensor, please refer the following code to  enable gyro sensor.

    image-2022-08-12-17-37-20-354.png

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist