Are you a teacher?
Lesson Plan
Courses
- Grades 3-12
- 3rd Grade – 12th Grade Courses
Materials
- Cell phone, tablet, or computer
- Internet connection
Description
In this activity, students can experiment in an introductory manner with Protobject, learning visual programming and computer science with a device in a safe and playful way.
Educational Objectives
- Understand the concepts of “event” and “numeric data.”
- Create a technological object (prototype) using a device.
- Identify relationships between technology and the world around them.
- Evaluate personal and others’ work in individual or team tasks.
- Discuss and reflect on ideas for improvement.
Beginning (10 minutes)
Welcome the students to the class and briefly introduce the day’s activity: “Today, we will learn to prototype a people counter.”
We will start the class by providing technical knowledge to the students for meaningful learning of the practical activity.
To start the class, we can begin with a question:
What is a counting device?
You can give the students the opportunity to propose their answers and then complement with the correct response.
A counter is a tool used to count the quantity of elements that enter a system.
It can be used to count the quantity of purchased products, the number of activities performed, the number of laps run, or, for example, the number of people entering a place.
Every time someone enters, you press the corresponding button, and the counter increases by one.
The counter is a screen that shows the current number of people in the place. It’s like keeping track of visitors.
What could a people counter be used for?
You can give the students the opportunity to propose their answers and then complement with the correct response.
A people counter can be useful in various situations.
For example, in stores to record user interest at specific points, at events to control venue capacity, or in public transportation to plan service and improve efficiency.
In summary, a people counter is a tool for keeping track of people in a place and improving efficiency, safety, and the user experience.
For this activity, we will use two concepts: events and variables.
A variable is like a box where you can store a value, such as the number of people in a place at a given moment.
If we want to know how many people have entered, we can store the current number of people in a variable and update it each time someone enters.
This way, we will always have the correct number of people at all times.
An event is like a signal that occurs when something happens, for example, when you press a button, an event is generated.
When you perform an action, the computer recognizes this action as an event and responds in a specific way to what you have just done.
In this case, the event is pressing the button, and the action will be to add 1 to the counter.
Finally, to start the prototyping process and make them feel like the protagonists of their learning, ask them:
Do you want to learn how to prototype a people counter?
Development (20-30 minutes)
We connect our device to the Protobject platform. For this exercise, we will use the motion sensor DIBUJARESCRIBIR and BOTONTACTIL.
Remember to experiment on your own before asking the students to experiment with Protobject. This way, you can anticipate any questions that may arise from the students.
We will start by assigning the value 0 to the counter and call the variable COUNT. You can use a different name if you prefer.
Next, we will instruct the screen to display the value of that variable so that even as the number changes, you will always be able to see it on the screen.
Then, we will tell them that when the button is pressed, the value of the variable will change, increasing by 1. For example, if it was 0, it will become 1, and if it was 125, it will become 126.
To test the prototype, we will instruct the students to click on the activation button.
Congratulations!
Closure (5-10 minutes)
Now that you have prototyped a motion sensor with Protobject, challenge the students with a question:
- What would happen if we used a loop instead of a variable?
Then, you can leave them with a challenge as homework or, if you have time in the same class.
- So, how do we activate an exit button in addition to an entrance button?