Shop OBEX P1 Docs P2 Docs Learn Events
Memsic Accelerometer... Simple program — Parallax Forums

Memsic Accelerometer... Simple program

JarrettJarrett Posts: 9
edited 2009-01-26 05:08 in Propeller 1
I am new to the propeller chip and I am in need of a little help with the Memsic sensor. I have read a few posts and downloaded a few of the memsic objects but I am looking for something much more simple than what i have found available. All I want is an output pin to go high if any motion is detected. The program must still work even if the sensor is not initially level once the program starts executing. Is this possible with this setup/sensor combo? I have found a few tutorials on this sensor with the Basic chip and others but none for the propeller. Is there any basic noob friendly walk-through's for this sensor with the propeller?

thanks, Jarrett

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-01-26 05:08
    Jarrett,

    If you are just looking for motion or vibration detection, then you could take any of the outputs... it's probably not necessary to look at all of them, one would do. Anyway look at one of the outputs and look at the reading from one to the next and determine the difference between the readings. There should be a "normal" amount of noise if the sensor is just sitting there. Where motion would be involved, the "normal" reading should be much higher. Simply set a threshold and look to see if it has been reached and set a pin high accordingly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
Sign In or Register to comment.