EFeru / hoverboard-sideboard-hack-STM

Hoverboard sideboard hack for STM32 boards
GNU General Public License v3.0
49 stars 42 forks source link

Support for MPU6052C #10

Open amremam2004 opened 2 years ago

Candas1 commented 2 years ago

Thanks for your contribution. I might have some sideboards with mpu6052c IMUs, I will give it a try when I can. I believe this mpu6052c IMU could be on both GD and STM boards.

Have you found more information about this IMU ? Is it having a DMP ?

Candas1 commented 2 years ago

ok it seems it has a DMP based on this datasheet

Candas1 commented 2 years ago

1650279697961480606153089944135

Candas1 commented 2 years ago

I did some checks now, but there is something I don't understood.

The old code seems to work on the STM32F103C8T6 and a MPU6052C IMU. With a GD32F103C8T6 chip and a MPU6052C IMU, when displaying the euler angles with debug variant, the loop is slow and the angles are all zero, but your commit fixes this.

So your fix is actually specific to boards with GD32F103C8T6 chip and MPU6052C IMU ?

I also tried a board with a GD32F130C6T6 chip and a MPU6052C IMU by flashing the firmware by the other repo, reading the angles is also worked well.

amremam2004 commented 2 years ago

You are right, I had this issue on gd32f103c8 with mpu6052c, I don’t have stm32 with 6052c So, this fix is specific to this combination

Btw, it’s not mentioned in the datasheet that 6052c has self test feature Have you tried self test option gd32f130 with mpu5052c?

On Mon, Apr 18, 2022 at 10:35 AM Candas1 @.***> wrote:

I did some checks now, but there is something I don't understood.

The old code seems to work on the STM32F103C8T6 and a MPU6052C IMU. With a GD32F103C8T6 chip and a MPU6052C IMU, when displaying the euler angles with debug variant, the loop is slow and the angles are all zero, but your commit fixes this.

So your fix is actually specific to boards with GD32F103C8T6 chip and MPU6052C IMU ?

I also tried a board with a GD32F130C6T6 chip and a MPU6052C IMU by flashing the firmware by the other repo, reading the angles is also worked well.

— Reply to this email directly, view it on GitHub https://github.com/EFeru/hoverboard-sideboard-hack-STM/pull/10#issuecomment-1101457702, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQOUEGJQTKOAI55YJBYFHDVFVXKFANCNFSM5TTQWPAA . You are receiving this because you authored the thread.Message ID: @.***>

Candas1 commented 2 years ago

It doesn't seem to work image