Update to the Arduino script

Problem with the arm returning to zero an motor reversing should now be
fixed