The following program uses to two colour senses. It follows a line and stops when both see black.
EV3 Beginner Programming:
These lessons will teach you to move and turn the robot, use the sensors, and use loops and switches. Each lesson starts with a list of objectives and ends with a challenge.
There is a challenge solution as well, but you should complete the challenge on their own before checking the solution.
Each group programs their robot to move forward and reverse the same distance to return to its beginning spot (See EV3 Classroom: Moving Straight slides).
Once all groups have achieved this we can create a collaborative Robot Wave.
Robot Wave: Synchronise a group of robots to perform the Wave, an audience move popular in sporting stadiums around the world. As a class, you will need to determine what order the robots will move and what action they will perform.
Each group changes the "wait" time so that the robots leave at different intervals. All robots are started at the same time.
Test the interval to see the most effective: 1.0, 0.5 or 0.25 seconds?
Change the forever loop to a "repeat loop" to run the program 5 times.