Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing number of steps #28

Open
sigmapi332 opened this issue Jan 20, 2022 · 0 comments
Open

Increasing number of steps #28

sigmapi332 opened this issue Jan 20, 2022 · 0 comments

Comments

@sigmapi332
Copy link

This code works wonderfully, but I am attempting to utilize it and am needing a significant number of increase in steps to utilize it as I need. Your current code shows 4076 or 4096 steps per rev... but I am looking to do what I need in 11960 steps (long story short, it's for a DSLR star tracking mount and I need the increased speed to properly track stars at my specific camera lens size).

Would I just need to change the instances of 4076/4096 to the number of steps I need for my use of this?

Ex:

void set11960StepMode() { totalSteps = 11960; }
void setTotalSteps (int numSteps) { totalSteps = numSteps; }
// allows custom # of steps (usually 4076)

// blocking! (pauses arduino until move is done)
void move (bool clockwise, int numSteps); // 11960 steps = 1 revolution
void moveTo (bool clockwise, int toStep); // move to specific step position
void moveDegrees (bool clockwise, int deg);
void moveToDegree (bool clockwise, int deg);

I am not a very fluent coder, so pardon my ignorance on this. Any help you might be able to provide would be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant