The Arizona STEM Acceleration Project
Edison Spider Trap - Part 1
Edison and the Spiralling Spider Trap - Part 1 (adapted from Edison Lesson Plan - Edison and the Spiralling Spider Trap Teacher Lesson,Edison Spider Trap Student Lesson )
A 5th-8th Grade STEM Lesson
Cori Long
February 2023
Notes for Teachers
List of Materials:
Edison Challenges
Vocabulary:
Variable- a bit of memory that is used to store a value in a program.
Increment/Decrement - to increase or decrease by 1.
Tracing Code - working through a program line by line, recording important values.
As you go:
Think about a spiralling spider web and how it looks.
Today’s Learning Outcomes:
LOOK at the Spider Web
What do you SEE
What do you THINK
What do you WONDER
Agenda (60 minutes)
Introduction:
Trace the program and find the variables.
Edison and the Spiralling Spider Trap
What do you notice about the spider web?
"Math in the World Around Us: Spiderwebs and Geometry"
by Adventure Academy
Vocabulary
Variable - a bit of memory that is used to store a value in a program. It is like a container for a value or expression that can be used repeatedly throughout a program. Located in the “Data” category.
Increment/Decrement - to increase or decrease by 1.
Tracing Code - working through a program line by line, recording important values.
Go to
Trace It!
What is the increment block changing the variable to be?
That will depend on where you are in the program, how many times the repeat loop has run.
Trace It!
Why?
One of the main reasons we use variables in programs is that a variable can hold a piece of information, even when the value of that information changes.
You have a variable called and the bit of information it holds is your age.
At your 1st birthday, was set to 1.
After that, every year on your birthday, is incremented, which changes it to a new value: + 1 =
What Happens?
The value of changes each birthday, but the type of information doesn’t change. is your age, no matter how many birthdays you have!
Loop | Starting Value | New Value |
1 | 1 | 2 |
2 | 2 | 3 |
3 | 3 | 4 |
4 | ? | ? |
Wait Block
The value of the “Wait” block will change depending on the value of , but this does not change the value of .
The wait block is in milliseconds because Edison thinks in milliseconds and this helps make it possible to do computations which Edison will be able to understand.
**Remember, 1 second =1000 milliseconds
Trace It
Trace the program to work out the values. Fill out the table with what the starting value of the variable will be at the beginning of each loop repetition, what the input value of the “wait” will be in that loop, and what the new value of will be after the increment block inside the loop runs.
Loop | Starting Value (n) | “WAIT” Block Input Value (in milliseconds) (n*200) | New Value (n+1) |
1 | 1 | 200 | 2 |
2 | 2 | 400 | 3 |
3 | | | |
5 | | | |
Loop | Starting Value (n) | “WAIT” Block Input Value (in milliseconds) (n*200) | New Value (n+1) |
1 | 1 | 200 | 2 |
2 | 2 | 400 | 3 |
3 | | | |
5 | | | |
7 | | | |
10 | | | |
Trace It
Answers
Loop | Starting Value (n) | “WAIT” Block Input Value (in milliseconds) (n*200) | New Value (n+1) |
1 | 1 | 200 | 2 |
2 | 2 | 400 | 3 |
3 | 3 | 600 | 4 |
5 | 5 | 1000 | 6 |
7 | 7 | 1400 | 8 |
10 | 10 | 2000 | 11 |
Predict?
What do you think the program is going to make the robot do when you run it in Edison?
Hint:
Try It?
Go to
The set block sets the variable to be 1 at the beginning.
Creating a Variable
We need to create a variable for our program.
Try It?
The set block sets the variable to be 1 at the beginning.
Try It?
Think About it
What does Edison do when you run this program? What ‘shape’ does the robot drive in?
Look at the code in the program. Explain why the robot drives in the pattern you see when you run the program in Edison. What in the code makes the robot move in that pattern?
Download Reminders
5) You should hear a whirring sound and a beep when the download has completed.
6) Press play and watch your Edison go.
Did the Edison travel the way you wanted it to?
Do you need to make any adjustments?
Download Reminders
What did you learn?
What was challenging?
What did you do to figure out a problem you had?
Bonus Challenge
Early Finishers
Assessment
Test our program:
Math Assessment
Differentiation
One way to differentiate in this lesson is to provide some groups paper copies of the code they need as they learn to program Edison. This can help students who struggle with the “getting started” phase.
Another option is to provide some of the code for students for each challenge or provide them a template or the coding blocks and allowing them to put them in order.
Remediation
Extension/Enrichment
Students who are successful right away can complete the extension/additional challenges at the end of the slide deck for students to work on if they have time.