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

Problem with Running for Certain Number of Steps #60

Open
Legohead259 opened this issue Nov 13, 2018 · 10 comments
Open

Problem with Running for Certain Number of Steps #60

Legohead259 opened this issue Nov 13, 2018 · 10 comments

Comments

@Legohead259
Copy link

Hello,
I recently modified the Simple.ino example so that I could get my motor to step enough times to make one full revolution (200 in my case). However, I am having issues where I have to increment my step counter by some weird factor (1/250) just to get close to one revolution. I don't know what is causing this and the issue is not prevalent on my simpler stepper controllers. Any help would be appreciated.

@teemuatlut
Copy link
Owner

What's your microstep setting?

@Legohead259
Copy link
Author

Legohead259 commented Nov 13, 2018 via email

@teemuatlut
Copy link
Owner

If you have a 200 fullsteps motor and your microstep setting is 16, then you need to send 200*16=3200 step pulses for a full rotation.

@Legohead259
Copy link
Author

Legohead259 commented Nov 13, 2018 via email

@teemuatlut
Copy link
Owner

Possibly bad config being pushed for some reason.
Any time there's a read command, the library will remember the response and base the subsequent writes on that data pattern. If the read was faulty for some reason, it can affect the following writes.

@Legohead259
Copy link
Author

Legohead259 commented Nov 13, 2018 via email

@teemuatlut
Copy link
Owner

The relation with microstepping and motor torque is a myth/misunderstanding.
All that matters is the angle between the rotor and the electric field (and the winding current).
You often hear that increasing microstep settings decreases the motor torque, but no one ever remembers that you also take twice as many steps for the same distance/rotation and thus the electric field ends up the same.

Increasing the number of microsteps will not get you more torque, but will result in smoother motion. This is what the Trinamic microPlyer (=microstep interpolation) does.

@Legohead259
Copy link
Author

Legohead259 commented Nov 14, 2018 via email

@teemuatlut
Copy link
Owner

Control the time between sent step pulses.

@Legohead259
Copy link
Author

Legohead259 commented Nov 14, 2018 via email

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

2 participants