Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI360 step counter

    BHI360 step counter

    JAS
    Member

    Hi,

    I have created a custom PCB using the BHI360 and the BMM350.

    I am trying to use the IMU as a step counter, however, it does not seem to be very accurate.  Using the device as a wearable, it seems to register between 30-50% of the steps I take. I am currently using the low power step counter - BHY2_SENSOR_ID_STC_LP,  id 136.,

    Is there any method to trouble shoot the step counter algorithm, or adjust its sensitivity?

    I saw the data sheet contains references to Activity Parameters and to adjusting sensitivity and dynamic range, but I do  not understand how to use these commands or if they are relevant. 

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi JAS,

    Could we know from you:
    What is ODR you used as BHI360 used in wearable device? And what is your test case and detailed test result?
    Yes, "13.3.7 physical sensor control parameters(0x0E00 - 0x0EFF" mentioned some parameters can be modified, but not contain step counter.

    Hi @BSTRobin ,

    Thank you for the response.

    The test case was strapping custom hardware containing the BHI360 to my chest, walking around and manually counting my steps. I noticed that over many tests it seemed to reliably measure 50% of my manual steps, +/-10%. (e.g. 24-27 steps when I walked 50steps, 49-54 steps when I walked 100 steps, and 250 steps when I walked 500). Is this by design? Does the step counter only count a "step" when you do both a 'left' and a 'right' foot step?

    Is the ODR simply the sampling frequency of the virtual sensor? I have sampling frequency set to 1Hz. I ran the get parameter command for the Low Power Step Counter Virtual Sensor (0x0300 + BHY2_SENSOR_ID_STC_LP = 0x0388) and it returned 0x88F90100010010000000803F00000000660C0000050000803F000000. Looking at byte 0x0C-0x0F and 0x19-0x1C (bolded), it comes up as 0x3F800000 which is 1 as a float. I got this information from section 13.3.4/Table70 of the data sheet. 

    Looking forward to hearing your reply. 

    Hi @BSTRobin , just following up on this point - do you have any further advice?

    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