Shop OBEX P1 Docs P2 Docs Learn Events
MMA7455 with BS2PE problems — Parallax Forums

MMA7455 with BS2PE problems

SPolySPoly Posts: 20
edited 2011-10-13 21:44 in Accessories
Hi,

I am trying to test out an accelerometer with a BS2pe.I have downloaded the sample program that is given and connect the wires accordingly, but the values i received is not constant even when stationary.
Sometimes, i get a -1 values for all axis.

Also, i am clueless to where should i connect the CS pin.

Comments

  • PublisonPublison Posts: 12,366
    edited 2011-10-13 08:42
    The sample program contains the information for the pin setup:
    'How TO Use:
    ' o With power initially off, connect VIN TO 5VDC (the same voltage
    ' powering the sTAMP). Connect GND TO Vss.
    '
    ' o Connect P0, P1, AND P2 ON the Stamp directly TO the CS, DATA, AND CLK
    ' pins ON the Digital 3-Axis Accelerometer module.
  • SPolySPoly Posts: 20
    edited 2011-10-13 21:44
    Wooottt! Thank you, I got it working alrdy. But if you can, teach me how to convert the values given to a 'G' value. As for now it only displays in dec cos the debug part has SDEC. I know that we have to take accnt the g/bit values which is attain from maxG value/256.so then i have to multiply it with the dec values.but how to do that?

    So what is the raw data type? and how to change it to a g value.

    THANKS
Sign In or Register to comment.