How Do I Simulate Object Position with Accelerations and Rotations in MATLAB?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
mithil03
Messages
9
Reaction score
0
I got a problem in which I need to simulate the position of an object given accelerations in two dimension and rotation in the third. Integrating the acceleration values twice would give me the position in the particular dimensions, and using the angular rotation I could get the position of the object. But I am not able to practically implement the whole setup, I mean not able to put the equations in place to get the feed into the MATLAB code. I directly have set of values of accelerations and rotation angles and the desired output for the same. Do I have to use a Kallman filter over here or can I implement the system without the filter altogether? Could someone help me out here please? I am not from the electrical field and need the formula for a device I am working on, so please pardon my ignorance.
 
Engineering news on Phys.org
To fully characterize the position of an object in 3-D space, I believe you need a 6-dof (degree of freedom) IMU (inertial measurement unit). These include 3 dimensions of acceleration, and 3 gyro (rotational measuring units). Perhaps your problem is only a 2-D one.
 
hello all..
Iam using LPY5150AL Breakout gyro. I have connected to a PIC16F877A microcontroller.The problem is that iam getting outputs of gyro around 1100 -1300 deg/sec when i rotate the axes.I don't know whether these values are correct are not??can anyone help me out..!
The formula used is:
X_deg=((V_out-V_reference)*5000/1024)/(sensitivity)
where v_ref=1.23 as suggested in datasheet.
THANKS a lot..!