Controlling an H-bridge interface to the DC motors