Go Down

Topic: Arduino Website Stepper Wiring Diagram for L239D (Read 162 times) previous topic - next topic

bigbadbaba

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?

bos1714

Hello there!

Can you post any code you are using?
Time line? Time isn't made out of lines. It is made out of circles. That is why clocks are round.

bigbadbaba

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);
}


Go Up