EM7180_SENtral_sensor_hub icon indicating copy to clipboard operation
EM7180_SENtral_sensor_hub copied to clipboard

calibration & warmstart for USFS LSM6DSM + LIS2MD

Open leedsp opened this issue 6 years ago • 3 comments

Hi Kris, I'm very interested in your USFS LSM6DSM + LIS2MD and going to order it from Tindie. But I can't find any calibration and warm start supporting document or sketch for this board. I do see you have very detailed instructions of accelerometer and magnetometer calibration and warm start for USFS MPU9250, do you have the same supporting document and sketch for USFS LSM6DSM + LIS2MD?

thanks

leedsp avatar Sep 29 '18 09:09 leedsp

I believe the "published" sketches for the MPU9250 will also work for the LSM6DSM_LIS2MDL with the EM7180 in normal mode. Perhaps we will add a sketch with warm start and calibration specifically for the LSM6DSM+LIS2MDL version of the USFS.

On Sat, Sep 29, 2018 at 2:29 AM leedsp [email protected] wrote:

Hi Kris, I'm very interested in your USFS LSM6DSM + LIS2MD and going to order it from Tindie. But I can't find any calibration and warm start supporting document or sketch for this board. I do see you have very detailed instructions of accelerometer and magnetometer calibration and warm start for USFS MPU9250, do you have the same supporting document and sketch for USFS LSM6DSM + LIS2MD?

thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/39, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qskjfBdJniwyboMPw1AnQlI6cs2Vks5ufz14gaJpZM4XAbI_ .

kriswiner avatar Sep 29 '18 18:09 kriswiner

I used @simondlevy EM7180 examples to calibrate and save warmstart for @kriswiner Ultimate Sensor Fusion Solution - MPU9250 and its better successor Ultimate Sensor Fusion Solution - LSM6DSM + LIS2MD. The EM7180 examples use the CrossPlatformDataBus and prior to Arduino-ESP32 release 1.0.1, I had to change /src/ArduinoI2C.cpp to this:


// #define NOSTOP false     // ReSTART needed for some chips
#define NOSTOP true  // ESP32 won't work properly with ReStart I2C reads prior to r1.0.1

Now with release 1.0.1 I don't need to change any code, it just works!

CaptIgmu avatar Feb 03 '19 04:02 CaptIgmu

Thanks Ron...

On Sat, Feb 2, 2019 at 8:14 PM Ron M. Battle [email protected] wrote:

I used @simondlevy https://github.com/simondlevy EM7180 https://github.com/simondlevy/EM7180 examples to calibrate and save warmstart for @kriswiner https://github.com/kriswiner Ultimate Sensor Fusion Solution - MPU9250 https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution-mpu9250/ and its better successor Ultimate Sensor Fusion Solution - LSM6DSM + LIS2MD https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution-lsm6dsm-lis2md/. The EM7180 examples use the CrossPlatformDataBus https://github.com/simondlevy/CrossPlatformDataBus and prior to Arduino-ESP32 release 1.0.1, I had to change /src/ArduinoI2C.cpp to this:

// #define NOSTOP false // ReSTART needed for some chips #define NOSTOP true // ESP32 won't work properly with ReStart I2C reads prior to r1.0.1

Now with release 1.0.1 I don't need to change any code, it just works!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/39#issuecomment-460021633, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtawoL38wCcYeGmGyWrNU3jcKzHSks5vJmIngaJpZM4XAbI_ .

kriswiner avatar Feb 03 '19 04:02 kriswiner