BrainStrain
Member
Hello, and thanks for reading...
I would very much appreciate any in-depth knowledge regarding using a potentiometer to position a servo arm.
Currently I am using a Hi-TEC HS-65HB servo which has a very useful maximum 189.5' arm rotation, using 690ms and 2510ms for pretty much 0 to 180' min and max positioning.
I am in the process of developing a program, with different modes, one of which will allow the use of the pot to position the servo arm, and an additional button to then record its value.
An subsequent program mode will then allow an additional input signal to switch the servo between two recorded positions.
Pulsout is my favoured servo drive command for this, as it seems to avoid the problems of using Servopos.
I thought I'd check/ask for some helpful info regarding the potentiometer, and the reading of its value when sweeping the servo arm...
Will the chosen potentiometer resistance have any advantage for the servo setting? i.e. Use of a 5K, 10K, or 20K pot?
If there is an advantage, then I assume it's best to choose this before programming, rather than trying to fix it in software?
When using the command 'readadc' to read the pot value, would it be advantageous to use greater definition, i.e. readadc10? ...
giving a better resolution for more accurate servo positions? ... which can then be more accurately recorded, and then used for more precise position repeatability?
Thanks in advance for reading, and any help is much appreciated.
I would very much appreciate any in-depth knowledge regarding using a potentiometer to position a servo arm.
Currently I am using a Hi-TEC HS-65HB servo which has a very useful maximum 189.5' arm rotation, using 690ms and 2510ms for pretty much 0 to 180' min and max positioning.
I am in the process of developing a program, with different modes, one of which will allow the use of the pot to position the servo arm, and an additional button to then record its value.
An subsequent program mode will then allow an additional input signal to switch the servo between two recorded positions.
Pulsout is my favoured servo drive command for this, as it seems to avoid the problems of using Servopos.
I thought I'd check/ask for some helpful info regarding the potentiometer, and the reading of its value when sweeping the servo arm...
Will the chosen potentiometer resistance have any advantage for the servo setting? i.e. Use of a 5K, 10K, or 20K pot?
If there is an advantage, then I assume it's best to choose this before programming, rather than trying to fix it in software?
When using the command 'readadc' to read the pot value, would it be advantageous to use greater definition, i.e. readadc10? ...
giving a better resolution for more accurate servo positions? ... which can then be more accurately recorded, and then used for more precise position repeatability?
Thanks in advance for reading, and any help is much appreciated.