Add Arduino and update some of the iOS code