1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Using accelorometer and gyroscope in projectile motion

  1. Apr 28, 2015 #1
    I'm working on a project to make a SmartBall that can detect the velocity(km/h) , spin(degrees per second) and flightpath(trajectory) of the ball using Intel Edison with the 9DOF block (LSM9DS0 : 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer) & the battery block, I'm reading values from the 9DOF block by RTIMULib(Library for IMU chips). I've been working on integrating the acceleration data from the accelorometer to get the velocity then get the position, I know that this method is not really accurate as the integration error cumulate very fast but I rely on that my calculations will be done in a very short time (about 3 seconds) then i re-calculate again from the beginning after every kick so that error doesn't cumulate hardly, Also i only need an acceptable accuracy not a very high one. I discovered then that i'm dealing with projectile motion(ball kicking), so after considering this & searching in projectile motion equations i found that i must know the initial velocity and the angle of projection(theta) to be able to get my requirements. my problem that I don't know how to get any of these , I tried different approaches like getting the horizontal distance & getting the height to get their resultant(using pythagoras) then get the angle(assuming it's a right angle) in a very small time at the beggining of the projection , but i still couldn't get the height. The gyroscope outputs roll, pitch & yaw angles related to the sensor orientation but i'm still not using this as i'm assuming that the sensor will be fixed inside the ball so it's orientation will not be the same as the projection angle.Hope I made it clear , Any help on how to get my requirements is really appreciated, Thanks so much.
     
  2. jcsd
  3. Apr 30, 2015 #2

    Simon Bridge

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    2016 Award

    Welcome to PF;
    That is an ambitious project.
    It's not the time that is the probem - it is that the error accumulates in a short number of iterations. It does not matter how fast you do the calculation - what matters is the number iterations you need to get a good path.

    Soccer, Rugby, Calvinball...?

    Sounds Rugby-esque. Kicking the ball to high lobs or tossing the ball between players would produce projectile-ish motion (remember the drag on such a ball will be significant, it will spin too, and it is sort-of aerodynamic.)

    You are recording acceleration and calculating for position - you need the initial position and velocity to do this since that involves solving a second-order differential equation (as a difference equation).

    You can approximate the initial angle by interpolation of the first few data points. However, since you are confident of your method to get an updated position, don't you just have the entire trajectory anyway?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Using accelorometer and gyroscope in projectile motion
Loading...