
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 15 in the unit "Micro:bit Innovations". Lesson Title: Introduction to the Voting Machine: Civic Tech and Data Collection Lesson Description: Students explore the concept of civic technology by designing a digital voting machine using the Micro:bit, connecting the project to real-world applications in elections and surveys. The lesson introduces data collection, tallying, and display as key computer science skills, with a discussion on fairness and accuracy in voting systems. Students begin building the voting machine using MakeCode, setting up button inputs to cast votes and a display to show results. MakeCode project overview: Voting Machine with button A and B for two options, variable tallies, and LED display of results.
Students connect civic technology to real-world elections and surveys by building a Micro:bit “voting machine” in MakeCode. The lesson also strengthens grade-appropriate math reasoning by tallying results, interpreting ratios, and using signed numbers to represent changes (e.g., vote differences between groups).
Students will be able to:
0–5 min · Hook (civic tech scenario). Teacher shows a quick prompt: “A student council needs fair voting. How could a small device reduce mistakes?” Students turn and talk, then share 1 idea about accuracy/fairness.
5–12 min · Mini-lesson: what the voting machine must do. Teacher outlines the MakeCode plan: Button A = Option 1, Button B = Option 2; each press updates a tally variable; LED displays the results. Students record the three required features in their notebooks.
12–20 min · Model the MakeCode skeleton. Teacher builds or displays a skeleton project: create two variables (tallyA, tallyB), set initial values to 0, then add event blocks for on button A pressed and on button B pressed. Students echo the structure on their devices, using guided step cards.
20–29 min · Build: voting logic + display. Teacher prompts: “How will the Micro:bit show progress? What should it display after each vote?” Students implement one of two display options:
36–43 min · Test rounds (data collection check). Teacher runs a class “two-minute vote drill” (students press buttons during test, then stop). Students verify the displayed results match the tallies they expected. Teacher asks: “Were there any missed presses? What design choices could reduce errors?”
43–45 min · Exit ticket (15 seconds to write, 2 minutes to share). Students complete 3 prompts on paper or in a form:
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