In the past two weeks we have been preparing for Robo Cup, we had the opportunity to join and I wanted to. What we had to do was make our robot follow a course with a curvy black line on it. I found it really hard to program my EV3 to go through the course without it going off the line! Every board we go over earns us ten points and each time the robot goes off the line you lose ten points. To complete the course without it going off and randomly wheeling around was to make the robot re-adjust itself every time it went off the line, underneath here is a snip of the programing.
This program asks the line sensor a question ‘do you see a black line’ if the answer is yes the robot will keep on going forward but if the answer is no then the EV3 will adjust itself one tenth of a wheel turn. If it still doesn’t see it will do it again and so on. The flaw in this program is that the robot is not facing straight after the slight adjustment but facing a bit to the side. It keeps on going but after a while it veers of to the side and the program can only turn right not left so the robot is stuck. My partner and I still can’t work out how to make it turn right when it needs to and left when it needs to!
So far we have made it go zigzag, when we tried it out on the course it still didn’t work and went off the line and didn’t go back. The challenge was to get your robot through the course( without going off the line) the quickest, at the end was a green patch and then to push a person (on the green stuff) away and to safety. Of course that is for the people whose program works! So we adjusted our program and it still didn’t work, here is a picture of it below.
What we made it do was to just zigzag but it didn’t move at all so, back to the drawing board for us! So far we have made over eight programs and guess what, they don’t work. The furthest we have got is four boards but that was with us putting the robot back to the right place and we’re not meant to touch it! I would put in all the programs we have made but there is abit too many. The challenge for the people that aren’t doing Robo cup is to make your robot follow a circle, our first program worked on the circle and went at about 1 km an hour and took a few minutes to complete!! I really hope that we get the program and complete the course but we haven’t yet!
We found out that we could put two colour sensors on, at first I thought it would make it easier but no it made it harder. First we had to put together a normal program and add switch bricks in switch bricks. This is what a switch brick looks like.
A switch brick can be asked the question ( the tick is yes and the cross is no ) you can put other bricks in the switch brick ( including switch bricks ). The program we made had four switch bricks, one repeat brick and loads of move bricks. Here is a picture of it below.
The day of ROBO CUP
On Friday 15/6/18 the Robo cup teams all went to Christion College to compete, when we got there it was raining and we had to protect our robots from “the rain”. Once we had arrived we set up and got to work. We tried our robot out on the course and one of the colour sensor’s had turned off. We changed the program but no success. I was freaking out and so was the rest of our team. For a whole hour is didn’t work, suddenly we realised it was our turn to put our robot on the course. I remembered a program that we had decided not to use but we had to use it. We put the program into the robot and didn’t have time to test it. the timer started and we pressed the program and the ev3 was off. It worked!! we where so, so, so excited. Sadly the ultrasonic bit didn’t work but the line following worked amazingly! We tweaked the program a bit to try to make it work.
The next round the course was harder but the robot got through it ( the ultra sonic didn’t work again ) We tried to improve it again but the ultrasonic refused to work. We tested out the dodgy program but nothing had changed so we decided not to waste our time on it. In the third round they added the bridge, we were worried because on the bridge the robot stuffed up. As we had guessed the robot went of the line at the bridge and we had to put it back on the course. You get ten points every board you cross and lose ten points if the robot strays of the board or you touch it. We were trying to adjust it so it worked on the bridge but if we did it messed up the whole program! The fourth round was practically the same but the ultrasonic hadn’t worked yet so we decided to focus on that. We tried lots of things and the black team helped us with it, but no use it didn’t work!
The fifth round was our worst run yet! the ev3 kept on missing the line and messing up! The program was the same but the result was different!
Finally they announced who had won, the RED team came third, the PINK team came second and the BLACK team came first! they were all from Geelong college!! yay!!
I learnt from this experience that you have to be logic and patient to get somewhere and that winning doesn’t matter! I would love to do it again and in year six to compete in the dancing robot competition!