I'm building a star tracker and the hardest part turned out to be to get the motor to work (I'm a total noob in arduino). I'm using an arduino nano and a tmc2209 v3.0 driver with a nema 17 0.9 stepper motor. I've been using the code from this post TMCstepper - Arduino - TMC2209 - Projects / General Guidance - Arduino Forum but nothing seems to work. Here is my schematic:
You can't drive steppers from a board, you need two power supplies, one for the NANO and one for the motors. The grounds all need to be connected though.