Knowledge Base

Wait Until Blocks (EV3)

output-onlinepngtools__231_.png  These blocks works for EV3 Robot! 

The Wait Until block pauses program execution until a specific event occurs. There are multiple variations for this block, each for a specific sensor.

It's important to note that this block only pauses the program from executing the next commands, until the event has occurred, not the robot itself.

We have included examples of sensor-related events that will cause the robot to stop.

  • Wait until the color sensor detects the color Blue (using Color Name method)

mceclip0.png

  • Wait until the left motor encoder count is over 100

mceclip0.png

  • Wait until the ultrasonic sensor detects an obstacle at a distance of less than 250 cm.

mceclip1.png

  • Wait until the touch sensor is pressed

mceclip2.png

  • Wait until the gyro sensor turns more than 90 degrees (to the right)

mceclip3.png

 

 

Configuration

Block Description Compatible Blocks Range
Wait Until Touch

Wait until the touch sensor is pressed (true) or released (False)

Boolean (True/False)
Wait Until Gyro

Wait until the gyroscopic sensor reaches a degree equal or greater/less

-∞ - +∞
Wait Until Ultrasonic

Wait until the ultrasonic sensor detects an obstacle at a distance equal or greater/less

0-250
Wait Until Color 

Wait until the color sensor measures a light intensity of  equal or greater/less

0-100

Wait Until Color

Wait until the color sensor detects a specific color/any other color

N/A

"Black"

"White

"Red

"Yellow"

"Green

"Cyan"

"Blue"

"Magenta

"Brown

Wait Until Motor

Wait until the motor encoder measures a count of equal or greater/less

-∞ - +∞

 

Was this article helpful?
3 out of 3 found this helpful

Comments

  • Avatar
    Paulina Garcia Munoz

    it was good information.

    0
    Comment actions Permalink
  • Avatar
    Elijah Flores

    yes it was very helpful

    0
    Comment actions Permalink

Please sign in to leave a comment.