Difference between revisions of "Spike Prime - Line Following Car - Teacher Resources"

From RoboWiki
Jump to: navigation, search
 
Line 1: Line 1:
Complexity of the task: Simple, if students know how to work with motor functions, they will easily solve the task, I think the class will be able to find the solution during the discussion, but there may be a different implementation.
+
Complexity of the task: Medium, students already solved line following car using various sensor and algorithms but now they need to learn to use camera and openCV library.
 
== Lesson Plan ==
 
== Lesson Plan ==
  
Line 5: Line 5:
 
*Read through the student material.
 
*Read through the student material.
 
2. Engage (10 Min.)
 
2. Engage (10 Min.)
*Use the ideas in the Ignite a Discussion section below to engage your students in a discussion related to this lesson.
+
*Begin the lesson by presenting the students with a line-following car prototype and explaining that they will embark on a journey to develop and control it using the OpenCV library.
*Use the video to explain the lesson.
+
*Introduce the significance of line-following technology and discuss its applications in real-world scenarios, fostering curiosity.
 +
*Initiate a discussion by posing questions such as "What do you think are the challenges in making a car follow a line autonomously?" or "How can computer vision help in achieving this goal?"
 
3. Explore (30 Min.)
 
3. Explore (30 Min.)
*Have your students work in pairs to build the build the robot.
+
*Equip students with the necessary resources and guide them through the setup process, including installing OpenCV and configuring the development environment.
*Ask them to run the program to see how the robot works.
+
*Demonstrate basic functionalities of OpenCV, such as loading images and applying simple transformations, to familiarize students with its capabilities.
 +
*Encourage hands-on exploration by providing sample code snippets and tasks for students to experiment with line detection algorithms using OpenCV.
 
4. Explain (10 Min.)
 
4. Explain (10 Min.)
*Organize a discussion about robot.
+
*Explain the role of OpenCV in analyzing visual data and detecting lines within images or video streams.
 +
*Provide explanations on key algorithms used in line detection, such as Hough Transform(technique that locates shapes in images), and demonstrate how they are implemented in OpenCV.
 
5. Elaborate (30 Min.)
 
5. Elaborate (30 Min.)
*Ask students to work on the solutions they like best.
+
*Inspire students to dive deeper into the project by brainstorming and implementing enhancements to the line-following car.
*Don't forget to leave time for cleaning
+
*Challenge students to think creatively about additional functionalities, such as integrating obstacle detection, optimizing speed control, or implementing advanced path planning algorithms.
 +
*Offer guidance and resources to support students in their elaboration projects, encouraging them to explore new concepts and push the boundaries of their understanding.
 
6. Evaluate
 
6. Evaluate
*Give feedback on each student's performance.
+
*Assess students' comprehension and practical skills by observing their ability to develop and fine-tune the line-following car using OpenCV.
 +
*Provide constructive feedback to students, highlighting areas of strength and areas for improvement in their implementation and problem-solving approaches.
 +
*Encourage self-reflection and peer feedback to foster continuous learning and improvement throughout the project.
  
 
== Ignite a Discussion ==
 
== Ignite a Discussion ==
 
Start by watching the video
 
Start by watching the video
 
+
*In what real-world scenarios can line-following robots be effectively utilized?
Discuss the game, what to do, how to play.
+
*What are some potential enhancements you could add to a basic line-following robot to increase its functionality?
Who knows similar reaction games.
+
*Can you think of any innovative ways to combine a line-following robot with other robotic technologies?
What reaction games did they play and what did they like.
 
  
 
== Task for students ==
 
== Task for students ==
Ask students to do an assignment. To solve the task, you will need to use the "set_stall_detection(), was_stalled()" function, show the documentation for this function, for those who do not know, tell us how it works.
+
Ask students to do the assignment, for the solution they will need to understand how simple image processing works and when is the right time to start to turn motors.
If there are those who coped too early, complicate the task. For example, so that the motor fixes also on whose half it is located and the one on whose half it was will lose.
 
  
 
== Materials for students ==
 
== Materials for students ==
 
* [[Spike Prime - Line Following Car - Jakub Vojtek|Line Following Car - Jakub Vojtek]]
 
* [[Spike Prime - Line Following Car - Jakub Vojtek|Line Following Car - Jakub Vojtek]]

Latest revision as of 15:35, 22 May 2024

Complexity of the task: Medium, students already solved line following car using various sensor and algorithms but now they need to learn to use camera and openCV library.

Lesson Plan

1. Prepare

  • Read through the student material.

2. Engage (10 Min.)

  • Begin the lesson by presenting the students with a line-following car prototype and explaining that they will embark on a journey to develop and control it using the OpenCV library.
  • Introduce the significance of line-following technology and discuss its applications in real-world scenarios, fostering curiosity.
  • Initiate a discussion by posing questions such as "What do you think are the challenges in making a car follow a line autonomously?" or "How can computer vision help in achieving this goal?"

3. Explore (30 Min.)

  • Equip students with the necessary resources and guide them through the setup process, including installing OpenCV and configuring the development environment.
  • Demonstrate basic functionalities of OpenCV, such as loading images and applying simple transformations, to familiarize students with its capabilities.
  • Encourage hands-on exploration by providing sample code snippets and tasks for students to experiment with line detection algorithms using OpenCV.

4. Explain (10 Min.)

  • Explain the role of OpenCV in analyzing visual data and detecting lines within images or video streams.
  • Provide explanations on key algorithms used in line detection, such as Hough Transform(technique that locates shapes in images), and demonstrate how they are implemented in OpenCV.

5. Elaborate (30 Min.)

  • Inspire students to dive deeper into the project by brainstorming and implementing enhancements to the line-following car.
  • Challenge students to think creatively about additional functionalities, such as integrating obstacle detection, optimizing speed control, or implementing advanced path planning algorithms.
  • Offer guidance and resources to support students in their elaboration projects, encouraging them to explore new concepts and push the boundaries of their understanding.

6. Evaluate

  • Assess students' comprehension and practical skills by observing their ability to develop and fine-tune the line-following car using OpenCV.
  • Provide constructive feedback to students, highlighting areas of strength and areas for improvement in their implementation and problem-solving approaches.
  • Encourage self-reflection and peer feedback to foster continuous learning and improvement throughout the project.

Ignite a Discussion

Start by watching the video

  • In what real-world scenarios can line-following robots be effectively utilized?
  • What are some potential enhancements you could add to a basic line-following robot to increase its functionality?
  • Can you think of any innovative ways to combine a line-following robot with other robotic technologies?

Task for students

Ask students to do the assignment, for the solution they will need to understand how simple image processing works and when is the right time to start to turn motors.

Materials for students