More information on what you're trying to do would be helpful.
If we know your end goal (what your robot is eventually going to do), it would help us tell you how to design a circuit. In the mean time, try googling for comparator and motor driver, usually anything you try to do someone has done before and documented.