Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to detect tap or impact using bno055 sensor or using any other sensor

    How to detect tap or impact using bno055 sensor or using any other sensor

    zubair2207
    Member

    Hello everyone,

    We are using bno055 and we want to detect tap or impact on a physical instrument, so how to configure bno055 to get the tap or what is the process to find.

    We also want to know is this possible to detect impact using bno055 or we should use different sensor. We have mounted the sensor on a physical instrument and now want to detect impact when someone hits the instrument, how this can achieve. Right now we are getting readings for orient, accel, and others. Any help will be highly appreciated

    7 REPLIES 7

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    I assume BNO055 is installed in the handle of the cricket. You may use BNO055 ACCOnly mode to log accelerometer data into a file. You may refer to the library at https://github.com/adafruit/Adafruit_BNO055.

    In order to detect if the ball touches the cricket or not, you need to fine tune BNO055 any-motion interrupt based on the logged accel data when you do both empty swing and hitting the ball. Then you can figure out the any-motion threshold and duration. Or you can develop your own algorithm running in your MCU to detect if the cricket hits the ball or not based on accel data.

    Thanks.

    Hi, Yes you are right BNO005 is mounted on the cricket handle  .can get any motion, slow motion or notion interuptts by using adafruits bno055 library as you suggested. Does it provide api to access all registered bno055 offer, I doubt some api are not there in adafruit library, as we have to detect motions interuptt and impact of ball with cricket bat. I also read about bosch native c library I think it supports all supports and we can get all regiseter values. Right now I am using Arduino atmega328p and bno055. I also install atlem studio. Please suggests some tools and more stuff, because we have to detect the impact of ball with cricket bat.

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    If you can use Arduino atmega328P to read and write BNO055 registers, then you can directly enable BNO055 accel any-motion interrupt and configure some parameters such as threshold and duration to test if it can give you any-motion interrupt when the cricket hits the ball. You don't have to use API or library to do that.

    Thanks.

    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