Hey, I recently got the TMC2209 stepper motor driver to use along with my NEMA 17, and I have no issues getting it to work, but I'm having trouble trying to use some features such as Stall Guard as can be demonstrated here:
I tried following the github examples and documentation, but for the love of me I just can't get anything out of it, and I think it really lacks, there is also barely any non 3D printed related examples and documentation which makes it just really hard.
So I tried to use the following example:
It would seem(not sure...) that the example uses MEGA board, but I only own uno/nano so I decided to try it with the uno and just change the relevant pins to PWM pins on the arduino uno.
I ended up with the code below:
Wiring:
I'm using the arduino 12v and 5v to power up the TMC2209 5v/12v ports.
NEMA 17 wiring - A/B - 1/2 pins(standard)
TMC2209 EN pinout - Arduino pin D7
TMC2209 STEP pinout - Arduino pin D6
TMC2209 DIR pinout - Arduino pin D5
I just can't find ANY non 3D Printer/SKR examples on the internet, so would really love to get some information.
I obviously tried adjusting the STALL_VALUE from 0 to 255, but nothing actually worked, I don't think that's really the issue though, when trying to read the serial output I'm just getting bunch of question marks:
-> \⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮
So that would make sense that it doesn't work, I would assume it's not specifically a code issue, but possibly some errors I'm making with incorrect pinouts or the way I set everything up, but again due to lack of documentation I really have no idea what is wrong and why.
Any help would be much appreciated! Thanks!