jbrazio / ardufocus

:telescope: The most accurate Open Source focus controller
https://ardufocus.com
GNU General Public License v3.0
53 stars 19 forks source link

Speed with the user interface (switches). #20

Closed Antiath closed 3 years ago

Antiath commented 3 years ago

I would like to change the speed in manual mode. Righ now, the acceleration is very slow and the top speed achieved is also quite low. It is fine though when I'm controlling the device with the ascom driver ( the firmware is set to 400 steps/sec maximum in the config file). Wich part of the code do I have to change to resolve this ?
Also, is this manual mode using half steps ou full steps by default ?

Antiath commented 3 years ago

Well never mind. I figured out what that #define UI_KAP_ADC_CHANNEL line was for :p Now I just need to add a pot to ro the remote. As a side note, it woul be nice to document that speed control feature. The config.h file doesn't give much info about that. It doesn't even state the possibility to control the speed of the user interface.

dwilbourn618 commented 2 years ago

Antiath, It's nice that you worked out what the #define UI_KAP_ADC_CHANNEL line was for, but not all of us are as smart as you! Can you explain a little about what this does and how I can use it to control the manual speed?

jbrazio commented 2 years ago

@Antiath thank you for the comment. Indeed the documentation is lacking.. the key feature was a bit slapped into the source code.

@dwilbourn618 you need to connect a potentiometer to and ADC channel and define that channel on the config using define UI_KAP_ADC_CHANNEL, then the position where the pot is at will set the speed that focuser will move when a key is pressed.

dwilbourn618 commented 2 years ago

Thank you!

max2206 commented 2 years ago

@Antiath thank you for the comment. Indeed the documentation is lacking.. the key feature was a bit slapped into the source code.

@dwilbourn618 you need to connect a potentiometer to and ADC channel and define that channel on the config using define UI_KAP_ADC_CHANNEL, then the position where the pot is at will set the speed that focuser will move when a key is pressed.

OK to which pins need one to connect a pot