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

Warmstart seems not complete #29

Open arduz opened 6 years ago

arduz commented 6 years ago

Hi, I have calibrated my Sentral successful and stored the calibration values in EEPROM. Then I have used your sketch for Warmstart (the newest Version) and used it without input from Serial Monitor (I have set warm_start = 1, always). I have mounted the Sentral on a breadboard and print out the values for yaw, pitch and roll on a little TFT screen. But the values (especially for Yaw) after restart (Warmstart) are horrible. However I move the board with Sentral three times in a 8 figure and then check the values they are wonderful (differences less than 2 degrees). Have you an explanation therefore? I have expected, that the values after Warmstart are ok without necessity to execute the 8-figure-motion.

kriswiner commented 6 years ago

Looks like you are not storing the warm start parameters properly. What is your MCU?

On Mon, Jul 2, 2018 at 1:44 PM, arduz notifications@github.com wrote:

Hi, I have calibrated my Sentral successful and stored the calibration values in EEPROM. Then I have used your sketch for Warmstart (the newest Version) and used it without input from Serial Monitor (I have set warm_start = 1, always). I have mounted the Sentral on a breadboard and print out the values for yaw, pitch and roll on a little TFT screen. But the values (especially for Yaw) after restart (Warmstart) are horrible. However I move the board with Sentral three times in a 8 figure and then check the values they are wonderful (differences less than 2 degrees). Have you an explanation therefore? I have expected, that the values after Warmstart are ok without necessity to execute the 8-figure-motion.

— 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/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qhMGcw3atL9r7QiU8uctD-SIgnioks5uCoYdgaJpZM4U_6o4 .

arduz commented 6 years ago

Hello, my MCU is Teensy 3.5. The warm-start parameters I have stored with the sketch EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino. I"ll try to repeat the calibration procedure described in the users guide chapter F with this sketch. Is it possible, that the stored parameters in the EEPROM was deleted because I used the Sentral (EM7180) in a full sunny environment? Should I be more careful with sun light?

kriswiner commented 6 years ago

No, sunlight will not affect the EEPROM unless exposed over many weeks.

You can check that you can read the warm start parameters and make sure they make sense (not all 0xFF, etc).

On Tue, Jul 3, 2018 at 1:53 PM, arduz notifications@github.com wrote:

Hello, my MCU is Teensy 3.5. The warm-start parameters I have stored with the sketch EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino. I"ll try to repeat the calibration procedure described in the users guide chapter F with this sketch. Is it possible, that the stored parameters in the EEPROM was deleted because I used the Sentral (EM7180) in a full sunny environment? Should I be more careful with sun light?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/29#issuecomment-402288850, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qpA0W9Drm5lvsEznH1qw5NfSXaWKks5uC9nRgaJpZM4U_6o4 .

arduz commented 6 years ago

I assume, that I can use e.g. the function "readSenParams()" from the calibration sketch and print out the params on Serial Monitor. Or is there a better possibility to check the validity of the stored Parameters?

kriswiner commented 6 years ago

All you can do is read the 128 bytes and verify that they are not 0xFF.

On Wed, Jul 4, 2018 at 3:34 AM, arduz notifications@github.com wrote:

Reopened #29 https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/29.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/29#event-1716020111, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qt8VQgPmLc3gZ1XO-gDxh5YLnNI8ks5uDJosgaJpZM4U_6o4 .

braincore commented 5 years ago

@arduz: Be sure to check that the sensor is not reporting a magnetic anomaly. If so, the magnetometer is ignored and convergence to heading is poor. Sometimes, waving the sensor around gets rid of the magnetic anomaly report and then convergence to yaw happens quickly. I've observed this behavior even with warm start parameters extracted in the same location without a magnetic transience warning.