View Single Post
  #3   Spotlight this post!  
Unread 02-03-2015, 21:21
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: PID Controller Help on Tote Lifting Mechanism

It seems what you described is not PID control, but more simply just P control, which will most likely not get to a set point on an elevator that would fall by gravity if the motor was sent a zero voltage.

The I value of PID will allow the controller to accumulate the error over time, such that the longer the elevator is away from its set point, the more error that will accumulate, and the harder the controller will consequently drive the motor to get to said setpoint. With more load, the I value will take longer to accumulate the error required, so it probably wouldn't reach the set point as fast, but regardless of weight, it should lift it fully, as long as the elevator is physically capable of it.

As the elevator is at its set point, this I value persists (unless intentionally reset), and will hold your elevator at that point. If you do this though, be careful about it, as you are stalling the motors, which is pretty bad unless you're using something sealed like a CIM (and you're careful about it).


However, more of the code would help, such as for the elevator itself and what class contains the setSetpoint() method so we can all see how you define the PID controller.
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award

Last edited by dellagd : 02-03-2015 at 21:26.
Reply With Quote