Shop OBEX P1 Docs P2 Docs Learn Events
Memsic problem — Parallax Forums

Memsic problem

NewzedNewzed Posts: 2,503
edited 2006-03-14 01:55 in BASIC Stamp
This afternoon I fired up my Memsic.· X read 0, Y read 3.· I tilted the board about 30 degrees in the +X direction and X read 4 to 5.· Same thing on Y.

Has my Memsic perished?

Sid

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-03 20:51
    Hard to say without seeing the code you're using....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 20:57
    I'm using he same code I've used for months and months.· It is attached.
    The only thing different is that I'm running it on a BS2P but the conditional statements should take care of that.

    Sid
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-03 21:03
    Have you tried the standard -- unmodified -- Parallax demo? We all take our own code for granted, so using the known-working program should get you to an answer (hardware or software problem) faster.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 21:14
    I ran the Memsic Dual sample code and got the same results.

    Sid
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-03-03 21:23
    Sid,

    What are you getting for raw readings out of the module?

    Is it next to any possible sources of interference?

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 21:28
    About 5010 for X and 5070 for Y.

    Sid
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 21:30
    That's with the board at "rest", Ryan.

    Sid
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-03-03 21:43
    Is that raw, or with the values doubled (i.e. taking into account the 2 uS units for the pulsein on the BS2)?

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 21:47
    I'm running the Memsic Dual sample code which has conditional compilation.· That should take care of the pulse width - I assume what I am getting is the same as I would get if I were using a BS2.

    Sid
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-03-03 21:58
    "Raw" values for the sample code "MEMSIC2125-Dual.BS2" should be approximately 4.97 ~ 5.0 ms for your X and Y (at rest)-

    If you do a simple pulsin on a BS2 you should get approx. 2500 for your values. (2 uS units). On a BS2SX,P,PX you should get approximately 6250 (0.8 uS units)



    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 22:18
    Well, seems like I'm pretty close - 5.01 for X and 5.06 for Y.

    Sid
  • NewzedNewzed Posts: 2,503
    edited 2006-03-03 23:27
    Ryan, I just ordered another Memsic.· Is the one I have maybe repairable?

    Sid
  • JairJair Posts: 1
    edited 2006-03-14 01:55
    Hi I am traying to·get the distance from the Gforces by multipliying the gravitational force times the g output of the memsic 2125 and multiply by the time square(d= 9.8*xmG*t^2) , but is seems that the BS2 can not measure the time of the starting funtion to the end of the function.

    Could you help me or do you know another way to calculate the distance?

    Jair
Sign In or Register to comment.