How to control a DC Motor

Ok, so I guess I can't use that for debugging. How does the schematic look?