2021-03-09 11:50 PM
I'm using L3GD20H on a flight controller board for drones.
While conducting a temperature test that starts from -11°C and ends at 50°C, I observed a sharp rise/drop in gyro values at around 23°C. (The board stayed still the whole time inside a vibrating chamber.)
Can you give me any insight on why this happens or/and how to prevent it?
Solved! Go to Solution.
2021-06-27 05:36 PM
Hi @Ggfd.1 @Eleon BORLINI ,
Sorry I was away for some time.
I solved this issue by re-flashing the firmware (in my case, ardupilot copter.)
But I decided rather not to use the board, just in case.
2021-03-11 01:49 AM
Hi @Gabsu ,
that's a strange behavior indeed...
Did you check if this behavior is repeatable and/or if it occurs on a single part or also on other ones?
And is the conversion of raw data depending on the temperature, in your firmware code?
As temporary workaround, since the effect of this sharp transition looks like to increase the zero rate level of the device, you could think to apply a high-pass filter to the dataout, as described in the datasheet p.19.
-Eleon
2021-03-11 05:14 PM
Hi @Eleon BORLINI
1) I have 20+ boards in my hands and yes, the behavior is repeatable on 2 - 3 boards, other boards are fine.
2) I'm using an open source firmware called ArduCopter. The firmware I'm using is not modified on my end. I'll have to look into this.
3) Thank you for your suggestion, I'll read the document.
Please let me know if anything rings a bell. Thank you!
2021-03-12 03:55 AM
Hi @Gabsu ,
and do you see a repeatable failure just at 23°C on all the failing devices?
Could you try to speed up or slow down the ramp (or to invert it), to check whether it is a temperature related failure or a "time-related" issue?
I'm wondering if the custom firmware sets any temperature compensations centered around 25°C...
I'm asking you so since I have no guess for a device failure so far, indeed...
-Eleon
2021-03-15 08:37 PM
Hi @Eleon BORLINI ,
I double-checked and only 2 of my flight controller boards had the same issue.
Also, it turned out that one of them was a fake chip posted on: https://community.st.com/s/question/0D53W00000cyCTnSAM/l3gd20h-fake-ic-issue
Anyway, I ran another test with the genuine chip in an environment with a different rate in temperature change (picture on the left),
And it also happened at 23°C.
(The picture on the right is the result from my original post.)
Also, I checked if this is a time-related issue. I left the board on for about 14 mins (left) and 2 hours (right) at room temperature and both didn't have the problem.
And FYI, the result of the fake chip, where the issue happens at 28°C.
So I'm still not sure what the problem is, the issue does not occur on the other duplicates with L3GD20H, with the same firmware.
Maybe I'll try flashing the board and re-installing the firmware.
It'd be great to know any ideas on methods to pinpoint why this behavior happens.
Thanks.
2021-03-17 08:50 AM
Hi @Gabsu ,
First, thank you for the detailed reportage of the issue.
Glad to hear that one of the two failing chips was a fake one.
However, it's difficult for us to narrow down the issue, if it is not repeatable and is affecting only a single device (and not the other ones). Can you please confirm me that, when you initially start the device at 25°C ambient temperature, you don't see the issue? You could think to perform a self-test on that specific part, to check the goodness of the MEMS (you can find a sample code for the self-test here --> l3gd20h_self_test.c)
>> Maybe I'll try flashing the board and re-installing the firmware.
This is a good trial, please let me know if you'll make any progress.
-Eleon
2021-06-17 01:07 AM
.
2021-06-25 07:36 AM
Let's check whether @Gabsu did some progresses
-Eleon
2021-06-27 05:36 PM
Hi @Ggfd.1 @Eleon BORLINI ,
Sorry I was away for some time.
I solved this issue by re-flashing the firmware (in my case, ardupilot copter.)
But I decided rather not to use the board, just in case.
2021-06-27 11:44 PM
Hi @Gabsu ,
Thank you anyway for reporting your solution!
-Eleon