
WRO Junior-High 2015. Collecting single treasure. Full run. Part 5
In this episode we do a full run of the mission for collecting a single treasure before going into explanation on how we have programmed the robot.
- #228
- 16 Oct 2016
In this episode we do a full run of the mission for collecting a single treasure before going into explanation on how we have programmed the robot.
After we have introduced a menu in the previous video, this video focuses on storing the values in an array. It presents a basic use of arrays.
The challenge for this video is to program a menu that is controlled from the LEGO Mindstorms EV3 brick screen.
In this video we look at the robotics mechanism for dropping the different blocks into the different region on the World Robotics Olympiad 2013 field.
We are working on the World Robotics Olympiad (WRO) 2013 competition and its elementary part. The series will introduce three different concepts and this would be Arrays, Menus and Counting different lines. In the video you will see the robot working as it is in the final stage.
One of the interesting things in this sequence of videos is the program. The program detects when the system has reached the maximum speed and then stops the motor from rotating. We detect this with the EV3-G software
We would continue from the previous program where we used variables and we would change this to arrays.
The robot works on the field and decodes the different colours that represent the rows and the columns.
We would look at the rules of the competition over our small model and we would start solving the field.
We discuss the state of "Lost" and the different ways we could escape this state. We also build the next step of our State machine programming pattern where the next state is determined by the previous state.
The field in the game of life could be finite or infinite. It is interesting to see and learn how an infinite field behaves and works.
Display a matrix on the brick screen. Simple and easy. Download and run the program to see how
The task is to find what the best seed is that will live the longest without entering into a loop or without dying. Find it and submit in the tasks section.
Display a matrix with "life" and "dead" cells on the EV3 LEGO Mindstorms brick screen. The program is available. You can see it, change it, modify it and learn from it.
Learn to program the Game of Life on the LEGO Mindstorms brick screen. This would require drawing on the brick screen, using blocks with switches and loops.
All worked as expected, up until know because the robot got lost. This happens when we turn right and the line does not continue to the right. Now the robot must somehow understand that it is "lost" and escape.
The code is already ready. It is attached below the video. Let's see how the program works and what it does and how to use it.
Let's implement a more advanced program for this robot to learn how to use with motors in opposite directions - and this is to implement the Proportional Line Following algorithm.
There are basically three type of generations in the robotics game of life.