If the DC motor you need to control requires 500ma or less, here's a cheap way to drive it. A typical, small hobby motor that needs 3.3vdc, 5vdc or even 12vdc is an example. To start, here's a little roadmap of connections to the ULN2803A:
And here's how you'd connect your controller to it: