Moving two gear motors with L293D, max. Speed ?

Hello
I am using the setup from this link.
http://www.arduino-tutorial.de/2010/06/motorsteuerung-mit-einem-h-bridge-ic/
The code basically makes the two gear motors move for several seconds to the left; make a short break and then move several seconds to the right..As a next step I want to vary the speed make it faster; slower, move backwards and forwards, accelerate slighlty to then run fast for 10 seconds...and so on. And also give both Motors diverent informations - that the move in different directions.

Now I got the following problem: my Motor does not run even half as fast as it should when it is controlled by the Arduino.
If motor plugged directly to current it runs at least 2 times faster.

Does anyone have an idea how to accelerate the Motor that it reaches it´s maximum speed?

Thanx for help

It would be better if you were to show the exact setup that you are using, along with specs for your motors and power supply.

Look here: The motor runs at half the speed - #13 by MarkT - Motors, Mechanics, Power and CNC - Arduino Forum

Also Look for a H-bridge that employs MOSFET ouput stage, this way the motor will see the whole voltage, and it will not get hot either.

// Per.

The sketch you linked to varies the motor power from 0 to 255. Can you confirm that you were looking at the performance when full power was applied?

There will always be some voltage drop across the transistors inside the h-bridge. The lower the voltage that is being controlled, the more significant that drop would be. Can you simply increase the supply voltage to the h-bridge?

Hello, thanks to everyone for the qiuck replies... I am a bit slowlier and it took me a while to find a solution...I thought it is about the code... but it is not! It is right the H-bridge, which really takes away plenty of energy and this is why the motor does not see the whole voltage... And by increasing the supply to h-bridge it also makes the motor run faster almost at maximum speed. I did not try mosfet but - yes it would probably also help.

I am already happy now :slight_smile: