|
Re: Can you use a potentiometer to control motor position?
Sure. but you will need some way of measuring the arm's position ie an encoder or if its rotation is limited another potentiometer on the robots arm wired to a analog input on the CRIO. Then in code you can compare the value of the potentiometer with the position of the arm and figuer out what direction to move. a simple way to do this is to subtract the two potentiometers (desired position - actual position) the result is how far off you are and the sign represtent the direction you need to go.
|