To drive a regular DC motor you can use a h-bridge motor controller. But with a dc motor itβs impossible to tell the rotation angle. If you use a stepper motor you can kind of tell (but not for 100% because of the possibility of step skipping). If you want to be 100% sure of the angle you need some ind of sensor like a encoder.