LIS3DH can't find accelerometer

Hey,
I’ve been using the Asset Tracker with the electron for a while now.
Everything seemed to work until suddenly the LIS3DH couldn’t find the accelerometer any more.

  LIS3DHSPI accel(SPI, A2, WKP);

  // The accelerometer configuration
  LIS3DHConfig config;
  config.setLowPowerWakeMode(MAX_ACCEL_TRESH);

  // Setting the config up
  if (!accel.setup(config)) {
    debugln("Accelerometer not found!");
  }

I get “Accelerometer not found!” evey time now, this code used to work and I didn’t change anything?
Did annyone encountered this issue in the past?
Is there any chance it’s an hardware error?

Thasks!

Hello,

Let me ping someone that might be able to help, @rickkas7 are you able to assist?

Kyle

Hey,

thanks for the help.
I removed the electron from the Asset Tracker, then connected again and somehow everything went back to work.
Weird indeed, but everything seems to run in flow now.

Thanks!

1 Like