added arduino-to-chuck code