Open Roberta

Do if color

Background

EV3 depending on the color should do different task without breaking the ride

This is a NEPO task, make sure to read the info.

Task

Write a program for EV3 in which the robot goes through all colors in the simulation. The robot should go in an endless loop with the speed equal to 30. When the robot identifies a color it should do different tasks. The task depends on color. To identify the colors you should use "if" block. If the robot recognizes blue color, he should play a whole note and then EV3 should ride on. If the robot recognizes the yellow color it should say hello once. If the robot recognizes the green color, it should write color on the display. If the red color is detected, the robot should break the loop. To break the loop you have to be in expert mode. To choose expert mode you have to click on the star sign, the sign is located directly above the action blocks. After that you have to go into loop under Control. There is a "break out of loop" block. The block must be used to break the loop.

Deliverables

Complete the task by providing the program with explanations and a short video of the running program.

Task tags

  • nepo
  • novice

Students who completed this task

Shrey_vanja, RoguedBear, Vikhyat, Blippy, MaksDer5345

Task type

  • code Code
close

2019