IMU connection unstable, not possible and freezing

Issue #50 closed
Richard Heyder created an issue

Hello,

I am currently trying to make the MPU-6050 work.
Everytime I press play the console says “IMU not connected” or similar. I have the board laying flat and not moving, all cables tightly connected.

I keep pressing “Discover Board” or opening and closing the ports. After a while suddenly it works, without making any changes to the board, port, Unity or Arduino. If it works, it stops or freezes after about 5-10 seconds. It seems random but there has to be an underlying issue or error I made. I searched this forum and tried some things.

I tried:

  • Upgrading to newest version of Uduino
  • Upgrading Unity version
  • reloading the code
  • closing and opening of Unity
  • lower baud rate in Unity and the Arduino code
  • commenting the “while (fifoCount < packetSize) fifoCount = mpu.getFIFOCount();” line

I also experienced that the string Unity receives is longer the 4, but this is only an secondary issue and only happend once. The other problem is more important. Hopefully there is still something that I can try to fix this issue.

Using Arduino Uno, the IMU example, a MPU6050 and Unity 2021.2.8f1

Thanks in advance!

Comments (1)

  1. Log in to comment