Published on STEMRobotics (https://stemrobotics.cs.pdx.edu)

Home > EV3 - "Logic"

EV3 - "Logic"

Submitted by Randy Steele on 29 May, 2014 - 08:25

In this lesson students explore the use of Boolean Loigc to control Loops.

In this Lesson we have 1 Primary Instructional resources:

  • EV3 Trainer section on Logic is the Primary Instruction Material.

Bonus > Logic

The EV3 Trainer Teacher's Guide references this on page 138.

Resource 1:

Students should be able to answer the review questions at the end of step 1, and end up with a solid command of the purpose and functionality Loop Blocks controlled by Boolean Logic.  Although this lesson emphasizies Logic for loop control, Logic may be used in many EV3-G Blocks.

As students progress through, have them document their milestones in the Logic Loops Task Assignment Sheet [1].

Mini Challenge 1: Forward until Touch OR Rotations OR Near

Mini Challenge 2: Line Track until Touch or Near

Key learning to check for during sign-off includes:

  • Ensure students understand the nature of logic-controlled Loop Blocks:
    • Have students explain how Wait-For Block can be replaced by a sensor-controlled Loop Block
    • Then have them explain how this senor-controlled Loop Block and be replaced by using the logic output of a Sensor Block and the logic-contol of the Loop Block
    • Finally, have them explain how extending this idea with a Logic Block allows the Loop Block to be controlled by multiple sensors
  • Ensure students understand the nature of the Logic Block:
    • Have students explain the four Boolean Logic options for the Logic Block
      • Use the Venn Diagram to help with this explanations
      • The A & B inputs can be set as block paramters, or overwritten by data wires
      • These are complex programs, so have students develop a flowchart
      • Have students use My Blocks for  Sub-Processes (and others if desired)
      • Ensure the comments in the program are consistent with the flowChart



National Science Foundation

Source URL: https://stemrobotics.cs.pdx.edu/node/3135?root=4375

Links
[1] https://stemrobotics.cs.pdx.edu/node/3137