Are you a teacher?
Lesson Plan
Courses
- Grades 3-12
- 3rd Grade – 12th Grade Courses
Materials
- Cellphone, tablet, or computer
- Internet connection
Description
In this activity, students can have an introductory experience with Protobject, learning about visual programming and computer science in a safe and playful way using a device.
Educational Objectives
- Understand the concepts of “conditional” and “sequence.”
- Create a technological object (prototype) using a device.
- Identify relationships between technology and the world around them.
- Evaluate personal and peer work in individual or team projects.
- Engage in dialogue and reflection on improvement ideas.
Introduction (10 minutes)
Welcome the students to the class and briefly introduce the day’s activity: “Today we will learn how to turn on a lamp using a switch with Protobject.”
We will start the class by providing technical knowledge to students for meaningful learning of the practical activity.
To open the class, we can begin with a question:
Has anyone heard of programming “conditionals” before?
With this knowledge, we will add more than one condition to the program and see what happens if one condition is met, but another is not. We will also see what happens if none are met. We can instruct the program on what to do if none of the conditions are met!
Explain that we can have many nested conditions (one after another) that will be checked in the order we program them.
Explain the following example:
“You’re going to the supermarket to buy rice, and there are brands A, B, and C in that order of preference. If there’s no type A rice, you buy type B, and if there’s none of that, you buy type C. If there’s none of them, you don’t buy rice.”
The above example corresponds to an everyday scenario where we make decisions based on the fulfillment or non-fulfillment of certain actions or statements.
Finally, to initiate the prototyping process and make them feel like protagonists of their learning, ask them:
Do you want to learn how to turn on a lamp with your cellphone?
Development (20-30 minutes)
Connect our device to the Protobject platform; this will allow us to control the LED lights on the cellphone screen with programming commands and turn them on under certain conditions.
To connect your mobile device to the Protobject platform, generate a QR code by clicking on ADD DEVICE and then LAMP.
Finally, scan the QR code with your cellphone.
Explain that if you don’t have a mobile device or tablet to connect, you can click on DO NOT HAVE A MOBILE DEVICE?
Remember to experiment with it yourself before asking the students to experiment with Protobject. This way, you can anticipate any questions that may arise from the students. You can also review the commented code if you have any doubts.
Great! Let’s turn on our LED lamp!
Explain that each block indicates an action.
With the if/do/else block, we provide a condition to the lamp, and if it’s not met, another action is executed.
To test the prototype, instruct the students to click on the activation button. The LED lamp should turn on and off with the switch!
Congratulations, you’ve tested your first prototype!
Conclusion (5-10 minutes)
Now that you’ve turned on a lamp with Protobject, challenge your students with a question:
What would happen if we didn’t add the last line in the programming block?
What would happen if we didn’t enable SimpleButton?
The challenge involves playing music along with the light. For this, we can add a PlaySound component… With a button, we can activate both!
Check out the solution to this challenge.