steperb
steperb is a superb stepper motor control library designed for robotics and embedded systems. It is fully no-std compatible, and is designed for calculating what, where, when and why the motor should be doing actions.
use StepperController;
Features
- Easy and simple to use
- Safe, idiomatic interfacing (no
unsafeblocks) no-stdcompatible and memory efficient for embedded devices- Accurate positioning and calculation logic
Using steperb
steperb is explicitly designed to model stepper motors - it doesn't actually implement stepper motor pulse logic. You can model a stepper motor with a StepperController object.
use StepperController;
StepperController objects allow you to "control" a stepper motor, modeling steps and angle calculations. To use the controller, set a desired angle.
// ...
controller.set_desired_angle.expect;
Increment through each step with motor actions.
// ...
while controller.needs_movement
You can also check if the motor should be moving in the opposite direction.
// ...
while controller.needs_movement
Free & Open-Source
steperb is 100% free with no drawbacks or limitations. There is no "premium" version; you get the latest and greatest, all licensed under the GPL-3.0.
All source code is public, to anyone. There is no "hidden mechanism" included in this repository; every reference and used factor exists completely and fully.