# pi-stepper-motor-controller

> Raspberry Pi Stepper Motor Controller

Latest version **0.0.12** (published 2022-07-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install pi-stepper-motor-controller
pnpm add pi-stepper-motor-controller
yarn add pi-stepper-motor-controller
bun add pi-stepper-motor-controller
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2022-07-11 |
| First published | 2022-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | whitewood-robotics-solutions |

## Links

- npm: https://www.npmjs.com/package/pi-stepper-motor-controller
- npm.io page: https://npm.io/package/pi-stepper-motor-controller

## Dependencies (1)

- [onoff](https://npm.io/package/onoff.md) ^6.0.3

## Recent versions

- 0.0.12 (latest) — 2022-07-11
- 0.0.11 — 2022-07-11
- 0.0.10 — 2022-07-11
- 0.0.9 — 2022-07-10
- 0.0.8 — 2022-07-10
- 0.0.7 — 2022-07-10
- 0.0.6 — 2022-07-10
- 0.0.5 — 2022-07-10
- 0.0.3 — 2022-07-10
- 0.0.2 — 2022-07-09
- 0.0.1 — 2022-07-09

## README

pi-stepper-motor-controller
===========================
# Description
Low-level _Raspberry Pi Stepper Motor Controller_. Low-level in a sense
that the `StepperMotorController` class that makes up this project
have one purpose, that is to turn a motor _forward_ or _reverse_ given
number of steps and _half step delay_, nothing more.

# Example
Suppose we have a stepper motor controller and the direction pin is in
13, step pin is 16, and enable pin is in 17. To run it
1000 steps, where each half step is delayed by 1ms:
```ts
import { StepperMotorController } from './StepperMotorController';

const motorController = new StepperMotorController(13, 16, 17);
motorController.run(1000, 1);
```

---
_Source: https://npm.io/package/pi-stepper-motor-controller · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
