MPU6000 SPI Library

Hi!

I have a pre-made board. It uses an Invesesense MPU-6000 IMU, connected via SPI.

Does anyone know of any libraries to facilitate the MCU<->MPU-6000 communication, over SPI. I have trawled all through google and the inbuilt library manager and not found anything which works.

Thanks in advance.

Did you check out this repo? It supports SPI. https://github.com/simondlevy/MPU

Thanks for the reply - Yep tried this one already. Using the example code for MPU6050 and adapting for MPU6000, leads to zero values being output for accelerations/rotations/temperatures :confused:

Wiring issue? How is it connected to your arduino board? And which board are you using?

All wired correctly. It is a premade Matek Sys F405 Wing board. Using the Arduino platform on STM32.

EDIT: Can successfully read register 0x75 (Chip ID) when using the inbuilt SPI library.

Sorry about, that guys! I never got around to making my MPU library work with MPU6000/SPI.

I do have it working in a new branch of my Hackflight toolkit, however; for example, this sketch with a Teensy4.0 board. I'm currently working on getting it to work with off-the-shelf flight-control boards (STM32F405, F411, ...). Once I've got that working, I'll move it to the main Hackflight branch.

I've created a standalone Arduino library for this sensor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.