Level 3

Count with Timer

Level 3 · Chapter 5

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Use events, loops and if-then in one program.

Code 1B-AP-10Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Number & Operations — Fractions · Grade 4

Write tenths and hundredths as decimals.

Code 4.NF.C.7Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will use the timer to track time and trigger events.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I canuse the timer to track time and trigger events
🧩 New blocks2 blocks
📝 New words5 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students may leave out reset timer in a script that starts from a key or a click — the timer keeps counting from the green flag, so the condition fires immediately.
  • Students may confuse (timer) (a reporter that counts UP) with a countdown block. Clarify: timer counts UP, we subtract to get a countdown.

🎯 Differentiation

🐢 Struggling: Provide a printed number line labeled 0–15 seconds. Students trace the timer value with a finger until it crosses the threshold.

🚀 Advanced: Challenge them to display a live countdown: say ((10) - (timer)) inside the forever loop. Joining it with a label word waits for Ch12.

💡 During the lesson

  • Warm-UpPoint to each frame above. Ask: "What number is the timer at in frame 2? Frame 3?" Students say the numbers aloud. Reinforce that (timer) counts forward, not backward. Then hold up a stopwatch or phone timer, click start, let it count 5 seconds, and ask: "How many seconds?" Tell students Scratch has the same sensor built in — it is called (timer). Reaching the limit is the trigger ⚡ that starts something.
  • Try ItHold up reset timer and (timer) side by side. reset timer is an action — it sets the count back to 0. (timer) is a reporter — it tells you the number of seconds since the last reset. Reset first, then read.
    The green flag resets the timer by itself, so a second flag run looks fine. The bug shows when a script starts another way: clicking the script, or a when [space ▾] key pressed hat. Then the timer still holds the time since the flag. Section 6 shows a cousin: a wait before the count.
  • PlanAsk: "Why do we reset the timer FIRST, before the forever loop?" (So the game always starts fresh.) The green flag also resets the timer, so a missing reset shows when something waits before the count, or a script starts another way — students meet this in Fix It.
  • BuildAfter step 6, walk the room. Common issue: students put reset timer inside the forever loop — the timer never grows. Show them reset timer must be OUTSIDE (before) the loop. A second common error: forgetting reset timer entirely. The green flag hides it only when nothing waits before the loop, because it resets the timer too — Fix It shows when it matters.