Mpu9250.h

0 views
Skip to first unread message

Brook Mithani

unread,
Aug 4, 2024, 1:56:03 PM8/4/24
to cordytersou
Im also attaching the main.cpp file which I created for the project hoping it could show how I'm implementing the code. I've added the libraries (also declaring which I2C port to use in mpu9250.c as per the wiring diagram) from the github page as shown below:

Since I'm a super beginner, I'm not sure what you mean by the fault in logic. The tutorials I have seen have not helped me understand the function HAL_I2C_IsDeviceReady to a thorough extent. It's worth mentioning that this bit is from the library I downloaded from the GitHub page in my original link.


I apologise for not being of any more help, I did however find this register map in an Arduino Library to connect to the MPU-9250. There are slight differences from the registers listed in mpu9250.h, though I'm not sure what this means. I can confirm that I've been able to connect to the MPU-9250 using my Arduino Due and the official Arduino library that I got these registers from.

3a8082e126
Reply all
Reply to author
Forward
0 new messages