Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Keep getting same values for accelerometer, gyro and magnatometer

    Keep getting same values for accelerometer, gyro and magnatometer

    nelky22
    New Poster

    Hi,

    I tried with the following operation modes

     setup    |   power mode  |   operating mode                 |   Orientation  |   Gyro unit   |   Accel unit                |   Read-out 
     option  |   (0x3E)              |   (0x3D)                                    |   (0x3B)            |   (0x3B)       |   (0x3B)
     ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
           0       |   normal mode |   non-fusion mode AMG   |   Android        |   dps               |  mg                              |  Accel, Mag, Gyro         
                     | (0x00)                |    (0x07)                                   |  (0x80)            |   (0x00)         | (0x01)                       |
           1       |   normal mode |   non-fusion mode AMG   |  Android          |  dps               | msq (dvd by 100) |  Accel, Mag, Gyro                                                           
                     |    (0x00)              |   (0x07)                                   |  (0x80)             |  (0x00)         | (0x00)                       |
           2      |   normal mode |   fusion mode NDOF           |   Android         |  dps               |   mg                             |  Accel, Mag, Gyro   
                    |    (0x00)             |   (0x0C)                                     |  (0x80)            |  (0x00)         |   (0x01)                      |
           3      |   normal mode |   fusion mode NDOF           |  Android          |  dps               | msq (dvd by 100) |  Accel, Mag, Gyro  
                    |    (0x00)              |   (0x0C)                                    |  (0x80)            |  (0x00)         | (0x00)                        |
           4       | normal mode  |   fusion mode NDOF           |  Android          |  dps               |  mg                              |  Gravity, Mag, Gyro       
                    | (0x00)                |  (0x0C)                                     |  (0x80)             |  (0x00)         | (0x01)                        |
          5       |  normal mode  |  fusion mode NDOF           |  Android           |  dps               | msq (dvd by 100) |  Gravity, Mag, Gyro
                   |  (0x00)                | (0x0C)                                      | (0x80)              | (0x00)          | (0x00)                        |
     
    For option 0
    For accelx, i read from address 0x08 and 0x09, I got 23, in decimal
    For accely, i read from address 0x0A and 0x0B, I got 0, in decimal
    For accelz, i read from address 0x0C and 0x0D, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 23, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 23, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
    For option 1
    For accelx, i read from address 0x08 and 0x09, I got 23, in decimal
    For accely, i read from address 0x0A and 0x0B, I got 0, in decimal
    For accelz, i read from address 0x0C and 0x0D, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 23, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 23, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
    For option 2
    For accelx, i read from address 0x08 and 0x09, I got 28, in decimal
    For accely, i read from address 0x0A and 0x0B, I got 0, in decimal
    For accelz, i read from address 0x0C and 0x0D, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 28, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 28, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
    For option 3
    For accelx, i read from address 0x08 and 0x09, I got 28, in decimal
    For accely, i read from address 0x0A and 0x0B, I got 0, in decimal
    For accelz, i read from address 0x0C and 0x0D, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 28, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 28, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
    For option 4
    For gravityx, i read from address 0x2E and 0x2F, I got 28, in decimal
    For gravityy, i read from address 0x30 and 0x31, I got 0, in decimal
    For gravityz, i read from address 0x32 and 0x33, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 28, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 28, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
    For option 5
    For gravityx, i read from address 0x2E and 0x2F, I got 28, in decimal
    For gravityy, i read from address 0x30 and 0x31, I got 0, in decimal
    For gravityz, i read from address 0x32 and 0x33, I got 36, in decimal
     
    For magx, i read from address 0x0E and 0x0F, I got 28, in decimal
    For magy, i read from address 0x10 and 0x11, I got 0, in decimal
    For magz, i read from address 0x12 and 0x13, I got 36, in decimal
     
    For gyrox, i read from address 0x14 and 0x15, I got 28, in decimal
    For gyroy, i read from address 0x16 and 0x17, I got 0, in decimal
    For gyroz, i read from address 0x18 and 0x19, I got 36, in decimal
     
     
     DO you notice that the values are always the same for accel, mag, and gyro readings?  Why is it so?  Do I miss out some register settings before I start to read out the registers?
     
    Please help...
     
    Regards,
     
     
    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi nelky22,

    Did you use BNO055?

    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