A very tiny board with could be used to control DC motors and Stepper motors. (Two layers)

I used a L293D as heart of this controller - 2 dc motor or a stepper motor 4pins. 

 

Basically, input pins in the left to the board corresponds to pins in arduino o whatever microcontroller, In the right to motor pins.