adafruit / Adafruit_CircuitPython_MotorKit

CircuitPython helper library for the DC & Stepper Motor FeatherWing, Shield and Pi Hat kits.
MIT License
86 stars 31 forks source link

Limiting maximum duty cycle to enable usage of stepper motors with lower voltage rating #47

Open arizzi opened 10 months ago

arizzi commented 10 months ago

It would be useful to replace the hardcoded duty_cycle = 0xFFFF and the scale of the microstep curve calculation (also hardcoded to 0xFFFF) so that a maximum dutycycle can be specified. I imagine this would allow to use motors with lower voltage rating then the one of the DC power supply.