I recently bought a DC Motor & Stepper Motor HAT from you and installed (following https://learn.adafruit.com/adafruit-dc- ... l#overview) everything to work with the same model of nema17 stepper motor you have on the website.
After installing the software and finding the right pairs of wires, I tried the stepperTest.py file. The motor turns in one directection and then the other as expected but the rotation is very slow and jerky as if the motor was going forward 2 steps and 1 back constantly. When the program uses Single steps the motor going back is almost visible. The movement when using Microsteps is seem smoother but I can still feel the motor blocking from time to time. I also tried sapping the cable pairs around to no avail.
I changed the number of steps in each direction, tried with the function oneStep(direction, step-style) in a loop and tried with an other motor but the result is always the same. Moreover, increasing the RMP with setSpeed has no visible effect. Whatever the value, the motor turns at a speed of a few rotations per minute in singlestep mode.
Does anyone have any experience with this issue? Do you think it is a code issue? Or is the HAT simply too limited to use a stepper motor efficiently?
Sorry if this has been asked before. I searched the web but could not find a solution to my problem.
EDIT: If i set the speed to 255 and do a simple while loop with the one step function:
Code: Select all
while(True)
myStepper.oneStep(Adafruit_MotorHAT.FORWARD, Adafruit_MotorHAT.SINGLE)