stepper_lib-0.10.6 has been yanked.
stepper_lib
A library for all types of components used in robots, including controlls for stepper motors, servo motors and more complex assemblies using said motors. Currently all implementations are made for the raspberry pi, though new implementations for more controllers are currently being made.
In Action
Let us assume we want to control a simple stepper motor (in this example a 17HE15_1504_S) with a PWM controller connected to the BOARD pins 27 and 19.
Importing the library
# ...
[]
# Include the library with its standard features
= "0.10.6"
# ...
// Include components and data
use crate::;
use crate LinkedData;
// Include the unit system
use crate*;
// Pin declerations (BOARD on raspberry pi)
const PIN_DIR : u8 = 27;
const PIN_STEP : u8 = 19;
// Define distance and max speed
const DELTA : Delta = Delta;
const OMEGA : Omega = Omega;