challenge #8 Spirograph
- Aidan
- Apr 18, 2016
- 1 min read
The program requirements are that it [the robot] has to be able to hold a marker against the ground while moving in shapes. It will make the shape, then change it's angle, and then repeat the shape. I'm assuming we'll find a shape we like while in the process of programming. I am also assuming we will have enough paper. I am also assuming that we will decide how many time it will repeat the shape. Some of the setbacks are that we can not bring the marker off the ground.
Here is the pseudo code:
Loop
Turn to the right while going forward at 30 turn at 50 power for 2 rotations
Turn to the right with 100 turn at 50 power for 0.5 rotations
repeat 25 times.
Here is the code.

Here is the video of the Spirograph in action.
I learned how to use loops way more efficiently than I did before I started the challenge. it mostly went as planned except for the amount of rotations which was a little bit fiddly. For the next challenge I'm going to choose one code idea and stick with it instead of changing it multiple times.
Comentarii