Control code for my stepper-motor-controlled robot artist Doug (named after the robot(s) built by the Artist Sougwen Chung). This is he:
And these are some of his works:
He is quite precise:
The geometry problem to figure out the position of the pen as a function of the length of the wires (and the inverse thereof) is a good one: