finished spine (new arduino code)