Arduino talks to the pi mostly reliably and samples at the correct rate