This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am just running basic code. The nano is being powered form the laptop.
The driver and stepper are being powered from the external power supply that comes in the Arduino kit. 5v to the driver and stepper. This is for a rotating litho I have printed. I can hear the stepper humming and feel the vibrations, I have checked to make sure it is wired correctly, and I've switched out the nano, stepper and driver.
Thanks for any and all help.
include<Stepper.h>
int stepsPerRevolution=2048;
in motspeed=5;
int dt=5000;
Stepper myStepper(stepsPerRevolution, 8,9,10,11);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
myStepper.setSpeed(motspeed);
}
void loop() {
// put your main code here, to run repeatedly:
myStepper.step(stepsPerRevolution);
delay(dt);
}
Subreddit
Post Details
- Posted
- 6 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/arduino/com...