This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dual Stepper Motor Control (Arduino UNO R3) | |
Controls the speed and direction of two stepper motors | |
via two analog inputs. Used to achieve two-dimensional | |
movement controlled by a joystick. End-of-track sensors | |
prevent damage to the structure and motors. | |
Based on "Speed Control" example of the Stepper lib. | |
Please note the Stepper library produces a bipolar sequence. | |
By swapping the two middle cables, a unipolar seq. is obtained. |