View Single Post
  #2   Spotlight this post!  
Unread 07-02-2011, 17:48
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Programming Motors for Arm

Uh this is a bit complex because of the number of motors but Ill try.
The two things that I need to know are what is controlling the motors (if at all possible use speed controllers (we use victors so I don't know the can system on jags if you need can). Also do you have encoders/potentiometers attached (the only way this will be possible)?

(will only work with speed controllers) Now to have set positions (you will need 6) what I did is to have a toggle between middle and outside columns and then 3 buttons to designate which row. Then make a case statement decided by a Boolean array with what values you want (it will come out in binary into the case). now wire a PID (wiki it its kinda complicated) VI outside of the case with your encoder values going to the process variable and some numerical value inside going to the setpoint. Then the output to a motor set vi. You will need to do this 3 separate times i think. (I know im forgetting something but Ill post a pic of my 2 motor system code for you to look at)

If you just want a manual control with speed controllers (which since your new to this is suggested). You just wire whatever axis you want to control the motors to the input on the motor set.

If you need further help I'm willing to post pictures. I guarantee I left something important out.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	247
Size:	55.8 KB
ID:	10020  
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote