EM7180_SENtral_sensor_hub icon indicating copy to clipboard operation
EM7180_SENtral_sensor_hub copied to clipboard

Warmstart seems not complete

Open arduz opened this issue 7 years ago • 6 comments
trafficstars

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.

arduz avatar Jul 02 '18 20:07 arduz

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 [email protected] 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 .

kriswiner avatar Jul 02 '18 21:07 kriswiner

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?

arduz avatar Jul 03 '18 20:07 arduz

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 [email protected] 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 .

kriswiner avatar Jul 03 '18 20:07 kriswiner

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?

arduz avatar Jul 04 '18 10:07 arduz

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 [email protected] 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 .

kriswiner avatar Jul 04 '18 16:07 kriswiner

@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.

braincore avatar Aug 07 '18 20:08 braincore