added arduino controller code