Numerical integration of angular velocity

Click For Summary

Discussion Overview

The discussion revolves around the numerical integration of angular velocity data from a gyro sensor for a segway-style robot. Participants explore methods for integrating this data to determine the tilt angle, focusing on techniques such as Runge-Kutta and Heun's method.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks clarification on using Runge-Kutta integration to process angular velocity data, expressing difficulty in understanding the method due to a lack of background in differential equations.
  • The same participant later specifies their data as ordered pairs and requests guidance on integrating these points using RK4.
  • Another participant mentions successfully using Heun's method as a simpler and faster alternative to RK4 for their integration needs.
  • A different participant inquires about the integration process using Heun's method, indicating they are working on a similar project with comparable data.
  • Another suggestion is made to estimate the area under the curve using graphical methods or other numerical techniques like the trapezoidal rule or Simpson's rule.

Areas of Agreement / Disagreement

Participants express differing preferences for numerical integration methods, with some favoring Heun's method for its simplicity, while others discuss the potential use of RK4 and graphical estimation techniques. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

Participants have varying levels of mathematical background, which affects their understanding and application of numerical integration methods. There is also a lack of consensus on the most effective method for integrating angular velocity data.

Who May Find This Useful

Individuals working on robotics, particularly those dealing with sensor data integration and numerical methods for solving differential equations, may find this discussion relevant.

glycerunnin
Messages
3
Reaction score
0
OK...this is a really trivial question, but I hope someone can help me here. I am working on building a segway-style robot that balances on two wheels, but I am having some difficulties integrating the data I receive from my gyro sensor. The sensor gives me the angular velocity, and I know that to find the actual tilt angle I need to use something like RK4. However, I have not taken differential equations, just Calculus AB, and I am having trouble understanding exactly what Runge-Kutta integration does. I looked all over the place, from Mathworld to Wikipedia, and I feel that I am close to getting it, but the f(x,y) keeps throwing me off. Could someone please explain in more basic terms what I need to be doing?

[Edit]

I realize that I need to be a bit more specific. If my first 5 seconds of data are represented as ordered pairs (time t, angular velocity at time t) and I know that the angle is 0 at time t, how would I integrate (0,0), (1, 3), (2, 5), (3, 3), (4, 2), (5, 6) using, say, RK4? If you need more information, let me know.
 
Last edited:
Physics news on Phys.org
Never mind...I figured out how to use Heun's method for what I wanted to do, and it is a lot faster and simpler than RK4 and accurate enough to be useful. I am really glad I found this forum; there is so much information available and I will definitely use it in the future.
 
Hey, can u explain me how u integrated using the Heuns method. I am also working on a similar robot, with similar data input, i.e of form (time, angular velocity). Can u please help me out?
 
Is it about calcilating the area under a given curve?
Just plot the points and estimate the area.
Use trapezoidal rule? Simpson ? etc
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
997
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K