This video outlines how to control a DC motor using the Raspberry Pi using pulse-width modulation. Details about the L293D motor controller are also discussed.
Learn more about programming, electronics, and the Raspberry Pi at:
http://cutequbit.zapto.org