ARDUIMU_v3 hungup

Asked by Toshiaki Sekita

help ! don`t work FreeIMU_serial on ARDIMU_v3
data is not sent....

Question information

Language:
English Edit question
Status:
Solved
For:
FreeIMU Edit question
Assignee:
No assignee Edit question
Solved by:
EmilG
Solved:
Last query:
Last reply:
Revision history for this message
Fabio Varesano (fabio-varesano) said :
#1

First check that you have edited FreeIMU.h configuring it for Arduimu support. Then try FreeIMU_raw and report here what's happening. Thanks

Revision history for this message
Toshiaki Sekita (t-sekita-ore) said :
#2

I try FreeIMU_raw
-----------------------------------------------
void setup() {
  Serial.begin(115200);
  Wire.begin();

  delay(500);
  Serial.print('a');
  my3IMU.init(true); // the parameter enable or disable fast mode
  Serial.print('b');
  delay(500);
}
-----------------------------------------------
Then serial monitor output only 'a'

stop at my3IMU.init(true) .

Revision history for this message
Best EmilG (golene) said :
#3

It looks like in MPU60X0.cpp a line was inadvertently omitted.

void MPU60X0::initialize() {
    // SPI Configuration
 if (bSPI) {
  SPI.begin(); <<<< ADD THIS LINE
            pinMode(devAddr, OUTPUT);
            digitalWrite(devAddr, HIGH);
  reset();
  delay(100);
  switchSPIEnabled(true);
  delay(1);
 }
    setClockSource(MPU60X0_CLOCK_PLL_XGYRO);
    setFullScaleGyroRange(MPU60X0_GYRO_FS_250);
    setFullScaleAccelRange(MPU60X0_ACCEL_FS_2);
    setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
}

Revision history for this message
Toshiaki Sekita (t-sekita-ore) said :
#4

ARDUIMU_V3 started to run normally.
Thank you !

Revision history for this message
Fabio Varesano (fabio-varesano) said :
#5

Thanks! Fix commited in r33. See http://freeimu.varesano.net/node/7

Revision history for this message
EmilG (golene) said :
#6

You are welcome.

Thank you for making this software available to us!