Attached is a copy of the suggested circuitry for wiring a stepper motor with an L239D H-bridge chip.
I have tried everything I can and the motor just clicks back and forth without any steady motion in one direction or the other. I had it going in one direction briefly but now that is gone, too.
Can someone send me a photo of what the actual circuit looks like when wired?
Hello there!
Can you post any code you are using?
Thanks for a response.
#include <Stepper.h>
#define motorSteps 200
#define motorPin1 2
#define motorPin2 4
// initialize of the Stepper library:
Stepper myStepper (motorSteps, motorPin1, motorPin2);
void setup()
{
// put your setup code here, to run once:
myStepper.setSpeed(4);
// Initialize the Serial port:
Serial.begin (9600);
}
void loop() {
// Step forward 100 steps:
Serial.println("Forward");
myStepper.step(100);
delay(500);
// Step backward 100 steps:
Serial.println("Backward");
myStepper.step(-100);
delay(500);
}