H-Bridge behaving strange

Hi there,

I've recently bought an Arduino and my first real project is combining it with an old RC-Car, throwing the original electronic components out and doing everything with the Arduino.
My problem is controlling the motors. I use the ones already present in the car. They are DC motors, both for driving and for turning (i think i'll have to redo turning with a servo later, because it does not drive in a straight line). I control the motors with an H-Bridge, following the tutorial at itp.nyu.edu/physcomp/Labs/DCMotorControl
I used a TI L293NE H-Bridge.
The enable Pin is directly connected to +5, the motor logic pins are connected to the Arduino. I uploaded a simple test program which makes the motor run in one direction for 4 seconds, then the other direction for 4s, ...
At first I noticed that the motor runs much slower than if directly connected to the batteries (which were the ones already present in the original car). Even worse, each time the motor gets reversed, it gets slower and slower, ultimately moving only if pushed a little bit in the right direction.
Could anyone tell me why this happens and how to stop that weird behaviour?

Wilson

Where do you get the voltage for the motors from? I hope you did not try it from the Arduino 5 volts???

I think the H-bridge you are using can have a significant voltage drop across it, which may have something to do with the lower performance. If you are using the arduino 5v for motor power, that can be a problem.

At the moment, i am powering the Arduino from the USB port and the motors from the original batteries (4x AA).

(Hopefully) exact schematics are here: