STEM Fun! Sparkry AI
<- Back to STEM Fun!
No Code Series - Lesson 2

Variables: What Can Change?

A 30-minute lesson plan to teach kids that a variable is a name for something that can change. Read-aloud, teacher demo, hands-on table work, videos, and a partner-robot dance!

Lesson Schedule (30 minutes)

Time Activity
3:00-3:05Welcome, expectations, quick "robots" warm-up
3:05-3:18Read-aloud: What's a Variable?
3:18-3:30Demo: "Program the Teacher Robot" (variables: HAT, FACE, BUMP_SOUND)
3:30-3:35Callback to last week: move Teacher Robot (now w/ BUMP_SOUND)
3:35-3:40Explain table activities + model "variable = named box"
3:40-4:05Table work: Robot Faces + Mad-Lib Variables
4:05-4:12Share-out & recap ("name stays, value changes")
4:12-4:17Video: Variables song (Scratch Garden)
4:17-4:20Video: Robot dance clip (clap/shrug/nod)
4:20-4:28Whole-class: "Program your partner robot" dance
4:28-4:30Pack-up buffer

1 Welcome & Warm-Up (5 min)

Goal: Set tone + "variable = something that can change."
Script:
  • "Hi programmers! Today we're controlling robots again."
  • "Last week we programmed where the robot goes. Today we program what the robot is like."
  • "A variable is a name for something that can change."

2 Read-Aloud (13 min)

Goal: Anchor vocabulary in story + visuals.

Book

"What's a Variable? A Story Time Adventure"
By Kaitlyn Siu and Marcelo Badari | First Steps in Coding Series

Script prompts:
  • "Listen for things that can change."
  • "If the robot changes its face... is the robot still the robot? Yep. The name stays, the value changes."

3 Demo: Program the Teacher Robot (12 min)

Goal: Kids "set" variables on you before they touch any paper.
Board / Poster - Variables:
HAT =
top hat / helmet / crown / no hat
FACE =
happy / silly / surprised / grumpy
BUMP_SOUND =
"boing!" / "beep!" / "bonk!" / kid choice
Script:
  • Robot voice: "Beep boop. I am Teacher Robot. I only run programs."
  • "Programmers: tell me what to set my variables to."
  • - "Set HAT to ____." (put on hat or pretend)
  • - "Set FACE to ____." (do the face)
  • - "Set BUMP_SOUND to ____." (practice it once)
Tiny punchline (optional): "Congratulations. You have successfully installed a hat."

4 Callback: Move the Robot (5 min)

Goal: Tie to last week: navigation + "when I bump, I use BUMP_SOUND."
Script:
  • "Now use last week's commands to move me. When I bump something... I must play my BUMP_SOUND."
  • After 1 bump: "Did the walking change my BUMP_SOUND?" (No.)
  • "That's a variable - same name, same value until we change it."

5 Explain Table Activities (5 min)

Goal: Fast, clear directions + modeling.
Script:

"At your tables you'll do two programmer jobs:"

  1. "Build a robot and change its FACE."
  2. "Make a silly story where a blank has a variable name, and you choose the value."

Robot Faces Interactive Activity

Use this digital activity to demonstrate how the FACE variable works before table time!

6 Table Work (25 min) Main Activity

A) Robot Faces Activity

Materials:

  • Robot body page
  • Face options page
  • Crayons
  • Glue stick (or tape)

Steps:

  1. Color robot + faces
  2. Attach a face to the robot
  3. Extra (fast finishers): "Change FACE" by swapping to a different face
Teacher talk at tables:
  • "What's your variable name?" -> "FACE."
  • "What's your FACE value right now?" -> "Silly!"

B) Mad-Lib Variables

Kids complete simple picture phrases with a blank labeled as a variable name (ex: PET, HAT, MOOD, SOUND). They choose an option or draw their own value, then read the sentence out loud.

Example sentences:

  • "My robot's HAT is ____."
  • "When my robot bumps, BUMP_SOUND = ____."
  • Older kids:"If MOOD = happy, the robot will ____."

7 Share-Out & Recap (7 min)

Script:
  • "Show me your robot. What is FACE set to?"
  • Pick 2 kids to read a mad-lib line.
  • "Say it with me: Variable = a name. Value = what it is right now."
  • "Can variables change?" (Yes.) "Does the name change?" (No.)

8 Videos (8 min)

Variables Song (5 min)
Scratch Garden
Watch on YouTube
"Listen for 'variable' and 'change.' What changed in the song?"
Robot Dance Clip (3 min)
clap / shrug / nod
Watch on YouTube
"Watch the three moves. We're about to program each other."

9 Program Your Partner Robot (8 min)

Goal: Kids practice "setting" variables on a person.

Printable Worksheet

Kids circle choices (clap/shrug/nod) for 10 steps, then their partner acts it out!

Script:
  • "You're in pairs. One is the Programmer, one is the Robot."
  • "Programmers: set your robot's variables:"
  • MOVE1 = clap MOVE2 = shrug MOVE3 = nod
  • "Run your program: 1, 2, 3!"
  • Swap roles.
Extra for older kids: Programmer chooses the order of MOVE1, MOVE2, MOVE3.

Pack-up Buffer (2 min)

  • Finish coloring / one last FACE swap
  • Closing line:"Ask your grown-up what variables they use every day - like volume, temperature, or points in a game."

Quick Prep Checklist

  • Print robot bodies + face pages (pre-cut faces if you want zero-scissor mode)
  • Print mad-lib variable sheets (picture-only + word version)
  • Bring: crayons, glue/tape, 2-3 hats/props for your demo