Dynamic Acceleration without tilt?
RedWolf
Posts: 2
I am a newbie so please please forgive me if this is s dumb question. Is it possible to write the basic stamp code in such a way as to recognize dynamic acceleration without tilt/ static acceleration from the H48C accelerometer? I need to sense deceleration/acceleration along one axis regardless of the tilt orientation of the sensor. My problem is that the sensor is giving me the same values for static tilt acceleration as it does for dynamic acceleration and I get a "false positive" reading. Any ideas?
Comments
-Phil
Mike
I think he means static acceleration (gravity, which makes the sensor read 1G). Dynamic acceleration would be any movement forces.
The problem here is deciding which is static, and which are dynamic.
James L
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
James L
Partner/Designer
Lil Brother SMT Assembly Services
Are you addicted to technology or Micro-controllers..... then checkout the forums at Savage Circuits. Learn to build your own Gizmos!
-Phil
Can you describe your application in more detail?· You may need a gyro in addition to the accelerometer to distinguish between the effects of gravity and acceleration.· Since we know that we're in a gravity field of 1G we know that a "sensed" 1G of vertical acceleration actually means that we're not really accelerating in that direction.· If we define Z to be the vertical axis, then the actual acceleration in that direction is Az = Asz - G, Asz is the acceleration measured from the sensor in the Z direction.·· For the other directions Ax = Asx and Ay = Asy.
If the sensor is rotated relative to vertical things become more coplicated.· You would have to subtract out the gravitational component for each dimension.· That's where the gyro comes in to provide the angle.· However, the gyro will drift so you'll need other sensors to recalibrate the gyro.
Dave
-Phil
RedWolf