Codepiko · Grade 6 · BTY.6.6.3 (c, ç) · 40 min
Code the program with a model and make it work
Create an AI-powered product in a block-based environment
In the guide: Building and Presenting an AI-Powered Product (lesson 3), p. 222
Goal
Students train their own model on the stage, build their AI-powered product with “When the model says” blocks and get it working so that it meets the agreed criteria.
Before the lesson
- Keep the “Smart junction” and “Command assistant” guided projects ready on the stage.
- Hand the requirements cards from last lesson back to the groups.
- Write the criteria on the board: Does the model recognise every label? Does the character react correctly to each label? What happens when the model is wrong?
Lesson flow
Attention5 min
Input, model, reaction
Ask one of the attention questions from the guide. Draw the input → model → reaction chain on the board and place one group’s product on it.
Lesson process15 min
Guided project
Students do the “Smart junction” or “Command assistant” project. On the Model tab they give each label three examples, add the “When the model says” blocks and try them with Predict in the box below the stage. The Check button tests the items by itself.
- Stage codepiko.com/en/stage
Lesson process12 min
Our own product
Groups that finish build the product from their requirements card in a new project: they choose the kind of model on the Model tab, add the labels and examples and write a “When the model says” script for each label.
- Stage codepiko.com/en/stage
Assessment8 min
If the model is wrong
Each group finds an example the model gets wrong and writes on the review card what the program did at that moment. Two groups run their product on the board; the class gives one suggestion against the criteria on the board.
Exit questions
- What does your character do when the model says a label?
- What did your program do when the model was wrong?
- What did you add so the model recognises things better?
Without computers
One student is the “model” and says a label for the cards classmates have drawn. The class links a move to each label, e.g. everyone pulls over when the model says “ambulance”. Talk about what happens when the model is wrong.
For next lesson
For the presentation lessons in the guide, groups prepare a short presentation on what their product does and where the model was wrong. The project and model stay saved in the same browser.
Codepiko · lesson plan · codepiko.com/en/teacher/plans/akilli-urun-yap