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

Allow for UART mode exclusively on TMC2209. pass -1 to STEP and DIR #2

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

shaneapowell
Copy link

I'm using your driver with my TMC2209 chip. Works perfectly by the way! However, I'm using exclusively UART mode. As a result, I do not need the STEP or DIR pins connected, nor defined. the ESP-IDF library, does not allow for "invalid" pins to be defined when setting up the pads. Instead of picking unused, but valid pins on my esp32, I modifed your driver to allow for -1 STEP and DIR pins.

Use this code however you see fit. Merge it into your branch? Or, do it your own way. It's all good.

P.S. the 2209 has a few extra features compared to the 2208. One of which is the "stall" output pin (diag). Another is Stallguard and Coolstep. Both features I'd like to use in my project. Time permitting, I might see if I can add the functionality to your TMC2208 code, extended with a 2209 driver variant. Alas, working with the TMC UART is pretty new to me.

Cheers

@henriquefchaves
Copy link

I'm using your driver with my TMC2209 chip. Works perfectly by the way! However, I'm using exclusively UART mode. As a result, I do not need the STEP or DIR pins connected, nor defined. the ESP-IDF library, does not allow for "invalid" pins to be defined when setting up the pads. Instead of picking unused, but valid pins on my esp32, I modifed your driver to allow for -1 STEP and DIR pins.

Use this code however you see fit. Merge it into your branch? Or, do it your own way. It's all good.

P.S. the 2209 has a few extra features compared to the 2208. One of which is the "stall" output pin (diag). Another is Stallguard and Coolstep. Both features I'd like to use in my project. Time permitting, I might see if I can add the functionality to your TMC2208 code, extended with a 2209 driver variant. Alas, working with the TMC UART is pretty new to me.

Cheers

Heyy amazing, could you completed?
I'm trying to develop similiar process, and I see that driver direction and enable isonly did via hardware in this library.

Did you implemented in UART?

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

Successfully merging this pull request may close these issues.

None yet

2 participants