moved protocol to arduino