--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
const int stepPin = 8; const int dirPin = 10; const int stepPin2 = 9; const int dirPin2 = 11;
void setup() { // put your setup code here, to run once: pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT); pinMode(stepPin2,OUTPUT); pinMode(dirPin2,OUTPUT);}
void loop() { // put your main code here, to run repeatedly: digitalWrite(dirPin,HIGH); digitalWrite(dirPin2,HIGH); for(int x = 0; x < 10000; x++) { digitalWrite(stepPin,HIGH); digitalWrite(stepPin2,HIGH); //delayMicroseconds(500); digitalWrite(stepPin,LOW); digitalWrite(stepPin2,LOW); //delayMicroseconds(500); } delay(2000);}Cloe let us know how using a AC motor works with stepper code.I am new to this so am probably missing something.Ralph
On Thu, Jun 7, 2018 at 10:15 AM, Cloe Gibbons <cloeg...@gmail.com> wrote:
Oh of course yes! Thank you for the quick response!
On Thursday, 7 June 2018 12:45:35 UTC+1, gregor wrote:Hi,the '1' is not a pin number, but tells AccelStepper that stepper driver uses a step and enable pin only. see http://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.