⚙️ EV3 101: #10 - Flow Block Basics
star
star
star
star
star
Last updated almost 3 years ago
16 questions
This course includes resources provided by the following:
- Joe Olayvar & Evelyn Lindberg in association with the Washington State Library
- Carnegie Mellon Robotics Academy from Carnegie Mellon University
📕 Click here to access the LEGO Mindstorms EV3 Programming Basics document in its entirety.
▶️ Click here to access the entire LEGO Mindstorms EV3 YouTube playlist from the Washington State Library.
🎓 Click here to access the free online EV3 course from Carnegie Mellon University.
2
Flow blocks are basically useless without other blocks.
Flow blocks are basically useless without other blocks.
10
🖥️ Program It: Use your own programming software to link a Wait block to the Start block. Configure the Wait block as follows:- Mode: Color Sensor > Compare > Color
- Port: 2
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
🖥️ Program It: Use your own programming software to link a Wait block to the Start block. Configure the Wait block as follows:
- Mode: Color Sensor > Compare > Color
- Port: 2
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
10
🖥️ Program It: Use your own programming software to link a Wait block to the Start block. Configure the Wait block as follows:- Mode: Ultrasonic Sensor > Compare > Distance Centimeters
- Port: 4
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
🖥️ Program It: Use your own programming software to link a Wait block to the Start block. Configure the Wait block as follows:
- Mode: Ultrasonic Sensor > Compare > Distance Centimeters
- Port: 4
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
10
🖥️ Program It: Use your own programming software to add a Steering block between the Start block and the Wait block. Configure them as follows:- Steering: Drive straight forward at power 50 indefinitely (no stop).
- Wait: Until the color sensor senses the color of an available tape that contrasts with an available driving surface. (Example: blue tape on a white floor.)
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
🖥️ Program It: Use your own programming software to add a Steering block between the Start block and the Wait block. Configure them as follows:
- Steering: Drive straight forward at power 50 indefinitely (no stop).
- Wait: Until the color sensor senses the color of an available tape that contrasts with an available driving surface. (Example: blue tape on a white floor.)
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
50
5
The __________ of a flow block sets a condition that must be met before the program continues.
10
What is a loop exit condition?
What is a loop exit condition?
10
🖥️ Program It: Use your own programming software to add a Loop to the Start block and a Steering block inside of the Loop block. Configure as follows:- Steering: Drive straight forward at power 30 indefinitely (no stop).
- Loop: Set loop exit condition to color sensor senses red.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
🖥️ Program It: Use your own programming software to add a Loop to the Start block and a Steering block inside of the Loop block. Configure as follows:
- Steering: Drive straight forward at power 30 indefinitely (no stop).
- Loop: Set loop exit condition to color sensor senses red.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
10
🖥️ Program It: Use your own programming software to add a Switch block to the Start block and insert a Steering block to the true track and another Steering block to the false track within the Switch block. Configure them as follows:- Switch: Condition: Color sensor senses blue.
- IF True: Drive straight forward for 2 rotations at power 30.
- IF False: Turn right 90 degrees.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
💾 Keep this program for use again later in the lesson.
🖥️ Program It: Use your own programming software to add a Switch block to the Start block and insert a Steering block to the true track and another Steering block to the false track within the Switch block. Configure them as follows:
- Switch: Condition: Color sensor senses blue.
- IF True: Drive straight forward for 2 rotations at power 30.
- IF False: Turn right 90 degrees.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
💾 Keep this program for use again later in the lesson.
5
How do you think we can make this Switch block code run multiple times or continuously?
How do you think we can make this Switch block code run multiple times or continuously?
40
🖥️ Program It: Move your Switch block from before into a Loop block and configure the program as follows:- Loop: Exit condition: Ultrasonic Sensor: Senses distance \leq 10 cm
- Switch True: Drive straight forward indefinitely (Mode: ON) at power 30.
- Switch False: Drive straight backward indefinitely (Mode: ON) at power 10.
- After Loop Exit: Add a Sound block to the right of the Loop block and configure it to play a sound.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
🖥️ Program It: Move your Switch block from before into a Loop block and configure the program as follows:
- Loop: Exit condition: Ultrasonic Sensor: Senses distance \leq 10 cm
- Switch True: Drive straight forward indefinitely (Mode: ON) at power 30.
- Switch False: Drive straight backward indefinitely (Mode: ON) at power 10.
- After Loop Exit: Add a Sound block to the right of the Loop block and configure it to play a sound.
📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
9
Match each flow block with its default mode.
Match each flow block with its default mode.
| Draggable item | arrow_right_alt | Corresponding Item |
|---|---|---|
Wait Block | arrow_right_alt | Time |
Loop | arrow_right_alt | Unlimited |
Switch | arrow_right_alt | Touch Sensor |
10
"Basically, without other blocks, _______ _______ cannot be used."
10
Categorize each item based on the Flow Block(s) it describes.
Categorize each item based on the Flow Block(s) it describes.
- Causes a program to "run until" a specific condition is met.
- Causes a program to change course when an "IF" condition is met.
- Flow blocks and action blocks can be placed within this type of block.
- Start Block
- Wait Block
- Switch Block
- Loop Block
- Loop Interrupt Block
5
Flow blocks increase program functionality and have __________ parameters that most other blocks.

10
🧠 Retrieval Practice:Summarize the content of this lesson. What topics, ideas, and vocabulary were introduced?
🧠 Retrieval Practice:
Summarize the content of this lesson. What topics, ideas, and vocabulary were introduced?


