Jump to content
I2Cdevlib Forums

Leaderboard

Popular Content

Showing content with the highest reputation on 09/11/2017 in all areas

  1. Ale

    9150 library NOT WORKING

    Hi. I have a problem on my 9150 and arduino. In the past I have made a code for 6050 (with ADO HIGH 0X69) and all was ok and great. I have used the 6050 library and 6050 motionapps 20 library, and, i repeat, all was fine and ok AND dmp WORK very nice. Now, I have tried to use my 9150 (with ADO HIGH 0X69) with the libraru 9150 motion app 41 and all is a disaster... I have downloaded the code for github, but the first thing that i have see is that the arduino IDE was in error to compile it. To solve the problem, i have copied the 6050 motion app 41 and i have replaced the "6050" text with "9150" and now all is ok. But this is not the problem.... The problem is that the 9150_dmp9 is still not working (whitout any error now...) After this, i have found a simple code to read the 9150 raw value of gyro, acc and magneto and ALL IS WORKING. This step was to check the correct work of the sensor, and now I know is ok. Now i have loaded 9150_dmp9 with motionapp41 "modified" and I have activate the debug of the library to know in whis lines are the errors. Now i know yhe problem is in those lines: DEBUG_PRINTLN(F("Waiting for FIRO count >= 46...")); while ((fifoCount = getFIFOCount()) < 46); DEBUG_PRINTLN(F("Reading FIFO...")); getFIFOBytes(fifoBuffer, min(fifoCount, 128)); // safeguard only 128 bytes DEBUG_PRINTLN(F("Reading interrupt status...")); getIntStatus(); and if I try to "comment" with // I have the same error on the following lines... I think the error is NOT in the previous lines, but in an another part of the code..... remember that my 9150 is ADOhigh (0x69) and the magneto is (0x0C). Please help me, and sorry for my bad language...
    0 points
×
×
  • Create New...