View Single Post
  #5   Spotlight this post!  
Unread 08-02-2011, 16:13
JamesBrown JamesBrown is online now
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,280
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Programming Motors for Arm

Quote:
Originally Posted by dmitch View Post
Ok, In your experience what are the best potentiometers for this kind of use?

And then I just need to set the code to run motor A until the potentiometer gives me angle x? Also, are potentiometers accessed via the generic DIO vi on LabView? And then how is this coded? I will write some code today at the shop to try and get this done and I will post it tonight if I can.

Just be warned: Its bound to have quite a few errors in it. All I learned how to do last year(from our less-than-great-teacher programmer) was how to set up mecanums and how to wire solenoids.

And does the potentiometer read degrees? So can I just do the thing from paragraph 2 up above?
Or will I have to do something else?
You can go to radio shack and pick up your choice of potentiometers, make sure they have a linear taper, and look at 10k pots.

Potentiometers are conected to the analog inputs on the controller. If you just turn on the motor until you get to the desired angle you will overshoot it every time, and not by a predictable amount. You should look into PID control.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Reply With Quote