Seeed-Studio / Seeed_Arduino_LSM6DS3

Grove sensor 6 Axis Accelerometer&Gyroscope using LSM6DS3
Other
53 stars 23 forks source link

FreeFallDetect sample doesn't work #14

Open TobiasReich opened 1 year ago

TobiasReich commented 1 year ago

I tried the sample for the free fall detection but it doesn't seem to work. No fall is detected.

Maybe this sample code could be updated. Or am I missing something?

TobiasReich commented 1 year ago

Turns out there is a bug in the sample code for the free fall detection.

error += lsm6ds3.writeRegister(LSM6DS3_ACC_GYRO_TAP_CFG1, 0x01);

has to be actually

error += lsm6ds3.writeRegister(LSM6DS3_ACC_GYRO_TAP_CFG1, 0x81);

A better description can be found here:

https://forum.seeedstudio.com/t/xiao-nrf52840-free-fall-detection-not-working/272103/9

TobiasReich commented 1 year ago

I added a pull request. https://github.com/Seeed-Studio/Seeed_Arduino_LSM6DS3/pull/15 Maybe someone might be so kind to accept it! Thanks!