Using a TMC2209 silent stepper motor driver with an arduino

Hello Tom and thank you very much!

I am sorry about that "unreadable" code, somehow copying the code from my Vscode editor was done as a HTML and converted with the color tags. I fixed it in my original post.

As requested, here is the wiring diagram:


(Original size)

My power-supply is a lab bench power supply set to 12V
I use ESP-32 CAM for two reasons:

  • I have one available
  • The motor should drive a baby swing for my newborn little girl, so the camera output can be nifty little upgrade :slight_smile: This is also the reason for the TMC2209 - I need a silent drive
  • I use an ASM1117 module

When DMM means a "Digital MultiMeter" than I have some
The motor description says 17HS4401S - is this one from german Amazon (The picture with a sleeping baby convinced me :smiley: )
I am not entirely sure about the motor-pair wiring, I found this image when searching for that motor type


My colors are different: 1. green 3. blue 4. black 6. red

Here is a picture of the wiring of the motor with the TMC2209


(Original Image)