Ferret Bindings for Sparkfun BabyDriver stepper board. SPI driven 3A 8-45V, based on L6470 part from Linear
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
SparkFunAutoDriver.cpp
SparkFunAutoDriver.h
SparkFunAutoDriverCommands.cpp
SparkFunAutoDriverConfig.cpp
SparkFunAutoDriverSupport.cpp
SparkFundSPINConstants.h
core.clj
driver_o.h

README.md

Ferret Bindings for SparkFun AutoDriver - Stepper Motor Driver

AutoDriver

AutoDriver (BOB-11611)

The AutoDriver is a bipolar stepper driver based on the ST Micro L6470 chip. It allows a processor to control a single 3A bipolar stepper motor across an 8-45V supply range.

(require '[ferret.arduino :as gpio]
         '[ferret-L6470-AutoDriver.core :as driver])

(gpio/spi-begin)

(def motor (driver/driver 0 2 3))

;; 500 steps forward
(driver/move motor 500)

See core.clj for supported functions. Due to they way Arduino IDE works, you need to copy all SparkFun* files to a folder under your Arduino libraries folder.

Documentation