juanmf / StepperMotors

Python stepper motor library with customizable acceleration strategies and responsive, interruptible motor operations.
https://github.com/juanmf/StepperMotors
MIT License
17 stars 0 forks source link

Add support for best selling Bipolar Drivers & motors #4

Open juanmf opened 6 months ago

juanmf commented 6 months ago

Ordered for testing:

Drivers: A4988 TMC2209 V1.3 DM556 TB6600 TB6560

Motors STEPPERONLINE 0.9deg Nema 17 Stepper Motor Bipolar 1.5A 30Ncm Nema 17 Motor 42BYGH 1.8 Degree Body 38MM 4-Lead Wire 1.5A 42N.cm (60oz.in) STEPPERONLINE Nema 17 Stepper Motor Bipolar 2A 59Ncm(84oz.in) 48mm Body 4-Lead W STEPPERONLINE High Torque Nema 23 CNC Stepper Motor 114mm 425oz.in/3Nm CNC Mill Lathe Router

juanmf commented 6 months ago

Tested Client app handling 2 motors. With all Controller Factories. With normal and Chained jobs. After I implement some or all of these controllers/motors I'll release 1st stable release.

            # self.turret = Turret(StaticControllerFactory())
            # self.turret = Turret(DynamicControllerFactory())
            # self.turret = Turret(SynchronizedControllerFactory())
            self.turret = Turret(MultiProcessingControllerFactory())
juanmf commented 6 months ago

Updates:

Drivers:

Tested

Adafruit Motor Hat

class AdafruitStepperDriverAdapter(BipolarStepperMotorDriver, ThirdPartyAdapter)

Bipolar

DRV8825 => class DRV8825MotorDriver(BipolarStepperMotorDriver)
TMC2209 V1.3 => class TMC2209StandaloneMotorDriver(BipolarStepperMotorDriver)

Basic legacy features tested, Need some wiring to test TMC220X pecific features like sensorless homing and step feedback

Unipolar

ULN2003 => ULN2003UnipolarDemo.py

In Queue

Bipolar

A4988 DM556

TB6600 & TB6560

TB6600 TB6560

Motors

Tested motor specs:

PG35S_D48_HHC2 => class PG35S_D48_HHC2(StepperMotor)

Nema 17 Motor 42BYGH 1.8 Degree Body 38MM 4-Lead Wire 1.5A 42N.cm (60oz.in) => class Nema17_42Ncm_17HS4401(StepperMotor)

class GenericStepper(StepperMotor)

28BYJ-48 => class Stepper_28BYJ_48(StepperMotor) ULN2003UnipolarDemo.py

In queue

STEPPERONLINE High Torque Nema 23 CNC Stepper Motor 114mm 425oz.in/3Nm CNC Mill Lathe Router => class Nema23_3Nm_23HS45_4204S(StepperMotor)

STEPPERONLINE Nema 17 Stepper Motor Bipolar 2A 59Ncm(84oz.in) 48mm Body 4-Lead W => class Nema17_59Ncm_17HS19_2004S1(StepperMotor)

STEPPERONLINE 0.9deg Nema 17 Stepper Motor Bipolar 1.5A 30Ncm => Not implemented