circuitpython_ticstepper
¶
CircuitPython driver library for TIC stepper motor drivers
Author(s): Alec Delaney
Implementation Notes¶
Hardware:
TIC stepper motor drivers
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- class circuitpython_ticstepper.TicMotor(step_mode: StepModeValues = StepModeValues(value=0, multiplier=1), *, steps_per_rev=200)¶
Base class for TIC stepper motors
- Parameters
step_mode (StepModeValues) – The step mode to use
- drive(rpm: float) None ¶
Drives the motor at a given speed
- Parameters
rpm (float) – The speed to move the motor in RPM
- move(units: int) None ¶
Moves the given number of steps/microsteps
- Parameters
units (int) – The number of steps/microsteps to move
- property step_mode: StepMode¶
Gets and sets the stepper step mode