Instruction Guide: EV3 - SwitchLoops
In this lesson students will continue to explore the technique of embedding a Switch block inside of a controlled loop in order to accomplish continuous obstacle detection. They will also tackle the EV3 Trainer's culminating challenge: Search and Rescue
In this Lesson we have 2 Primary Instruction Resources:
- The EV3 Trainer lesson on SwitchLoops
- The EV3 Trainer Final Challenge: Search and Rescue
Resource 1:
The EV3 Trainer has a lesson describing SwitchLoops
Behaviors > Decisions > 9. Switch-Loops
The EV3 Trainer Teacher's Guide references this on pages 77-82.
Students should be able to answer all the review questions at the end of each step and end up with a solid command of the SwitchLoop concept and how this technique enables near simultaneous checking of two sensors, allowing for behaviors such as Obstacle Detection over a known distance.
The EV3 Trainer Teacher’s Guide has additional reproducibles for those who have purchased the product. The reproducibles for Switch-Loops can be found on pages 109-112.
As students progress through, have them document their milestones in the SwitchLoops Task Assignment Sheet.
The challenge for this lesson is the Obstacle Orchard Challenge. During sign off, check that student grasp this key concept:
-
The SwitchLoop allows near simultaneous checking of two sensors by:
- Allowing only "fast" blocks inside the switch (no Move_Rotations, or time delays)
- Controlling the Loop with a second sensor
Resource 2:
The EV3 Trainer Final Challenge: Search and Rescue
Final Challenge > Search and Rescue Challenge
Have students sign off this culminating challenge in the SwitchLoops Task Assignment Sheet.