Thymio draws a fractal
Thymio draws a fractal
by Christophe
Done with 1 Thymio
Keywords:
Drawing Odometry Fractal
Art, sound, music, drama
I used a Thymio to draw a big fractal design. It's a circle within which there are three circles within which there are three circles.
Everything is done with odometry (Thymio computes the distance it travels and uses this result to estimate where it is). I wrote an algorithm that goes this way:
Thymio does
- A third of the big circle
- A third of the medium circle
- A complete small circle
- A third of the medium circle
- A complete small circle
- A third of the medium circle
- A complete small circle
And then it goes back to drawing a third of the big circle. It does that three times to draw the complete design.
Hope you like it !
(I attach the code, you should maybe tweak it a bit to make it work. The odometry is highly dependent on the robot => the relation between the motor speed in Aseba Studio and the real motor speed is slightly different for every robot)
Comment this creation!