Home > Back-end >  Questions about STM32MPU6050 bring DMP library attitude algorithm (program transplantation were atom
Questions about STM32MPU6050 bring DMP library attitude algorithm (program transplantation were atom

Time:11-23

Summer vacation these days that's ok, you spend a little time to research STM32, then saw the MPU6050, buy on the net after a module to start half transplant and write, first of all, because I wrote before OLED IIC mode display, so I just copy the IIC directly to the up, and then the rest of the program has been reference of atoms to write, finish after found there was a problem not solve all the time, is in mpu_dmp_init () when the program will die inside directly, and then went there to have a look the function, mainly mpu_init (), and then into the function, debugging several times find rev this value is equal to 0 x06 every time, and then the program will print out directly, then crazy to find information on the Internet, find problems, there has been no results, then a chance this morning I found a problem, is the problem of the IIC, although my IIC can display OLED in before, and it also can display MPU6050 raw data and temperature, but on the initialization of DMP, IIC timing problems of bigger, no matter how good the IIC, before suggestion must follow before transplantation program, strict IIC written, euler Angle data of images for a serial port to print

CodePudding user response:

I played this, also the application of the atom, but somebody else gave me a PC APP, so easy to run the code to be done

CodePudding user response:

The original poster hello, I am also in the order of i2c code, can also display on the oled, but couldn't read the real-time attitude Angle on mpu, may I ask which sequence to change the i2c
  • Related