libpruio  0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
stepper.py File Reference

Example: control a stepper motor. More...

Go to the source code of this file.

Functions

def stepper.stepper (stdscr)
 The main function.
 

Detailed Description

Example: control a stepper motor.

This file contains an example on how to use libpruio to control a 4-wire stepper motor:

  • configure 4 pins as output
  • receive user action in loop
  • inform user about the current state
  • change motor direction
  • change motor speed
  • stop holded or in power off mode
  • move a single step (in holded mode)
  • quit

Find a functional description in section stepper.

Licence: GPLv3, Copyright 2017-2023 by Thomas{ doT ]Freiherr[ At ]gmx[ DoT }net

Run by: python stepper.py

Since
0.6.0

Definition in file stepper.py.