Miniature robot controlled by a clock