basic serial control of robot