Open Luro02 opened 6 months ago
I have never used AccelStepper, but if it outputs step and direction pulses in DRIVER mode then it should work fine.
It would be great if you tried it and let me know if it works or not.
I have never used AccelStepper, but if it outputs step and direction pulses in DRIVER mode then it should work fine.
It would be great if you tried it and let me know if it works or not.
I will make a pull request once I have a working example. I see that this is a duplicate issue of #52, sorry for that.
My bidirectional communication does not seem to be working, so I have to sort that one out first.
Hi Luro, did you manage to get this working? I want to use the AccelStepper library along with TMC2209, however I have never used AccelStepper and I feel, I will take too long to get it going, so if you have used AccelStepper along with TMC2209, adding an example code here will help me out!
Hi Luro, did you manage to get this working? I want to use the AccelStepper library along with TMC2209, however I have never used AccelStepper and I feel, I will take too long to get it going, so if you have used AccelStepper along with TMC2209, adding an example code here will help me out!
Yes, I was able to get it working. Just haven't had the time to make a pull request.
@aagum-bae
Please check that unidirectional communication is working. You can do this by moving the stepper through the UART interface and then checking if it actually moves:
I am currently trying to get my redesigned PCB working, which is why I am unable to test the above code. Here is the schematic that I am currently using:
If your microcontroller is powered through USB, you can ignore the 12V -> 5V converter on the left (you should connect a GND of the microcontroller with the GND of the 12V, but this shouldn't be necessary to get the whole thing working). The microstep selector is optional as well, the stepper should move even if the MS pins are not connected. You do not have to do bidirectional communication either.
The main problem I had, was that I did not use the correct pins for the SerialX
. For ESP32 I described how to find the correct pins for Serial1
, Serial2
, ... in https://github.com/janelia-arduino/TMC2209/issues/60#issuecomment-2094763010
Thanks!
First of all, thank you for creating this library and all the documentation in the
README.md
. This was extremely helpful in getting the driver working.Right now, I am only able to control my stepper via UART, but I would like to use the STEP/DIR pins instead. If I understood the library correctly, I would still use UART, but only for setup and then delegate to the STEP/DIR pins for driving the stepper? I am thinking of something like this:
Would you mind adding an example that shows how to do this correctly with some external library?
There seem to be a few available (not sure if AccelStepper is the ideal one)