adafruit / adafruit/Adafruit_CircuitPython_MotorKit

Stepper Motor Speed Limitations

Open
#32 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
95
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have the raspberry PI hat, and a couple of stepper motors. I am able to use this library ok, but am running into issues with the speed of which I can drive the motors using the oneStep function.

I was under the impression the purpose of the hat was to offload the repetitive processing of the stepper motors onto a separate discrete board to avoid interruptions you would get on the main program/PI, but the fact that I have to call oneStep from python on the raspberry PI seems to go against this purpose and (I believe) leads to my code/PI being the limiting factor in the speed the stepper motors can run, as every single step has to be called at separately, and at exactly the correct time.

In other stepper libraries you seem to offer multistep functions [here](https://learn.adafruit.com/adafruit-motor-shield/using-stepper-motors) . I'm assuming this command goes direct to the hat and avoids any other program interruptions for the duration of the command (although could be wrong). Is there anywhere to replicate this functionality within this library/ for the PI hat?

---------

I am aware I could get a motor with different gearing to change the speed, but when then likely end up sacrificing on turn resolution. And this code approach seems like a fundamental issue.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the oneStep entry point and compare the linked multistep functionality in the Adafruit motor-shield documentation. Determine whether the Pi Hat can execute a step sequence independently, and define the supported behavior or limitation before proposing an API change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.