Hi all, this is my first post here!
I’m trying to get the LSM6DSO to connect to an Arduino UNO via SPI. I’ve double and triple checked the connections (it’s going through a level shifter). When running it I get the “Could not connect to IMU” message. Here is the setup part of my code:
#include “SparkFunLSM6DSO.h”
#include “Wire.h”
#include “SPI.h”
const int CS = 10;
LSM6DSO myIMU; //Default constructor is I2C, addr 0x6B
void setup() {
SPI.begin();
pinMode(CS, OUTPUT);
Serial.begin(115200);
delay(500);
delay(10);
if( myIMU.beginSPI(CS, 8000000, SPI) )
Serial.println(“Ready.”);
else {
Serial.println(“Could not connect to IMU.”);
Serial.println(“Freezing”);
}
Any idea what could be causing this?