Thread: Need to confirm
View Single Post
  #6   Spotlight this post!  
Unread 20-02-2011, 09:18
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Need to confirm

Quote:
Originally Posted by Alan Anderson View Post
The appropriate answer to #2 is to mechanically support the arm so that gravity is not a large influence on its motion. Either a counterweight or some sort of spring arrangement would work. There is no easy way to deal with it in software, especially with a window motor.

For #3, setting the P constant too low will result in the motor being given so little power that it will stop long before it gets to the set point. The I constant can compensate for this, but it will take some time, and is likely to overshoot badly. What you generally want to do is increase P until you get oscillation, then back it down until you get reliable motion with a reasonably small steady-state error. Then increase I until that error is resolved with a minimum of time and overshoot.
If I use buttons and PID to move the arm to a certain position, will it prevent the arm from overshooting downwards? Lets say my arm is all the way up, and I want to put it to a 45 degree angle to drop it. If I use PID to move the motor until the certain voltage is hit (lets say 2.5 V), will it stop at the 45 degree angle, or does it still have the possibility to keep falling downwards due to gravity?
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote