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

TMC2130 with Accelstepper Library #33

Closed
FlowBo opened this issue May 2, 2018 · 4 comments
Closed

TMC2130 with Accelstepper Library #33

FlowBo opened this issue May 2, 2018 · 4 comments

Comments

@FlowBo
Copy link

FlowBo commented May 2, 2018

I'm trying to run a Stepper with TMC2130 in combination with the AccelStepper Library.
The Stepper is making the correct sound (i can hear the acceleration and velocity etc) but the shaft is not turning.
If I step it manually with digitalWrite() HIGH - LOW it is moving.

@FlowBo FlowBo closed this as completed May 2, 2018
@FlowBo FlowBo reopened this May 2, 2018
@FlowBo FlowBo changed the title TMC2130 with TMC2130 with Accelstepper Library May 2, 2018
@teemuatlut
Copy link
Owner

Try using some simple example from the AccelStepper library and add the TMC2130 configuration parameters into that.
As long as the driver has been configured and gets step pulses and enable is low the motor should move.

@FlowBo
Copy link
Author

FlowBo commented May 3, 2018

Hej i figured it out. Kinda my mistake.
I forgot to set the micro stepping parameter. So it operated correctly but it had no information about stepping. Isn't it possible to have a default setting to prevent this from happening?

@teemuatlut
Copy link
Owner

The default is 0, which means 256 microsteps.

@danielawd
Copy link

@FlowBo
I understand you got Accelstepper to work with 2130?
Would you share some code, i am about to try it...
Did you got it working in SPI mode and with multiple steppers?

Thanks
Daniel

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

3 participants