sparkfun / SparkFun_BNO080_Arduino_Library

An Arduino Library for the BNO080 IMU combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms.
Other
81 stars 62 forks source link

SPI examples not working #35

Closed leaf0810 closed 4 years ago

leaf0810 commented 5 years ago

Something wrong with function myIMU.beginSPI()

I run SPI examples with arduino uno and BNO080 imu.But I failed.I'm sure the connection is right.However,I got the warning,"BNO080 over SPI not detected. Are you sure you have all 6 connections? Freezing..." And I test the interface ,!INT,no valtage. Is there something wrong with IMU?

Your workbench

Arduino uno; Sparkfun BNO080 IMU.

Steps to reproduce

Open Example1-RotationVector.ino and run it in Arduino IDE.

Expected behavior

no "BNO080 over SPI not detected. Are you sure you have all 6 connections? Freezing..."

Actual behavior

here it print: SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI Wait SPI INT timeout BNO080 over SPI not detected. Are you sure you have all 6 connections? Freezing...

nseidle commented 4 years ago

I just retested the SPI interface. Everything is working fine. Be sure to check the instructions on the example again. For SPI to work:

I'm going to close this issue but if you continue to have problems please let us know.