6-8 CTE: Using CodeSnaps to Program Spheros

6-8 CTE: Using CodeSnaps to Program Spheros

Instructor Directions

Engineering Design Process

Using CodeSnaps to Program Spheros

Driving Question / ScenarioHow can you use a Sphero robot to demonstrate your creation and implementation of algorithms? What process will you follow to debug your program?
Project SummaryIn this project, students will learn about the planning process to creating an algorithm using paper coding blocks as manipulatives and visual aids. They will Be given a set of requirements that their robot must follow and then discuss the process with their groups and create their algorithm using Code Snaps. When they have created their paper program, they will test it and review it for possible issues and improvements.
Estimated TimeThis lesson will take approximately two 45 minute class periods.
Materials / Resources/Lesson PlansStudents will need a yardstick, the paper CodeSnaps (please visit this link for a PDF of CodeSnaps that can be printed for student use), an iPad, and a Sphero robot. Students will need their Chromebooks and will utilize Code.org for a portion of the lesson.Students will use printed CodeSnaps to program a Sphero to perform a task. They will use the Project Guidelines and Group Roles documents to guide their wor[a][b][c]k.
Standards
  • 1A-AP-09 - Model the way programs store and manipulate data by using numbers or other symbols to represent information.
  • 1A-AP-11 - Decompose (break down) the steps needed to solve a problem into a precise sequence of instructions.
  • 2.SL.1 - Participate in collaborative conversations with diverse partners about grade 2 topics and texts with peers and adults in small and larger groups.
  • MP.1 - Make sense of problems and persevere in solving them
  • MP.3 - Construct viable arguments and critique the reasoning of others
  • MP.5 - Use appropriate tools strategically
  • MP.6 - Attend to precision
  • MP.8 - Look for and express regularity in repeated reasoning
Project Outline
AskWhat is an algorithm?  How could an algorithm be used to move a robot?
ImagineWhen questions are answered and the class consensus is reached, groups will begin to come up with ideas on how they can meet the requirements.
PlanStudents will compile their best ideas into an ordered list (sequencing) that they would take (algorithm) in order to fulfill the requirements (coding a program). The list will be reviewed with each team and then students will be given a yardstick, a set of CodeSnaps, an iPad, and a Sphero.
CreateStudents will use CodeSnaps to code and test their algorithm. To demonstrate mastery, students will also code their robot to navigate an obstacle course. Obstructions will be placed in the path and teams will plan and create a program that maneuvers the obstacle course. Teams will be motivated by a race in which the fastest time to complete the obstacle course wins.
ImproveStudents will debug their program if there are problems with the robot completing the requirements.
Closure / Student ReflectionsStudents will answer the following questions in their Coding Journal:
  • What was today’s lesson about?
  • How did you feel during today’s lesson?
  • Draw or describe an activity you like to do that you struggled with the first time. Draw or describe how you got better.
Possible Modifications / ExtensionsModifications - Students could work with the teacher to come up with a simple plan for how to make the robot implement a shorter set of tasks and then could write their steps down and implement them by driving the robot instead of using the CodeSnaps. Extensions - Students could create an algorithm for a more complicated set of requirements. Students could also come up with their own set of requirements, subject to teacher approval, for which they could create an algorithm. Once the algorithm is programmed they would test and debug it.

 

 

Pre and Post Lesson Assessment Questions:

  1. What is a program?
  2. What is an algorithm?
  3. What is debugging?
  4. Why is sequencing important?

Creative Commons