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 visual programming and computer science with a device in a safe and playful manner.
Educational Objectives
- Understand the concept of sequence of steps.
- Create a technological object (prototype) using a device.
- Identify relationships between technology and the surrounding world.
- Evaluate personal and others’ work in individual or team projects.
- Discuss and reflect on ideas for improvement.
Start (10 minutes)
Welcome the students to the class and briefly introduce the day’s activity: “Today, we will learn how to prototype music with lights.”
We will start the class by providing technical knowledge to the students for meaningful learning of the practical activity.
To kick off the class, we can begin with a question:
Do you remember what we learned about playing musical notes and lighting up colored lights?
You can let the students propose their answers and then complement with the correct response.
Now, we will learn how to synchronize those notes with colored lights to create an exciting multisensory experience.
Synchronize means performing two or more actions at the same time or simultaneously.
For this, we will use the concept of a variable, do you know what that is?
You can let the students propose their answers and then complement with the correct response.
A variable is like a box that holds a value that can be reused in different parts of the project.
For example, we could define a variable called “time” (All variables must have a name!) with a delay value.
Then, this variable can be used to set the delays for all the notes at once.
This way, by changing the “time” variable once, it will automatically reset the delays for all the notes.
Next, we will see practically how a variable can be used to easily change the speed of a melody along with colored lights.
Finally, to initiate the prototyping process and make them feel like active participants in their learning, ask them:
Do you want to learn how to prototype music with lights?
Development (20-30 minutes)
Connect our equipment to the Protobject platform. For this exercise, we will use PLAYKEYBOARD and also LAMP.
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.
First, let’s set the variable “time”; in this case, we’ll call it “TIME” and set it to 800.
Then, I’ll instruct the keyboard to play a note and the lamp to light up with a particular color for this specific note. For example, we’ll start with the note DO4 and the color orange.
Finally, we’ll bring in the “time” variable, which will introduce a delay in milliseconds based on what we determined earlier. For example, this will be 800 because that’s the value we assigned to the variable.
Now, repeat these steps for the entire song: do4, do4, sol4, sol4, la4, la4, sol4, fa4, fa4, mi4, mi4, re4, re4, do4.
This way, if you want to change this timing in the future, you only need to change the initial variable, and it will automatically update all instances of it.
To test the prototype, instruct the students to click on the activation button.
Congratulations!
Conclusion (5-10 minutes)
Now that you have prototyped music with synchronized lights using Protobject, challenge your students with a question:
What if we wanted to create other synchronized lights?
Try adding more lights and experimenting with different colors!
To solve the challenge posed, we would need to create another Lamp component on another smartphone and add its light blocks in the same positions as the others. This way, they will light up simultaneously.