/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / MEMS, acceleration values and filters?

Username:     
Password:     
             

Forum

# 1   2008-05-23 15:24:31 MEMS, acceleration values and filters?

kbe
New member
Registered: 2008-02-16
Posts: 3

MEMS, acceleration values and filters?

Hello,

I am trying to get a precise instant acceleration value,
I tried to calculate the average acceleration value / sec, but I found an abnormal value!
The CircleOS calls the MEMS_Handler() through the TIM2_IRQHandler() which is configured by TIM_Configuration(); and it’s period is set to 256;
I tried to use the predefined filters, F4, F16, F64 and F256, but, the most appropriate filter was the F256 >>8 and did not give me very precise values…
I have established the filters’ formulas, but I did not find any idea about these choices yet!
I have explored the N_filtering variable of the mems.c, to sum up each 256 values, and to divide them by 256 (then, resetting the N_filtering to 0), but, these values are not very precise!
Have you any idea or comment?

Thanks

Last edited by kbe (2008-05-26 08:21:55)

Offline

 

# 2   2008-05-26 10:47:34 MEMS, acceleration values and filters?

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: MEMS, acceleration values and filters?

When the handling of the MEMS had been implemented, we didn't have the good tools available now on this web site:
  http://www.stm32circle.com/projects/project.php?id=39
  http://www.stm32circle.com/projects/project.php?id=40
Therefore, the filtering is probably not well optimized. It has been tested only manually. If you have any suggestion to improve thishandling, they are very welcome.
You will find also on this forum some posts about some issue (noise) due to the electrical environment. I don't know how precise are the physical measurements.

Offline

 

# 3   2008-05-26 14:13:32 MEMS, acceleration values and filters?

halbstein
New member
Registered: 2008-04-10
Posts: 5

Re: MEMS, acceleration values and filters?

I used an digital  ca. 50 Hz low pass for filtering
Together with the F256 Values it gave a quite stable reading

Offline

 

Board footer