Timer task and Arduino control