View Single Post
  #6   Spotlight this post!  
Unread 10-01-2012, 18:49
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: "Pitching Machine" motors

Since Work = 1/2 * mv^2 (final velocity) - 1/2 * mv^2 (initial velocity) and Work = Force * Distance, you can find the force can be found if you know the other variables. Use this spreadsheet for specifics including angles and the velocities you need.

So say you're shooting from 6 meters (about midfield) at a 45 degree angle at the top hoop.

Code:
f * d = (mVf^2 - mVi^2) / 2

f * 6m = (0.32kg * (8.98 m/sec)^2 - 0.32 kg * (0 m/sec)^2) / 2

f = (0.32kg * (8.98 m/sec)^2 - 0.32 kg * (0 m/sec)^2) / 12 m
/* Plug into Google */

f = 2.15 Newtons
Now, that's the net force exerted on the ball at the launch velocity. Add sin(angle) * force of gravity and you'll need to shoot the ball with about 9.1 Newtons of force (2.05 pounds). Again, use the linked spreadsheet to determine your angle and velocity.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)