Help please, what dose "en" denote?

On this diagram, what dose the 1,2en & 3,4en mean?

as it from a voltage supply it can only be +5v or GND.......right? :-[

They are the enable pins. Sending +5v to the 1,2 en pin would "enable" the 1,2 motor to work. Sending gnd to that pin would disable the motor.

Same goes for the 3,4 pin and the corresponding motor

in other words, the pin can be used as an emergency cutoff switch to stop the operation of the motor(s).

Thanks jezuz, still cant get this blasted motor to work, best i can do is get it stepping in one direction.......think i will post some photos of my breadboard, and throw myself on the mercy of the forum :slight_smile:

Are you using a stepper motor or a normal one? The hbridge is for normal, 2 pole brushed motors (e.g.: the generic ones with 2 wires coming off them)

Also, I advise using this guide

http://itp.nyu.edu/physcomp/Labs/DCMotorControl

im using a bipolar 4 pin motor and have it wired up like this:

As http://arduino.cc/en/Reference/StepperBipolarCircuit

........just looking for my digi cam :-/

did not know that hbridges could run steppers... oops... nvm then.

here is my breadboard, the chip is the L293D, and i have +5V on the right rail, and 9v on the left rail.........most anoying this is i had the motor uning fine last month, now when I re try all i get is RWERRRRRR! as it shudders, or turns 360ish one direction then gives up :cry:

9v batt. dead perhaps?

nope, its a 9v powerpack :cry:

check the code then, maybe theres an error there.

Possibly, iv only made one change in the sample code from:

#define motorPin1 8
#define motorPin2 9
#define ledPin 13

// initialize of the Stepper library:
Stepper myStepper(motorSteps, motorPin1,motorPin2);

to:

#include <Stepper.h>

#define motorSteps 100     // change this depending on the number of steps
                           // per revolution of your motor
#define motorPin1 8
#define motorPin2 9
#define motorPin3 10
#define motorPin4 11
#define ledPin 13

// initialize of the Stepper library:
Stepper myStepper(motorSteps, motorPin1,motorPin2,motorPin3,motorPin4);

void setup() {
  // set the motor speed at 60 RPMS:
  myStepper.setSpeed(60);

  // Initialize the Serial port:
  Serial.begin(9600);

  // set up the LED pin:
  pinMode(ledPin, OUTPUT);
  // blink the LED:
  blink(3);
}

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

}

// Blink the reset LED:
void blink(int howManyTimes) {
  int i;
  for (i=0; i< howManyTimes; i++) {
    digitalWrite(ledPin, HIGH);
    delay(200);
    digitalWrite(ledPin, LOW);
    delay(200);
  }
}

AGHHHHHH!!!! >:(

Still having no luck with this stepper motor!

I did a test for resistance on the motors leads, 1+3, 2+4 both have the same resistance, so are the same coil right?

Using that principle iv attached [out1] to 1 [out2] to 3 [out3] to 2 [out4] to 4

But all that happens is the motor step one step clockwise, and anticlockwise really fast, and get quite hot! :cry:

Have you tried slowing it right down to say 1 RPM? If it is trying to go too fast it will not turn but judder.

The other thing I would do is to ignore the library and code it by hand so you know exactly what sequence and speed you are driving it at.