Hi,
In the last two days I'm trying to understand this problem, googled a lot, tried various wiring but useless, so I turned to forum...
What problem?
Well, I got two L293B and two L293E chips, picked up one, and wired it in standard way as described in the datasheet for driving 2 motors. I put diods from GND to each motor output and from there to the motor VS. Then to test it, i connected Arduino digital 7 and 8 to in1 and in2, and digital 9 as pwm to en1. Finally connected motor power and motor wires to the chip...and...
The motor moves only in one direction! My test code is this:
void setup()
{
digitalWrite(7, HIGH);
digitalWrite(8 , LOW);
}
void loop()
{
analogWrite(9, 250);
}
now if I replace 7 and 8 in digitalWrite() there, i.e. to reverse the motor, it stays moveless, while in on direction it moves ok, and in that direction pwm works fine!
Overall: in one direction everything seems correct, motor is controllable with pwm. In the other direction it stays moveless, as if nothing received!
What I next did?
Tried various scenarios, I changed my diods so if there is something wrong with them I figure it out but no problem. Then I replaced the chip itself switched between my L293E and L293B ... all the same! clearly something wrong with my understanding, but what?!
Please help me, pointing out of the problem ![]()
schema_Mine.TIF (41.6 KB)