LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of Velocity and displacement from acceleration....I am using ADXL335 accelerometer with NI USB 6003

I am trying to get acceleration, velocity and displacement data from Accelerometer ADXL335 using NI USB 6003. I am unable to figure out in which unit the Output is coming i.e. Voltage (V) or mm/s^2 from NI USB 6003. I need displacement of system, how to measure the displacement using  NI USB 6003 and Labview. Plz help me out. 

0 Kudos
Message 1 of 3
(775 Views)

If you configure the DAQmx channel as Analog Voltage task, then it is reading out in V and you need to convert V to mm/s^2 based on the device's sensitivity.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(762 Views)

You have a 3-axis accelerometer, which means it is sensitive to the linear acceleration vector that it experiences.  Assuming it is sitting on a bench top and not visibly moving, it will experience a constant acceleration of 1g in the direction pointing down to the center of the earth.  Changing its orientation will change the measured acceleration (measured in units of "g") from (0, 0, -1) (flat on benchtop, assuming it is level) to, say, (1, 0, 0) when the X axis points straight down.  As long as the accelerometer is "stationary" (i.e. its center of mass isn't moving), the magnitude of the measured acceleration (sqrt (x^2 + y^2 + z^2), where x, y, z are the acceleration components in the X, Y, and Z axes) will always be 1.  Moving the accelerometer will alter the acceleration by adding the "motion-in-space" acceleration vector to the "pointing-to-the-center-of-the-earth" Gravity acceleration vector, giving you a net acceleration that differs from (0, 0, -1).

 

Of course, to get velocity, you integrate acceleration (adding "noise" in the form of rounding and calibration errors), and to get displacement, you integrate again (adding another layer of errors).

 

Note that 6-axis accelerometer chips that include angular accelerations (to distinguish "rotation" from "translation") are also readily available.

 

Bob Schor

0 Kudos
Message 3 of 3
(758 Views)