Focus Area: Byte Into Science
5th Grade
Day 6- Robot Research
1. Vocabulary:
- Robot Control: Control is a program to control the robot. Robots must be told what to do. To control a robot, it needs to be programmed to receive input, and execute the desired output.
- Input: Input is the information that comes from the robot’s sensors. Robots have sensors that they use to get information from the robot’s environment. For example, a smoke detector can detect smoke. Robots typically have external and internal sensors.
- Output: The output is the action a robot takes after receiving input, often involving motors, lights, or sounds. For example, a smoke detector makes a loud sound and might flashlights. (In other words, effecting change in the robot’s environment - adapting.)
- Programmable: To be a robot, a machine must be programmable. Programmable means that a something can function from a program. For example, a smoke detector has a program to make a sound if it senses smoke.
- Robot Behavior: Is the combination of outputs that result in the task or job the robot does. For example, the behavior of the smoke detector is to “go off” in the presence of smoke. “Going off” is a combination of making noise and flashing lights, and may also involve calling the fire department.
- Conditionals: A statement that is either true or false depending on the situation.
- Loop: Part of a program that executes multiple times as long as its condition is true.
2. Lesson:
Go to the room cleaning robot game. Drag-and-drop the robot arms to pick up the various items (1 student for each arm)
How this is similar to the remote-control car? We tell the machine what to do. So it is not a robot yet because it cannot think (make decisions) on its own
We must write the robot’s “brain” using code, and then it will be able to make its own decisions and operate independently.
Conditions are based on Decision Tree Chart.
How this is similar to the remote-control car? We tell the machine what to do. So it is not a robot yet because it cannot think (make decisions) on its own
We must write the robot’s “brain” using code, and then it will be able to make its own decisions and operate independently.
Conditions are based on Decision Tree Chart.
Example: “What if the computer is holding a book?”. In that case, the robot will ask itself, “Am I holding a piece of clothing?”. No. Then it will ask itself, “Am I holding a piece of jewelry?.” No. Then it will ask itself, “Am I holding a shoe?”. No. Finally, it will ask itself, “Am I holding a book?” Yes. DONE. Then give the example of “What if the computer is holding a piece of clothing?” In that case, the robot will ask itself, “Am I holding a piece of clothing?”. Yes. DONE.
How the robot would make the decision where to store the shoes? How it would work?
We successfully programmed the robot. It can now independently clean the room with no further input from us. However, now you can see it won’t stop because we never told it how or when to stop.
3. Activity:
Writing prompt:
|
|
4. Wrap-Up:
- What did you learn in today's lesson?
5. Extension:
- Song writing activity. https://studio.code.org/s/20-hour/stage/12/puzzle/1
- How Robots Work http://science.howstuffworks.com/robot.htm