See update, picture of robot below.
So today I hooked up a motor and made it spin with my raspberry pi and an L293D by reading this tutorial.
This is what the circuit looks like (larger pictures):
It work's and I'm pretty happy. My end goal is to understand this and build something that can control two motors and I'm set to build a small bot :)
If I'm not mistaken in this circuit, the enable pin on the L293D is getting a PWM signal for the speed of the motor it drives.
From the software page I can follow what the python is doing but I don't see where it says that pin 18 on the raspberry GPIO should be enabled as PWM? The docs say that Pin 12 supports PWM ? How does this work?
What if I didn't care about speed? Can I just use an regular GPIO pin for output a high on the enable of the L293D? With the Pi I'm assume that would out a 3.3v? And if I'm looking at the datasheet correct the enable pin can take upto 7v as a high? (What speed would it run on?)
Also again, if I didn't care about speed control, I could hook another GPIO to the second enable and control another motor also right. And I can then control each of they're directions?
Thanks @Passerby and @JImDearden I got it to work. No PWM, but just two motors. Like @Passerby says, I need three GPIO's for each motor. One for enable/disable and two for direction.
Here is what I made :) And it's wifi network controlled (with a wifi dongle attached) The cable is just a USB power cable :)