Convert stepper motor microsteps to linear distance with ease and precision. Available in the Arduino Library Manager.
- Customizable step angle, microsteps, and pitch
- Efficient conversion from microsteps to linear distance
- Open Arduino IDE, go to
Sketch
>Include Library
>Manage Libraries...
. - In the Library Manager window, enter "MicrostepToLinear" into the search box.
- Click the "Install" button when you see the library.
- Install the library directly using Arduino CLI.
arduino-cli lib install MicrostepToLinear
git clone https://github.com/dcondrey/MicrostepToLinear.git
cd MicrostepToLinear
arduino-cli lib install .
Include the library and initialize the converter object.
#include "MicrostepToLinear.h"
MicrostepToLinear converter(1.8, 16, 2.0);
Convert microsteps to linear distance:
float distance = converter.convert(3200);
MIT