Overview
- Object ID : 2877 (2021-02-09 20:17:07)
- Author : Bill Tuss | added by Archiver
- Content : Code
- Microcontroller : Propeller 2
- Languages : PASM2, SPIN2
- Category : Motor Control
- Licence : MIT
Content
Language
Spin2, PASM2
Category
Motor control
Description
This object implements a step motor driver.
The trajectory is sinusoidal, ramp up, a period at constant speed, ramp down.
A STOP input is monitored that will decelerate the motor to a stop in a controlled fashion.
There are two versions. One for drivers that use step and direction inputs and one for drivers with cw and ccw inputs.
A demo program in spin2 is included.
License
MIT (see end of source code)