preliminary arduino code up