Hello, I am having an issue controlling a NEMA 17 motor that has a 100:1 gearbox using an Arduino R3 Uno and a TMC 2208 Stepper Motor Driver.
An image of my setup will be below along with the diagrams I used to wire it. The power source is a 12V 2A wall outlet to DC supply. I followed [this](https://www.youtube.com /watch?v=7spK_BkMJys) guide to set it up, and was sure to connect the clk and pdn pins. The resistor was also tuned to output 1.2 amps
So, with this setup I am having issues with getting consistent rotations. This particular NEMA 17 motor would generally have 200 steps/rev. With the 100:1 gearbox it came with, that bumps it up to 20,000 steps/rev at the output shaft.
The above code allows the motor to run continuiously. This shows me that the circuit is powerful enough to turn the motor constantly. The delay is removed so the for loop just happens constantly.
With the delay added back in, results are odd
With STEPS_PER_REV= 200 - Short steps with random long stops
with STEPS_PER_REV= 2000 -Longer steps with random long stops
with STEPS_PER_REV= 20000 - About 1/8th rev with random stops
with STEPS_PER_REV= 40000 - literally nothing happens
The TMC 2208 is rated for 2 amps PER PHASE! your stepper motor has TWO windings, two phase motor. So total amps could actually 4 amp power required for rated torque.
Current is never more than 140% of set current for two phases.
Nema 17 is the 1.7inch size of the motor's mounting plate.
It tells us nothing about the electrical specs of the motor.
If this is a hybrid/high impedance stepper, then a 12volt supply might not be enough.
Please post the model number of the motor, so we can check.
Leo..
This is a ~2.7volt/1.68A motor. The 12volt/2A supply should be ok for that.
The 1.2A driver is under-rated for that 1.7A motor, which might not be a problem, as long as you have adjusted the driver to 1.2A. And yes, running things at it's max will make them run hot.
I think you should try to drive the motor with a stepper library, with acceleration/deceleration.
AccelStepper seem popular.
Leo..
Yes, you're certainly right about the motor being rated for a higher current than the driver. I did limit the driver to 1.2A using the little screw potentiometer and just accepted that 0.5A wasted.
I did try the accelstepper library but had somewhat similar results. Small movements can be consistent but I am unable to make a full rotation occur without inexplicable stopping.