Quote:
Originally Posted by dmitch
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.