topic Re: BMG250 Can't get integrate x,y,z to stable values in MEMS sensors forum
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23756#M6900
<P>Hi,</P>
<P>I propose 200Hz ODR so that you can verify if you can get clean data from BMG250 or not. If yes, then you can implement your own low pass filter such as moving average to reduce the noise further. Then you can implement your own high pass filter so that BMG250 x/y/z data should be around 0dps when it is at rest. In addition, you can also set a small dead zone for example +/-0.5dps to detect if BMG250 is at rest or not. If x/y/z data are within +/-0.5dps range, then it means that BMG250 is at rest and you can manually set them to 0dps so that your integration over time for Euler angles doesn't diverge over time when it is at rest.</P>
<P>Thanks.</P>Thu, 29 Apr 2021 15:31:43 GMTFAE_CA12021-04-29T15:31:43ZBMG250 Can't get integrate x,y,z to stable values
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23684#M6885
<P>Hi, I'm using this gyroskope sensor in a real-time environment to judge Roll, Pitch and Yaw of a telescope.<BR />I'm using foc data and no fifo, but I'm reading the sensordata slightly quicker than the refresh rate and using sensortime to discard duplicate values.<BR />DPS is 125, ODR at 50Hz.</P><P>My system is at resting position, but the sensor data keeps jittering at +-100ST. Now If I'm integration all values, all three position values keep drifting.<BR />See pictures attached. Any ideas what I can improove?<BR />,<span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 549px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/7927iF956CF42582278B5/image-size/large?v=v2&px=999" role="button" title="grafik.png" alt="rax x,y,z data" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">rax x,y,z data</span></span></P><P>raw x,y,z data</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 566px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/7928i65EDD326A2123482/image-size/large?v=v2&px=999" role="button" title="grafik.png" alt="integrated x,y,z and temp data" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">integrated x,y,z and temp data</span></span></P><P>integrated x,y,z data, constant temperature</P><P>Thanks,</P><P>B.</P>Wed, 28 Apr 2021 14:41:27 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23684#M6885Bernward2021-04-28T14:41:27ZRe: BMG250 Can't get integrate x,y,z to stable values
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23685#M6886
<P>Hi,</P>
<P>Thanks for your inquiry.</P>
<P>BMG250 has noise from ADC. The noise level is +/-0.07dps at 200Hz ODR. At +/-125dps full scale range the sensitivity is 262.4LSB/dps. So the noise level at 50Hz ODR = +/-0.07dps * 262.4LSB/dps = +/-18LSBs. Please check your system to find out the reason why you got +/-100LSB noise.</P>
<P>In addition, if you want to integrate BMG250 raw data over time to get pitch/roll/yaw angles, you need to implement a high-pass filter to filter out the noise when BMG250 is at rest. Then those angles will not diverge over time.</P>
<P>Thanks.</P>Wed, 28 Apr 2021 15:25:36 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23685#M6886FAE_CA12021-04-28T15:25:36ZRe: BMG250 Can't get integrate x,y,z to stable values
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23697#M6892
<P>thanks for your answer. which cut-off frequency are you proposing?<BR />Thanks, B.</P>Thu, 29 Apr 2021 06:53:50 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23697#M6892Bernward2021-04-29T06:53:50ZRe: BMG250 Can't get integrate x,y,z to stable values
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23756#M6900
<P>Hi,</P>
<P>I propose 200Hz ODR so that you can verify if you can get clean data from BMG250 or not. If yes, then you can implement your own low pass filter such as moving average to reduce the noise further. Then you can implement your own high pass filter so that BMG250 x/y/z data should be around 0dps when it is at rest. In addition, you can also set a small dead zone for example +/-0.5dps to detect if BMG250 is at rest or not. If x/y/z data are within +/-0.5dps range, then it means that BMG250 is at rest and you can manually set them to 0dps so that your integration over time for Euler angles doesn't diverge over time when it is at rest.</P>
<P>Thanks.</P>Thu, 29 Apr 2021 15:31:43 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23756#M6900FAE_CA12021-04-29T15:31:43ZRe: BMG250 Can't get integrate x,y,z to stable values
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23800#M6916
<P>yes, using now odr 200Hz, thus 5ms readout, 2000DPS, 20* moving average, 2nd order IIR 25Hz, Final Integrator stage gives</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bernward_0-1620029105373.png" style="width: 400px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/7977i077C985C400A3D49/image-size/medium?v=v2&px=400" role="button" title="Bernward_0-1620029105373.png" alt="Bernward_0-1620029105373.png" /></span></P><P> </P><P>for a handmove turn of 90°. Seems like that I need to downsample this result a bit, but effectively it seems to do its job.</P><P>Thanks a lot,</P><P>B.</P>Mon, 03 May 2021 08:07:42 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMG250-Can-t-get-integrate-x-y-z-to-stable-values/m-p/23800#M6916Bernward2021-05-03T08:07:42Z