mauritska:
The problem is however, If I connect my motor driver together with my battery to the engine it will obviously not run entirely through the motor driver.
I don't understand - why not?
You will need to be careful to drive the Arduino from the battery that provides 0-12v (not the one that provides 12-24v) so that the Arduino ground is the same as the 24v ground.
...R