|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Problem with only 2 days left
Ok here is the issue, we have a arm that rotates, there is a potentiometer attached to one end and the arm is actuated via 2 fisher price motors and their 125 to 1 gear boxes (the white plastic ones)
i am attempting to get the arm to "servo" so that it stays upright most of the time, (a little bit of play is okay) im running into a problem where the arm is shaking violently back and forth i have placed a dead band in the code to try and stop this but the arms momentum Carry's it right past the dead band. the motors are running off victors and i have them set about as low as they go. any ideas is greatly appreciated - Bochek |
|
#2
|
||||
|
||||
|
Re: Problem with only 2 days left
You may want to look into PID control:
http://www.chiefdelphi.com/forums/sh...light=pid+code http://www.chiefdelphi.com/media/papers/1823 Also, just out of curiosity, are your victors running in "Brake" mode? That may help alleviate your problem by actually trying to stop the motors when they reach the right position instead of just cutting the power and letting them coast. Good luck |
|
#3
|
||||
|
||||
|
Re: Problem with only 2 days left
Are you using a printf to print out the outputs and variables every step of the way?
Most likely your code has some output value that's going too high and getting maxed out. You might be able to divide some things by a number (in PID, you want to reduce the proportional and the integral components) |
|
#4
|
|||||
|
|||||
|
Re: Problem with only 2 days left
you might also try setting one limit in the up direction and another in the down position - that can keep the control from hunting for the perfect spot.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 10 Days Left NERDS | Andy Grady | General Forum | 13 | 20-07-2005 14:46 |
| Anyone Know What This Means ? Help, only a few days left.. | gemccnp | Programming | 4 | 19-02-2005 01:28 |
| problem with joystick buttons (top left one) | Richomundo | Programming | 5 | 15-02-2004 17:16 |
| Only 58 Regional spots left... | Aidan F. Browne | Regional Competitions | 17 | 14-11-2003 23:47 |
| Seniors... how many days left? | Jeff Waegelin | Chit-Chat | 16 | 02-05-2003 22:21 |