Stepper package provides super simple steps handler and formatter. Copyright (C) 2011 by Krzysztof Kowalik <chris@nu7hat.ch>
Package drv8833 provides a driver for the DRV8833 dual h-bridge chip able to drive DC motors, bipolar steppers, solenoids, and other inductive loads The DRV8833 has a wide power supply range from 2.7v - 10.8v Included are methods that seem appropriate for DC motors Run() & latching solenoids Pulse(), but not steppers Datasheet: https://www.ti.com/lit/ds/symlink/drv8833.pdf Pins IN1 | H-bridge 1 IN2 | H-bridge 1 IN3 | H-bridge 2 IN4 | H-bridge 2 GND | VCC | 3-10v ULT | Low = Sleep; High = Run EEP | Output protection OUT1 | OUT2 | OUT3 | OUT4 | Truth Table (per H-bridge) | IN1 | IN2 | OUT1 | OUT2 | FUNCTION | | --- | --- | ---- | ---- | -------- | | 0 | 0 | Z | Z | Coast / fast decay | | 0 | 1 | L | H | Reverse | | 1 | 0 | H | L | Forward | | 1 | 1 | L | L | Brake / slow decay | PWM Control Truth Table | IN1 | IN2 | Function | | --- | --- | -------- | | PWM | 0 | Forward PWM, fast decay | | 1 | PWM | Forward PWM, slow decay | | 0 | PWM | Reverse PWM, fast decay | | PWM | 1 | Reverse PWM, slow decay |
Stepper is a package that implements thread-safe, in-memory finite state machine. Simple API allows for changing or queuing transitions for user-defined states.