Pin 1 of L293DNE H-bridge does not seems to work

Hello,

I'm starting to use H-Bridge with project 10 but I don't seem to be able to control the motor starting or stopping with pin 1 of the H-bridge.

I am able to change motor direction with pin 3 and 6, but it keeps spinning at the same speed whatever the voltage I apply to the pin 1 with my potentiometer.

If I disconnect the arduino from pin 1 or connect the pin 1 to the ground, the motor keeps spinning (??). Then if I control the voltage on pin 1 with my multimeter, in both cases I see that it is 0.

The only programmatical way I have to stop the motor is to send LOW (or HIGH) to both pin 3 and 6.

I'm starting to think there is an issue with my H-bridge pin 1. Any help or suggestion will be greatly appreciated.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

We need to know what tutorial you are using, as there are so many, that Project 10 can mean any Arduino project.

Thanks.. Tom... :slight_smile:

Speed change requires a PWM signal on the EN pin. A variable voltage from a pot connected to L293 pin 1 won't do anything useful. But then it's not clear if you mean pin 1 on the L293 or pin 1 on the Arduino.

We need to see a circuit diagram and preferably a picture of how you have wired things up to implement that circuit.

Steve

Hi,

Thanks for the advices. I'm speaking about the Zoetrope project.

I simplified the circuit and the code a lot to identify the issue as you can see in the attachment.

const int controlPin0 = 3;
const int controlPin1 = 2;

void setup() {
  pinMode(controlPin0, OUTPUT);
  pinMode(controlPin1, OUTPUT);
}

void loop() {
  digitalWrite(controlPin0, HIGH );
  digitalWrite(controlPin1, LOW );
}

With that circuit and that code, my motor keeps spinning forever though the pin 1 of H-bridge does not receive any current. Any ideas of where the issue could be ?

You've left pin1 floating. Connecting it to ground should stop the motor. If it doesn't then I'd guess the L293 is bad.

Have you tried using the other half of the L293, pins 9, 10 and 15 with motor on 11 and 14?

Steve

OPs diagram.


Thanks.. Tom.. :slight_smile:

Thanks for the quick replies.

I tried to link the pin 1 of the h-bridge to the ground and the motor still spinning.

Now I tried the other half of the h-bridge and the motor stop spinning when pin 9 of the h-bridge receives LOW and start spinning when it receives HIGH. So it seems that the issue is only on the other half of the h-bridge.

Thanks a lot for the help.

Stéphane