Skip to content

A versatile Arduino library for converting stepper motor microsteps into precise linear distances, compatible with any stepper motor.

Notifications You must be signed in to change notification settings

dcondrey/MicrostepToLinear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicrostepToLinear Arduino Library

Overview

Convert stepper motor microsteps to linear distance with ease and precision. Available in the Arduino Library Manager.

Features

  • Customizable step angle, microsteps, and pitch
  • Efficient conversion from microsteps to linear distance

Installation

Arduino Library Manager

  1. Open Arduino IDE, go to Sketch > Include Library > Manage Libraries....
  2. In the Library Manager window, enter "MicrostepToLinear" into the search box.
  3. Click the "Install" button when you see the library.

Arduino CLI

  1. Install the library directly using Arduino CLI.
arduino-cli lib install MicrostepToLinear

Manual Installation

git clone https://github.com/dcondrey/MicrostepToLinear.git
cd MicrostepToLinear
arduino-cli lib install .

Usage

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);

License

MIT

About

A versatile Arduino library for converting stepper motor microsteps into precise linear distances, compatible with any stepper motor.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages