I used to do something like that when I was a kid...but mine was much more low tech...
a piece of cardboard with holes for 4 markers...sort of looked like a little table...and for the motor I set it on the washing machine during the spin cycle. The vibrations made the thing move.