Spike Prime - Avalanche Cannon - Teacher Resources
From RoboWiki
Complexity of the task: Medium to High. Students will need to integrate web development, hardware control, and data visualization. They will use the Flask framework for web applications, process data from an Arduino, and control motors with Python.
Lesson Plan
1. Prepare
- Review the student material and ensure all necessary resources (motors, camera, Arduino with gyroscope sensor, and Flask library) are ready.
2. Engage (10 Min.)
- Introduce the lesson by demonstrating a prototype of the Avalanche Cannon. Explain the project goal: to develop a web-controlled cannon that can aim and fire, with real-time video feedback and sensor data integration.
- Discuss how avalanche cannons work in real life.
- Spark curiosity with questions like "What challenges might arise in controlling a cannon remotely?" and "How can web technologies and sensors be used to enhance control and accuracy?"
3. Explore (30 Min.)
- Guide students through setting up their development environment, including installing Flask, configuring the camera, and setting up the Arduino.
- Demonstrate basic library functionalities, such as drawing on canvas, changing label text, and receiving signals from buttons clicking on images and writing in text fields.
- Show how to capture video feed from the camera and display it on a web page using the library.
- Provide sample code snippets and tasks for students to experiment with receiving and displaying sensor data from the Arduino.
4. Explain (10 Min.)
- Explain how Flask handles web requests and how it can be used to create interactive web applications.
- Discuss the integration of hardware with Flask, including how to send data from the Arduino to the Python server.
- Explain the use of the web sockets for real-time both ways communication.
5. Elaborate (30 Min.)
- Encourage students to enhance their projects by brainstorming and implementing additional features for the Avalanche Cannon.
- Challenge them to consider improvements such as adding safety mechanisms, enhancing the user interface, or integrating advanced control algorithms.
- Provide support and resources to help students explore new concepts and extend their understanding.
6. Evaluate
- Assess students' understanding and practical skills by observing their progress in developing the Avalanche Cannon.
- Offer constructive feedback, highlighting strengths and areas for improvement in their implementations.
- Promote self-reflection and peer feedback to encourage ongoing learning and improvement.
Ignite a Discussion
Start by watching the video
- toto
- treba
- doplnit
Task for students
Assign students the task of developing the Avalanche Cannon. They will need to grasp basic web development concepts, hardware integration, and sensor data processing.