Memsic 2125g accelerometer help !
shogun
Posts: 5
Hi i am using this sensor to drive two servo motors although sometimes the word reading is very smooth in regards to tilt sensing sometimes the numbers will jump around widely !?
Is there any way i can smooth out the readings ? I am using a picaxe 18X with the pulsin command
Thanks in advance
shogun ·
Is there any way i can smooth out the readings ? I am using a picaxe 18X with the pulsin command
Thanks in advance
shogun ·
Comments
These forums are for the support of Parallax products. The PICAxe is not made by Parallax. I would suggest you find a PICAxe forum somewhere.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
What kind of G forces are you expecting? What would the biggest G's be (in normal operation).
" If the reading changes by more than X, then throw out reading and use previous one. "
" (Reading X + Reading X+1)/2. " So you take 2 readings after each other and you average them.
Try to sort out what these "peak" readings are and if in fact they are real or noise. Is your accel. mounted properly?
Is some linkage in your mechanics creating some shock vibrations?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
What are the units from the accelerometer?
I am trying to use the accelerometer to report g force, but how does this show what direction the forces are?· All numbers are positive.· Say y is giving acceleration and deceleration.· How do you know which one?· The calculations at http://www.parallax.com/dl/docs/prod/acc/memsickit.pdf·don't show how to tell if it's acceleration or deceleration.· How can I do that?
Page 2 of the link you provided under "How it works".
There are no units for the raw values, they are ratiometric.
To compare acceleration or deceleration you look at the current sample to the previous sample by simple subtraction ... New - Old ... if the result is positive your accelerating, if it is negative you are decelerating.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.