title: Collision Avoidance Decision Flow
description: Type: diagram sim-id: collision-decision-flow
Library: Mermaid
Status: Specified Create a Mermaid flowchart (graph TD) showing: - Start node: "Read distance sensor" - Diamond: "distance_cm < 20?" — Yes branch leads...
image: /sims/collision-decision-flow/collision-decision-flow.png
og:image: /sims/collision-decision-flow/collision-decision-flow.png
twitter:image: /sims/collision-decision-flow/collision-decision-flow.png
social:
cards: false
status: implemented
library: Mermaid
bloom_level: TBD
Collision Avoidance Decision Flow
Run the Collision Avoidance Decision Flow MicroSim Fullscreen
About this MicroSim
Type: diagram sim-id: collision-decision-flow
Library: Mermaid
Status: Specified Create a Mermaid flowchart (graph TD) showing: - Start node: "Read distance sensor" - Diamond: "distance_cm < 20?" — Yes branch leads...
Bloom's Taxonomy level: TBD
You can embed this MicroSim in your own course page with the following iframe:
1 | |
Lesson Plan
Learning objective: Type: diagram sim-id: collision-decision-flow
Library: Mermaid
Status: Specified Create a Mermaid flowchart (graph TD) showing: - Start node: "Read distance sensor" - Diamond: "distance_cm < 20?" — Yes branch leads...
Suggested use (5-15 minutes):
- Predict first. Before touching the controls, ask students to predict what they expect to see.
- Explore. Have students interact with every control and observe how the display responds.
- Explain. Ask students to describe, in their own words, the relationship the MicroSim demonstrates.
Discussion questions:
- What changed on screen when you interacted with the MicroSim, and why?
- How does this idea show up when you program the real robot?
References
- Chapter 4: Control Flow, Functions, and Exception Handling
- Obstacle avoidance (Wikipedia)
- MicroPython documentation
Specification
The full specification below is extracted from Chapter 4: Control Flow, Functions, and Exception Handling.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |