What are the steps of Initialize(just using accel & temp) and enable FIFO(just using accel & temp)?
A. Initialize(accel & temp & cycle mode) Here are my setting steps for the MPU-9150(using cycle mode and without FIFO): step1. The register 107 is set to 0x80, do a while until reset is done. //reset MPU-9150 (all register value = 0x00) step2. The register 25 is set to 0x18. //setting sample rate to 40Hz (=1000/25) step3. The register 28 is set to 0x00. //setting accel's full scale range = +-2g step4. The register 26 is set to 0x04. //setting accel's low pass filter bandwidth = 21Hz step5. The register 56 is set to 0x01. //enable INT step6. The register 107 is set to 0x20. //open cycle mode step7. The register 108 is set to 0xC7. //setting cycle frequency to 40Hz, disable Gyro It can work, I do this right? what is your setting steps?
B. Enable FIFO There is same setup steps for FIFO program. step1. The register 107 is set to 0x80, do a while until reset is done. //reset MPU-9150 (all register value = 0x00) step2. The register 107 is set to 0x00. //close sleep mode. step3. The register 108 is set to 0x07. // disable Gyro step4. The register 28 is set to 0x00. //setting accel's full scale range = +-2g step5. The register 26 is set to 0x06. //setting accel's low pass filter bandwidth = 5Hz step6. The register 26 is set to 0xC7. //setting sample rate to 5Hz (=1000/200) step7. The register 106 is set to 0x40. //enable FIFO step8. The register 35 is set to 0x88. //accel & temp data into FIFO After setting, when I read register 114 & 115, the data is 0. I should be the wrong way, Could someone help me? I went to the "Github" website has seen many example programs, but most of them are DMP application, I can't fully understand them.