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

Click For Summary

Discussion Overview

The discussion revolves around simulating the position of an object in two dimensions with given accelerations and rotations in a third dimension using MATLAB. Participants explore the integration of acceleration values and the application of angular rotation to determine the object's position, as well as the potential use of filters in the simulation process.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant suggests that integrating acceleration values twice would yield the position in the respective dimensions, but expresses difficulty in implementing the equations in MATLAB.
  • Another participant questions whether a Kalman filter is necessary for the simulation or if it can be done without it.
  • A third participant mentions the need for a 6-degree of freedom (6-DOF) inertial measurement unit (IMU) to fully characterize the position in 3-D space, indicating that the problem may only involve 2-D.
  • A participant describes their experience with a specific gyro sensor (LPY5150AL) connected to a microcontroller, reporting unexpected output values and seeking validation of those readings.
  • The formula used by the participant for calculating degrees from gyro output is shared, but no consensus on its correctness is reached.

Areas of Agreement / Disagreement

Participants express varying opinions on the necessity of a Kalman filter and the appropriate setup for simulating the object's position. There is no consensus on the correctness of the gyro output values or the formula used for calculations.

Contextual Notes

Some participants indicate uncertainty regarding the implementation details in MATLAB and the appropriateness of the sensor readings, highlighting potential limitations in understanding the setup and the mathematical relationships involved.

Who May Find This Useful

This discussion may be useful for individuals interested in simulation techniques in MATLAB, those working with inertial measurement units, or anyone seeking to understand the integration of accelerations and rotations in object positioning.

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
Can anybody help ?
 
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..!
 

Similar threads

Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K