Skip to content

Instantly share code, notes, and snippets.

@giljr
Created October 29, 2018 19:24
Show Gist options
  • Select an option

  • Save giljr/0d250c7cee13da7d52b392b4fee5d0d7 to your computer and use it in GitHub Desktop.

Select an option

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
/* 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