Lesson 3
Making a password generator
Introduction
In this lesson students use their pseudocode algorithm to code their password generator before testing, debugging and evaluating it.
Learning objectives
- To follow a pseudocode algorithm to program a password generator using a micro:bit
- To write a program using variables correctly
- To test and debug code to create a working password generator
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- Student handouts
- coding support sheet
- password generator evaluation
- HEX file
Other resources:
Paper - rough, student work from previous lesson
Quick links

Lessons created in partnership with Nominet
Lesson plan
Introduction: Password generator challenge recap (5 minutes)
Recapping code (10 minutes)
Coding the password generator (20+ minutes)
Sharing, testing and debugging (10 minutes)
Evaluating programs (10 minutes)
Review and wrap up (5 minutes)
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.