Im trying to get this code (attached) to work with my setup. The code was originally used with a L298 stepper driver and a geared 1/3 , 200 step motor for 600 step/revolution.
I am using a TB6600 Microstep driver (set at 400steps and 2A) , a 14hs4401s Nema 17 with 0.9* for a 400 step/revolution, a 12v 2A power supply and a Arduino Uno board.
I have changed the Steps in the code from 600 to 400, but i guess its not that simple.
My first problem is that the code wants connection to ENA and ENB, but my TB6600 does not have this input as the L298 has.
With ENA and ENB disconnected it makes the motor lock and when im running the code it steps a tiny bit back and forth. Connections:
Arduino pin TB6600
2 ENA not connected
3 > DIR+
4 > DIR-
5 ENB not connected
6 > PUL+
7 > PUL-
sketch_CamWerks.ino (3.98 KB)