I am controlling 2 stepper motors through an RPI 3. The Stepper motors themselves work fine and I am pleased with the HAT.
https://www.adafruit.com/product/2348
However, I cannot figure out how to control the Speed/RPM of the motors. The code I'm am using is similar to
Code: Select all
from adafruit_motorkit import MotorKit
from adafruit_motor import stepper
kit = MotorKit()
for i in range(200):
kit.stepper1.onestep(direction=stepper.BACKWARD, style=stepper.DOUBLE)
kit.stepper2.onestep(direction=stepper.BACKWARD, style=stepper.DOUBLE)