Shop OBEX P1 Docs P2 Docs Learn Events
Memsic 2125g accelerometer help ! — Parallax Forums

Memsic 2125g accelerometer help !

shogunshogun Posts: 5
edited 2010-06-03 23:54 in General Discussion
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 ·

Comments

  • shogunshogun Posts: 5
    edited 2007-05-17 12:38
    Anyone ?
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-05-17 12:44
    Shogun -

    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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-17 14:19
    This thread is being moved from BASIC Stamp Forum to the Sandbox Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • steve_bsteve_b Posts: 1,563
    edited 2007-05-17 14:30
    Being unfamiliar with the PicAxe....you might try some averaging in your program.
    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."
  • KathKath Posts: 1
    edited 2010-06-03 18:46
    I need some help.

    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?
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2010-06-03 23:54
    Kath,

    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.
Sign In or Register to comment.