Git Product home page Git Product logo

raspberrypistepperdriver's Introduction

RaspberryPiStepperDriver

Python Raspberry Pi library for the STEP/DIR stepper drivers.

Usage

There are currently 3 distinct driver implementations:

stepdir.StepperDriver Basic step/dir driver No ramping support All drivers not listed below inherit from this one.

tmc26x.TMC26XStepper No ramping support

accelstepper.AccelStepper A port of the Arduino AccelStepper library. Supports configurable ramp profiles. profiles.accel.AccelProfile The original AccelStepper profile profiles.max.MaxProfile A simple profile that accelerates and decelerates as fast as possible.

Testing

./test/test.sh

Trinamic Support

TMC 260/261/262/2660 Stepper library for Python

Based on the Arduino TMC26X Stepper Motor Controller Library https://github.com/trinamic/TMC26XStepper

Prerequisites

pip install spidev

Usage

from RaspberryPiStepperDriver import spi, tmc26x

TMC26X drivers must be configured via SPI

Create an SPI object for /dev/spidev0.0

spi_dev = spi.SPI(bus=0, device=0)

200 steps per motor revolution

dir_pin = 23, step_pin = 18

driver current = 300 milliamps

driver = tmc26x.TMC26XStepper(spi_dev, 200, 23, 18, 300) driver.start()

References

Arduino library for A4988, DRV8825, DRV8834 and generic two-pin (DIR/STEP) stepper motor drivers https://github.com/laurb9/StepperDriver

TMC260 / TMC260A & TMC261 DATASHEET http://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC261_datasheet.pdf

TMC262 DATASHEET http://www.microsemi.com/document-portal/doc_view/130727-trinamic-tmc262-stepper-motor-driver-datasheet

TMC4210+TMC2660 EVALUATION BOARD MANUAL http://www.trinamic.com/fileadmin/assets/Products/Eval_Documents/TMC4210_TMC2660_Eval_Manual.pdf

Arduino TMC26X Stepper Motor Controller Library https://github.com/trinamic/TMC26XStepper

raspberrypistepperdriver's People

Contributors

alangibson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.