ROBOTC.net forums
http://robotc.net/forums/

ARM CONTROL RECOMMENDATION
http://robotc.net/forums/viewtopic.php?f=11&t=7381
Page 1 of 1

Author:  CARBOT [ Wed Nov 27, 2013 1:16 pm ]
Post subject:  ARM CONTROL RECOMMENDATION

A few have asked for help with arm control lately. I would like to suggest an approach that may seem unusual at first but will allow you to reap many benefits later in your current project and your next project as well.
Begin by giving the arm a known and easily located start position. This may be against a stop or sensor.
On your first scan or variable init phase set the encoder position to zero at this start position.
One variable in your program will be the desired position of the arm.
Use the joystick to incrementally change ONLY the desired position.
Use a simple closed loop position control to adjust the actual position to the desired position.
This also allows autonomous position setpoints and push button control to go to setpoints in lieu of only joystick motion control.
You could also write the desired and actual positions to the display to help debug.

Good luck

Author:  Ernest3.14 [ Wed Nov 27, 2013 10:24 pm ]
Post subject:  Re: ARM CONTROL RECOMMENDATION

Another point: Usually gravity affects arm designs a lot, which means you'll probably have to PID the position of the arm to stop it from drooping/slipping. And a velocity PID would also benefit intuitive-ness. :)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/