the only changes i made to the wiring is the step and direction pins are going to pins 31 and 30 and I’m using a 12v power supply instead of a 9v battery
My switch shows up in home assistant but when i click on it the motor does not turn. the switch turns on for maybe a second or 2 and then turns it self back off
Good, 9V smoke alarm battery wouldn’t work in most of cases.
And even the 12V PSU has to have sufficient amp rating.
You can fix that by adding:
optimistic: true
to your template switch, but what’s the point? Why should the switch remain on when the target is already reached? I think button would be better approach. Or template cover.
This is the thing here.
Make sure step/dir are not swapped.
Ensure your board has enable pin pulled low and that you have jumper on rst/slp pins like on your image.
Give acceleration to your setup
acceleration: 100
i rewired it for the new pins and also swapped out the driver just incase
my power supply is rated for 5a
now when i plug in the 12v power supply i here a very faint whirring noise and when i change the value in HA it still does not move and the noise stops and never comes back