Arduino frequency recording and camera control