03-21-2017 08:09 AM - edited 03-21-2017 08:13 AM
Hi,
I'm new in labview , i need to get displacement from acceleration signal and doing two integrations to get the displacement, i'am using ADXL335 Accelerometer, when i begin the first integration to get velocity the signal drifts ,is that have something with DC compenont or DC offsets? if so is there a solution to remove it?
Thank you
03-21-2017 09:24 AM
You will normally do a calibration on your accelerometer. This would include an offset value that you would measure when there is no load (everything is stationary). Then it is just a simple subtraction to remove the offset.
03-21-2017 10:29 AM
Thanks for your replay, actually i did calibration and removed the mean offset (noise of the signal) but the drifting persists , may be there is another cause.
I'm using integral x(t) PtByPt Vi to do integration.
I will be greateful for Any suggestions .
Thanks.
03-21-2017 11:19 AM
Do you happen to have Sound and Vibration toolkit? It has built in integration function along with other useful tools. If you must use the "integral x(t) PtByPt Vi", I would double check your integral computations using known waveform. i.e. Insert sin(x) as an input waveform and you should get output waveform as -cos(x)+c.
03-21-2017 12:45 PM
Thanks for your answer. I did what you said with a noisy sin waveform and it's drifting at the same way. Actually , i have a noisy acceleration signal (I filtred but some noises still).
unfortunately , i haven't using this toolkit ''Sound and Vibration toolkit'' before. I will try to upload it and try it.
Thank you.
03-21-2017 06:14 PM
Think of Integration as a Sum over Time. Assume whatever you are summing has a mean value that is no exactly 0, and that your sum operation is accurate. Do you know what the integral of a (small) constant looks like? It's a straight line with a slope equal to the (small) constant, so "drift" is unavoidable in most integration schemes.
What you do is to try, as well as possible, to calibrate your instrument so that the offset is as close to zero as practical. Then if you want to get really fancy, you estimate the slope and basically subtract it out. Or you can high-pass filter (a fancy name for what I just said ...).
Incidentally, did you notice that the Manufacturer says that 0g = 1.5v ± 0.15v? That is, there's a 10% (wow, ten percent!) "error" (or "variability") in the 0g offset. Fortunately, the percent error in the Gain coefficient is ... also 10%. So Calibration of this gadget isn't a "luxury", it's a necessity.
A very interesting exercise, one that will definitely teach you about accelerometers, calibrations, and funky non-linear algorithms, is to dream up a calibration procedures that can be done in 15 seconds (with LabVIEW connected to the accelerometer) for all three axes using nothing more than a steady hand (I recommend using the hand to hold the accelerometer against a tabletop). It requires making six measurements and doing some hairy math ...
Bob Schor
03-22-2017 06:57 AM
Thanks Bob_Schor,
yes this is my purpose actually , is to calibrate my instrument so that the offset is as close to zero, to stay aroud it.
To make my self clear, my acceleration signal, as you can see, have a positive and negative parts, so when the integration occurs (sum of the values ) to get velocity , it should stays around ''0 '', which is not the case here. the signal is correct in form but it's drifting too much.
thanks again.
03-22-2017 08:31 AM
Here's an easy "crude" "semi-calibration" you can do.
Crude, but if you (a) hold the accelerometer steady (so net acceleration remains 0), and (b) you are reasonably close to orienting the X and Y axes vertically, your readings should be a big improvement over "uncalibrated" values.
Bob Schor
03-22-2017 12:01 PM
Thank you again for your replay, your suggestion was good to do, of course for my work i want to measure the displacement on the Z axis between two points (depth). i did the calibration above and unfortunently it doesn't work as i suppose to,i don't really know how to solve this, i can't remove this drifting.
Any other suggestions ...
Thanks.
03-22-2017 12:21 PM
I am assuming this how you have your DAQ channel configured?