📸 Document It: Take a screenshot of your program and upload or paste it onto the Formative canvas.
Question 4
4.
🖥️ 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.
Question 6
6.
The __________ of a flow block sets a condition that must be met before the program continues.
Question 7
7.
What is a loop exit condition?
Question 8
8.
🖥️ 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.
⚠️ IMPORTANT: Setting a steering block inside of a loop block mode to "ON" instead of running for a specific time or number of rotations allows the loop exit condition's sensor to sense continuously. Without this configuration, the sensor can easily miss the exit condition by not sensing for it at just the right time.
Question 9
9.
🖥️ 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.
Question 10
10.
Question 11
11.
🖥️ Program It: Move your Switch block from before into a Loop block and configure the program as follows:
Loop: Exitcondition: 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.
Match each flow block with its default mode.
Switch
Time
Wait Block
Unlimited
Loop
Touch Sensor
Categorize each item based on the Flow Block(s) it describes.
Causes a program to "run until" a specific condition is met.
Flow blocks and action blocks can be placed within this type of block.
Causes a program to change course when an "IF" condition is met.
Start Block
Wait Block
Switch Block
Loop Block
Loop Interrupt Block
Flow blocks are basically useless without other blocks.
True
False
How do you think we can make this Switch block code run multiple times or continuously?
Add a sound block to the right of the switch block
Add a display block to the right of the switch block