
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 10 of 20 in the unit "Microbit Mini-Unit for Year 6". Lesson Title: Introduction to Loops and Conditions Lesson Description: Teach loops and conditional statements in coding. Use MakeCode to create a simple flashlight app. Success Criteria: The app uses loops to maintain brightness. Differentiation: Use a flowchart to help visual learners.
Today students start coding loops and conditions in MakeCode by building a simple “flashlight” app for a micro:bit. Students will connect logical statements to real app behavior: choosing brightness and then using loops to keep the brightness pattern going.
0–5 min · Hook (App demo + quick talk). Teacher shows a short MakeCode or simulated flashlight effect (steady on, then blinking) and asks: “What parts tell the micro:bit to repeat, and what parts decide what brightness to use?” Students turn-and-talk and share 1 idea.
5–12 min · Mini lesson: loops + conditions. Teacher models two code ideas on the board:
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