In this challenge I had to make a shape in a similar way to a Spirograph using the EV3. I didn't even know what a Spirograph was before this challenge, which makes me extra happy about the result.
Program Requirements:
This program has to move in a regular, mathematical way, so as to create a mathematical shape of some sort. And the robot itself needs to be able to hold a marker. It is not allowed to use tape to attach a pen or marker to the robot.
I used the code from the figure 8 challenge to test with the marker, and make sure that it could hold it well, see figure 8 challenge for pictures of the code
pseudo-code:
goal: to make a figure 8 type Spirograph, where the robot changes the angle slightly every time it does a figure 8.
steps:
1. start infinite loop
2.move at a 90 degree angle at power half for one rotation
3. move at a 180 degree angle in one wheel rotation
4.go to loop start
Reflection:
In the process of completing this challenge i learned (as previously mentioned) what a Spirograph is. I learned more about the real capabilities of the EV3, and what it is good at doing. Namely, making Spirographs.
(I'm gonna do the bad first.)
One thing that didn't go so well was the first iteration of the Spirograph. At first rather than creating a whole new program I simply modified the figure 8 program, which didn't work so well in creating a Spirograph shape. It ended up just listing down and to the right.
One thing that did go quite well was the second program I made. The first time I tested it it looked really good. And that's the exact same program I used to create the Spirograph pictured below.
My goal for the next challenge is to be more creative with my program, and to really think about what it will do, and what I want it to do. In this program I just made something to see if it would stick, it didn't, and then I made another one, and then that one did.
Not next time, prototypes and iterations yes, flat out guessing no.
I hereby dub this robot: Spirograph, here are some pictures and a video:
Comments