stepper running rough what could it be ?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dansu
- Posts: 23
- Joined: Thu Jan 07, 2016 9:32 am
stepper running rough what could it be ?
Hi guys I have a Arduino starter pack. Just using the uno to run a step motor. The motor runs ok with a delay of 1, but then I give a delay of 10 and the noise picks up and runs rough. Why ? and what options are there to fix this ? Thanks.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: stepper running rough what could it be ?
Which stepper motor and what power supply are you using to power it?
Please post the code you are using.
Please post the code you are using.
- dansu
- Posts: 23
- Joined: Thu Jan 07, 2016 9:32 am
Re: stepper running rough what could it be ?
Stepper is SM42HT47-1684B
12V supply
Driver: A4988
Code:
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);
}
12V supply
Driver: A4988
Code:
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);
}
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: stepper running rough what could it be ?
Both stepper and driver are not products that we carry. You should contact the seller for technical assistance.
Please be positive and constructive with your questions and comments.