I plugged in the Arduino to my computer and selected the board and port. Then I verified there were no issues with my code before clicking the arrow to upload the code.
this code also did not work:
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}
my EN+, EN-, out+, out-, and NC pins are not connected connected to anything. My V+ and V- are connected the the DC battery and my Step+, Step-, Dir+, Dir- are connected to the arduino open spots. is this good?
Please use code tags; I can see that you tried but replace the three ticks ''' in the beginning and the end by three backticks ```.
```
your code here ```
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the IDE 1.x category.
You can create one
So the question is what the motors actually do? Don't run at all, don't run at the same time?
Step 8:
Optionally, you can test motor operation by activating
switch 4 in the “SETUP” DIP switch bank to initiate a self
test. The self test continually rotates the motor forward
and backward 2 1/2 revolutions.
I am concerned about your use of a small battery for the project. Have you monitored the battery voltage while trying to run the motors? Do you have a battery charger to keep the battery fully charged? Perhaps charge the battery WHILE running the motor tests.