So I am making a pintograph (think spirograph but cooler, and more complicated) and to finish the project I need to control 4 motors at different speeds at the same time. For the motor control I chose to use steppers with TMC2209s. because I had all the parts laying around already, and I want to have the slow speed high torque over high speed.
Ive got the hardware designed, made and assembled, but I am running into an issue, how do I talk to my TMC2209s? Ive been stuck at this step for weeks off and on trying to figure out what to do and came across a post on the TMCStepper library github that says that after the espressif update to 3.0 uart in all the examples is broke, which sounds exactly like my issue. Github Issue Post for TMCStepper
From what I have gathered then I need to either update the library to match to 3.0 (clearly outside my skills) or downgrade to a previous working one. I ha tried to remove all libraries and manually install them, but that didn't seem to work, and I have tried to change my platformio.ini file to declare a version, but I notice no change there either. I picked 6.5.0 because from what I was seeing in the notes, it would be using the board library that I would need.
[env:esp32dev]
platform = espressif32 @ ~6.5.0
board = esp32dev
framework = arduino
lib_deps =
SPI
gin66/FastAccelStepper@^0.30.15
teemuatlut/TMCStepper@^0.7.3
Ive gone through all the examples from the TMCStepper and TMC2209 libraries after making small changes to the code (changing serial 3 to 2 and some pin assignments) without any changes to the outcome, so I dont have any code examples. I have wired up the stepper drivers to 12v/24v and 5v/3.3v which made no changes, tried 3 other stepper drivers, no changes and I have ensured that the one wire uart is correctly connected, and then reversed it just in case, no change there either. The drivers work just fine in step/dir mode, but still dont communicate via uart. The whole goal for talking to the stepper drivers is to turn on 1/256 step interpolation and use uart instead of step/dir for direction and speed but I am kinda stuck and dont know where to go from here.