CircuitPython driver library for TIC stepper motor drivers.

  • Author(s): Alec Delaney

Implementation Notes

Hardware:

TIC stepper motor drivers

Software and Dependencies:

class circuitpython_ticstepper.TicMotor(step_mode: StepModeValues = (0, 1), *, steps_per_rev=200)

Base class for TIC stepper motors.

Parameters:

step_mode (StepModeValues) – The step mode to use

Initialize the Tic stepper motor.

clear() None

Clear and reinitialize the stepper motor.

drive(rpm: float) None

Drive the motor at a given speed.

Parameters:

rpm (float) – The speed to move the motor in RPM

halt_and_set_position(position: int) None

Stop the motor and set the position.

move(units: int) None

Move the given number of steps/microsteps.

Parameters:

units (int) – The number of steps/microsteps to move

property step_mode: StepMode

The stepper step mode.