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

Newbie: Arduino MEGA 2560 to TMC5160T wiring #299

Open
rudibr opened this issue Apr 6, 2024 · 0 comments
Open

Newbie: Arduino MEGA 2560 to TMC5160T wiring #299

rudibr opened this issue Apr 6, 2024 · 0 comments

Comments

@rudibr
Copy link

rudibr commented Apr 6, 2024

In a project, where I have to drive an Alt/Az telescope mount with two NEMA 17 Bipolar
Data sheet: https://www.dropbox.com/scl/fi/bamu2rfkfatrha0yyexck/17HS19-2004S1_Full_Datasheet.pdf?rlkey=6kmdzl3kiz0q1l13s2h8veds8&dl=0

I am building my project based on an Arduino MEGA 2560 (need a lot of digital pins for the interface):
IMG_4911

Having searched the TMCStepper project here on github and arround the internet, I still haven't found a guide in how to wire up the Arduino MEGA and the TMC5160T driver. I would like to see and implement a simple "Hello World" example, to verify that I can control the motors from my Arduino.

Can I control the NEMA motor from an Arduino directly through the TMC5160T driver - or do I need additional hardware?

I got this advice from a friend:
+12V and GND : to 12v and GND
VIO/GND : 3.3 - 5v from Arduino
A1, A2, B1, B2 : To motor coils on NEMA 17
EN: to Arduino
CFG1, CFG2, CFG3: to Arduino for microstep setting
CFG0: is shared between the drivers and to the Aduino
STP and DIR: to Arduino

But I cant find a guide on how to set it up in software.
I'm a bit nervous to experiment and do trial and error testing, another friend of mine toasted both his motors and drivers on another project :-O

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