Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Problem with only 2 days left (http://www.chiefdelphi.com/forums/showthread.php?t=54496)

Bochek 18-02-2007 20:54

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

woody 18-02-2007 23:12

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

ace123 18-02-2007 23:40

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)

Chris Fultz 19-02-2007 00:05

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.


All times are GMT -5. The time now is 13:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi