Created
October 29, 2018 19:24
-
-
Save giljr/0d250c7cee13da7d52b392b4fee5d0d7 to your computer and use it in GitHub Desktop.
This is the most basic example you can have with an Arduino, an Easy Driver, and a stepper motor;) https://medium.com/jungletronics/easydriver-4-wire-stepper-motor-driver-9f32b233efe6
This file contains hidden or 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
| /* Project Ardu_Serie # 48 | |
| EASYDRIVER: 4-Wire-Stepper Motor Driver - Brian Schmalz Design on A3967 IC | |
| Bi-Polar Motors — .75A@30v peak — Making Using This a Breeze! | |
| Code I | |
| From: Brian Schmalz - Easy Driver Examples - Sample code and projects to get your stepper running! | |
| http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html | |
| Objective: Hi,This is the most basic example you can have with an Arduino, | |
| an Easy Driver, and a stepper motor;) | |
| */ | |
| void setup() { | |
| pinMode(8, OUTPUT); | |
| pinMode(9, OUTPUT); | |
| digitalWrite(8, LOW); | |
| digitalWrite(9, LOW); | |
| } | |
| void loop() { | |
| digitalWrite(9, HIGH); | |
| delay(1); | |
| digitalWrite(9, LOW); | |
| delay(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment