
STEM • 45 • 25 students • Created with AI following Aligned with Common Core State Standards
Free PDF · we'll email you a copy
This is lesson 3 of 20 in the unit "Microbit Mini-Unit for Year 6". Lesson Title: Creating a Digital Dice Lesson Description: Students program the Microbit to act as a digital dice roller using random numbers. Success Criteria: The dice program rolls numbers 1-6. Extension: Add sound effects using the Microbit's features.
Students build a Microbit program that simulates a physical dice using random numbers and a clear mapping from random outputs to the values 1–6. The lesson connects programming choices to the idea of opposite/zero meaning (what “0” represents) and absolute value/distance from zero when interpreting results.
Students will be able to:
0–5 min · Hook (Digital dice challenge). Teacher shows a finished Microbit “dice” demo and asks: “Where does the randomness come from, and what numbers must never appear?” Students quickly share ideas with a partner.
5–12 min · Mini-teach (Random range → dice range). Teacher models a typical mapping: “If my Microbit gives numbers in 0–5, I can add 1 to shift to 1–6,” and explains why that removes 0 from the dice results. Students write a quick note: “My plan to avoid/handle 0.”
12–20 min · Guided build (First working dice). Teacher provides the starter blocks/project structure (or directs students to their class template) and circulates while students:
20–28 min · Debug lab (Correctness checks). Teacher frames a debugging rule: “Test the edges first—does your program ever show 0 or 7?” Students run at least 10 rolls, record any invalid output on a paper checklist, and fix code immediately.
28–36 min · Math reasoning connection (0, signs, and distance). Teacher asks a structured question tied to number meanings:
36–43 min · Partner test + performance. Students swap devices (or swap roles) and each partner performs the same test: 20 rolls, verify all are 1–6, and confirm the roll trigger works consistently. Students add one improvement suggestion to their partner’s feedback sheet.
43–45 min · Exit ticket (Quick evidence). Students submit a short response:
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards in minutes, not hours.
Created with Kuraplan AI
Generated using openai/gpt-5.4-nano
🌟 Trusted by 1000+ Schools
Join educators across United States