hanyazou / BMI160-Arduino

76 stars 35 forks source link

Placing the breadboard horizontally(remapping axis) #18

Closed brightproject closed 1 year ago

brightproject commented 1 year ago

I use such a board in the device BMI160

only placing it not horizontally, but vertically. Скриншот 10-08-2023 19 36 00

How to remap the axes, I did not find another way how to do remapping through Bosch software.

I pass the data through the Madgwick filter and get the roll, pitch and heading angles at the output. But if I use this data when the board is in a vertical position, I have very small movements, due to the lack of axes. But if I use the received data for processing and visualize them using the transformation matrix, then all rotations of the body are normally performed. Скриншот 10-08-2023 22 58 59

As far as I understand, there are two ways to solve the problem with the orientation of the axes:

  1. changing raw data directly in the Bosch sensor
  2. application of the transformation matrix, but this requires the computing power of the microcontroller Unfortunately, I did not find working examples with axis orientation for BMI160.
brightproject commented 1 year ago

imageAxis

Solution