Need help with a $4.00 dual moror controller , trying to build a robot

This is an image of my work so far, i cant see hoe to put an image into this post ? http://forums.parallax.com/showthread.php/156249-Stepper-motor-controlers/page2

Im trying to use an L298n but i find it confusing on how to wire it up.

I suppose i have to have all six of the pins connected to my arduimo, this ir my first arduino and trying to uise it. But unlike one of those pictures my Motor controller being almost exactly thre same does only have 4 pint to connect, the two on the outsides of those pins are some other type of connector i don't recognize.

I wish i got a more expensive polu, they seem easy to wire up with plenty of easy instuctions but i cant afford champagne, just beer :wink:

There are lots of examples using an L298 motor controller with Arduino. Google is your friend.

Here is a site with some more detail on how to connect it. This one is a shield, but the pins used are similar:

It looks like your board has two options for power. You can use separate power supplies for the motors and the 5V logic (usually this is preferred). Or the board has a 5V regulator that can step down the motor power supply to provide 5V for the on board logic. Consult the schematic to be certain, and adjust the jumper accordingly.

-transfinite

This little bugger is actually my weapon of choice for my first round protos here where I work. I'll give the info I've got on it from exp.

Leave the Enable A and Enable B- it's just easier unless you explicitly NEED to disable one or the other.

Pin 1 corresponds to the top right power out in the picture (HIGH == HIGH)
Pin 2 is the left top
Pin 3 is the left bottom
pin 4 is the right bottom

I've used only 4.5-6V on the 5V in, but I've run everything from 3-30+V on the 12V in (probably not the smartest or safest idea, but I was trying to push what I was doing).

Ex: I have a motor hooked up to the top outputs and I wanted to control the direction, my code would be this:

//forward
digitalWrite(12, HIGH);
digitalWrite(13, LOW);

//reverse
digitalWrite(12, LOW);
digitalWrite(13, HIGH);

//stop
digitalWrite(12, LOW);
digitalWrite(13, LOW);

Where 12 goes to pin 1 on the h-bridge and 13 goes to pin2 on the h-bridge (your controller is technically a dual h-bridge).
Wrap those in whatever if-else cases or switches or what have you as need be, but I think that should be the gist.
Let me know if there's any other info you need and I'll see what I can do.

Thank you for your replies. They are a great help. PS. I was just told by a fellow that used the same motor controller to leave the 5 Volt screw connector. I think he said it was a power out, im not sure about that... but he strongly recommended not to use it !!!

Also that the Enable A or /and Enable B- do need to be attached , take of the jumpers and use whichever pin you like on each to enable a motor ?