Are you a teacher?
Lesson Plan
Courses
- Grades 3-12
- Courses 3rd grade – 12th grade
Materials
- Cell phone, tablet, or computer
- Internet connection
Description
In this activity, students can experiment with Protobject, learning visual programming and computer science safely and playfully with a device.
Educational Objectives
- Understand the concept of a variable.
- Create a technological object (prototype) using a device.
- Identify relationships between technology and the environment.
- Evaluate one’s own work and that of others, both individually and in teams.
- Engage in discussions and reflections to propose improvements.
Beginning (10 minutes)
Welcome the students to the class and briefly introduce the day’s activity:
Today we will learn to create a stopwatch that counts seconds.
We will start the class by providing students with technical knowledge for meaningful learning of the practical activity.
To kick off the class, we can begin with a question:
Do you know how a stopwatch works?
The stopwatch’s job is to count the seconds that are passing. Each time a second goes by, the stopwatch says, “Oh, one second has passed, I will add 1 to the number of seconds I’ve already seen.”
So far, the computer hasn’t needed to store additional information to function. But now we need the computer to **remember** the count. To do this, we’ll use **variables**, which are like little boxes where data is stored. These data can be overwritten and edited, but you can’t store more than one piece of data in a variable. They can store any type of data, both numbers and text, but for this activity, we will only use numbers.
Development (20-30 minutes)
Connect your device to the Protobject platform. This will allow us to use the display we want to create with programming commands that will show the stopwatch.
To perform the practical part of the activity, follow the steps in the “Prototype” section. Remember to experiment on your own before asking students to experiment with Protobject. This way, you can anticipate questions that may arise from the students.
Closure (5-10 minutes)
Now that you’ve created a stopwatch, ask yourself:
What other values could we store in a variable?
What other prototypes can you think of with this new information?
How can we store the minutes of the stopwatch?
We are ready to continue programming!
To solve the challenge, it’s necessary to create another variable to store the minutes. The process is analogous, except that you’ll need to add another loop inside the main loop. This loop repeats the process of increasing the seconds 60 times, and once the repetition is complete, 1 is added to the minutes variable, and the seconds are reset.
See the solution to this challenge.