Search found 2 matches

by pauldreed
Sat Jan 25, 2014 8:46 pm
Forum: Motors & Servos
Topic: 5v 4-phase DC gear Stepper Motor + Driver Board (HCARDU0035)
Replies: 7
Views: 34262

Re: 5v 4-phase DC gear Stepper Motor + Driver Board (HCARDU0

I would use;

int buttonpin = 2; //wire a switch from pin 2 to ground to energise motor
void setup() {
pinMode(buttonpin, INPUT_PULLUP);
}
void loop() {
while (digitalRead(buttonpin) == LOW) {
//run the motor
}
}


Paul
by pauldreed
Sun Dec 01, 2013 5:05 pm
Forum: Motors & Servos
Topic: 5v 4-phase DC gear Stepper Motor + Driver Board (HCARDU0035)
Replies: 7
Views: 34262

Re: 5v 4-phase DC gear Stepper Motor + Driver Board (HCARDU0

I've never used a stepper motor before, so pls bear with me... The formula to drive the motor through one revolution is 360 / (5.625 * (1 / 64)) = 512 ... so if I wanted it to complete say 3 full revolutions, is it simply a case of amending the calculation to; 1080 / (5.625 * (1 / 64)) = 1536 Also, ...

Go to advanced search