Students learn how to program using loops and switches. They see how …
Students learn how to program using loops and switches. They see how loops enable us to easily and efficiently tell a computer to keep repeating an operation. They also see that switches permit programs to follow different instructions based on whether or not preconditions are fulfilled. Using the LEGO MINDSTORMS(TM) NXT robots, sensors and software, student pairs perform three mini programming activities using loops and switches individually, and then combined. With practice, they incorporate these tools into their programming skill sets in preparation for the associated activity. A PowerPoint® presentation, pre/post quizzes and worksheet are provided.
Building on the programming basics learned so far in the unit, students …
Building on the programming basics learned so far in the unit, students next learn how to program using sensors rather than by specifying exact durations. They start with an examination of algorithms and move to an understanding of conditional commands (until, then), which require the use of wait blocks. Working with the LEGO MINDSTORMS(TM) NXT robots and software, they learn about wait blocks and how to use them in conjunction with move blocks set with unlimited duration. To help with comprehension and prepare them for the associated activity programming challenges, volunteer students act out a maze demo and student groups conclude by programming LEGO robots to navigate a simple maze using wait block programming. A PowerPoint® presentation, a worksheet and pre/post quizzes are provided.
In this lesson, students will reinforce the importance of giving clear instructions …
In this lesson, students will reinforce the importance of giving clear instructions to a partner for a desired outcome or result, similar to what is needed in a real world work environment, when instructions or notes need to be communicated in person to or left in written form for a co-worker who may be on a different shift and need to complete a project. In the real world, if instructions are not clear, machines or entire assembly lines may be down for a period of time which causes the company to lose money. This lesson will be used in conjunction with Code.org's Course D (2019) curriculum (https://studio.code.org/s/coursed-2019) after the initial lesson called Graph Paper Programming - https://curriculum.code.org/csf-19/coursed/1/. In this lesson, students will use what they just learned about programming, sequencing, and algorithms (set of instructions) and take it a step further by communicating instructions for navigating through a series of steps to a partner who either has their eyes closed (or is wearing a blindfold) from a starting to finishing point, while picking up small blocks (or something similar) along the way.
Working as a team, students discover that the value of pi (3.1415926...) …
Working as a team, students discover that the value of pi (3.1415926...) is a constant and applies to all different sized circles. The team builds a basic robot and programs it to travel in a circular motion. A marker attached to the robot chassis draws a circle on the ground as the robot travels the programmed circular path. Students measure the circle's circumference and diameter and calculate pi by dividing the circumference by the diameter. They discover the pi and circumference relationship; the circumference of a circle divided by the diameter is the value of pi.
Using new knowledge acquired in the associated lesson, students program LEGO MINDSTORMS(TM) …
Using new knowledge acquired in the associated lesson, students program LEGO MINDSTORMS(TM) NXT robots to go through a maze using movement blocks. The maze is created on the classroom floor with cardboard boxes as its walls. Student pairs follow the steps of the engineering design process to brainstorm, design and test programs to success. Through this activity, students understand how to create and test a basic program. A PowerPoint® presentation, pre/post quizzes and worksheet are provided.
Students apply concepts of disease transmission to analyze infection data, either provided …
Students apply concepts of disease transmission to analyze infection data, either provided or created using Bluetooth-enabled Android devices. This data collection may include several cases, such as small static groups (representing historically rural areas), several roaming students (representing world-travelers), or one large, tightly knit group (representing urban populations). To explore the algorithms to a deeper degree, students may also design their own diseases using the App Inventor framework.
Students analyze a cartoon of a Rube Goldberg machine and a Python …
Students analyze a cartoon of a Rube Goldberg machine and a Python programming language script to practice engineering analysis. In both cases, they study the examples to determine how the different systems operate and the function of each component. This exercise in juxtaposition enables students to see the parallels between a more traditional mechanical engineering design and computer programming. Students also gain practice in analyzing two very different systems to fully understand how they work, similar to how engineers analyze systems and determine how they function and how changes to the system might affect the system.
Working in small groups, students complete and run functioning Python codes. They …
Working in small groups, students complete and run functioning Python codes. They begin by determining the missing commands in a sample piece of Python code that doubles all the elements of a given input and sums the resulting values. Then students modify more advanced Python code, which numerically computes the slope of a tangent line by finding the slopes of progressively closer secant lines; to this code they add explanatory comments to describe the function of each line of code. This requires students to understand the logic employed in the Python code. Finally, students make modifications to the code in order to find the slopes of tangents to a variety of functions.
Students modify a provided App Inventor code to design their own diseases. …
Students modify a provided App Inventor code to design their own diseases. This serves as the evolution step in the software/systems design process. The activity is essentially a mini design cycle in which students are challenged to design a solution to the modification, implement and test it using different population patterns The result of this process is an evolution of the original app.
This lesson will be used in conjunction with Code.org's Course 1 Curriculum …
This lesson will be used in conjunction with Code.org's Course 1 Curriculum - https://studio.code.org/s/course1. For the class period after completing Lesson 5 - Maze: Debugging, students will use Wonder Workshop's Dash robots in groups to create and debug their Dash robot from one place to another in a preassigned part of the classroom using the Blockly app on their iPads.
Students are given a difficult challenge that requires they integrate what they …
Students are given a difficult challenge that requires they integrate what they have learned so far in the unit about wait blocks, loops and switches. They incorporate these tools into their programming of the LEGO MINDSTORMS(TM) NXT robots to perform different tasks depending on input from a sound sensor and two touch sensors. This activity helps students understand how similar logic is implemented for other every day device operations via computer programs. A PowerPoint® presentation, pre/post quizzes and worksheet are provided.
After completing the associated lesson, students test their understanding in two programming …
After completing the associated lesson, students test their understanding in two programming tasks that utilize LEGO MINDSTORMS(TM) NXT robots and sound/touch sensors. In the first challenge, students become acquainted with wait blocks by designing programs to simply make robots move forward until "hearing" a noise, and then turn left. The second, more challenging activity pushes students to fully understand the potential of wait blocks. They create programs that make the robots change speed several times when a touch sensor is pressed. Students gain practice in the iterative design-program-test-redesign process. A PowerPoint® presentation, pre/post quizzes and worksheet are provided.
Through four lesson and four activities, students are introduced to the logic …
Through four lesson and four activities, students are introduced to the logic behind programming. Starting with very basic commands, they develop programming skills while they create and test programs using LEGO MINDSTORMS(TM) NXT robots. Students apply new programming tools move blocks, wait blocks, loops and switches in order to better navigate robots through mazes. Through programming challenges, they become familiar with the steps of the engineering design process. The unit is designed to be motivational for student learning, so they view programming as a fun activity. This unit is the third in a series. PowerPoint® presentations, quizzes and worksheets are provided throughout the unit.
Students are introduced to the basic concepts of computer programs, algorithms and …
Students are introduced to the basic concepts of computer programs, algorithms and programming. Using a few blindfolds and a simple taped floor maze exercise, students come to understand that computers rely completely upon instructions given in programs and thus programs must be comprehensive and thorough. Then students learn to program using the LEGO MINDSTORMS(TM) NXT software. They create and test basic programs, first using just the LEGO NXT intelligent brick, and then using basic movement commands with the LEGO NXT software on computers. A detailed PowerPoint® presentation, plus a worksheet and pre/post quizzes are provided.
No restrictions on your remixing, redistributing, or making derivative works. Give credit to the author, as required.
Your remixing, redistributing, or making derivatives works comes with some restrictions, including how it is shared.
Your redistributing comes with some restrictions. Do not remix or make derivative works.
Most restrictive license type. Prohibits most uses, sharing, and any changes.
Copyrighted materials, available under Fair Use and the TEACH Act for US-based educators, or other custom arrangements. Go to the resource provider to see their individual restrictions.