kriswiner / EM7180_SENtral_sensor_hub

(Affordable) Ultimate Sensor Fusion Solution
https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution/
96 stars 37 forks source link

calibration & warmstart for USFS LSM6DSM + LIS2MD #39

Open leedsp opened 5 years ago

leedsp commented 5 years ago

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

kriswiner commented 5 years ago

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 notifications@github.com 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_ .

CaptIgmu commented 5 years ago

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!

kriswiner commented 5 years ago

Thanks Ron...

On Sat, Feb 2, 2019 at 8:14 PM Ron M. Battle notifications@github.com 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_ .