Build an escape-room puzzle box lesson plan
A keypad, a magnet key, an RFID card, a tilt sequence and a light puzzle, each one a lesson, then the whole box with its lock.
Objectives and materials
By the end, students can
- A code on a keypad and a magnet nobody can see.
- A card, a tilt and a flash of light, each read by a different sensor.
- The clock, the hint and the lock, then all five puzzles at once.
Materials for the whole unit
- Accelerometer and gyroscope, MPU6050
- Arduino Mega 2560 R3
- Character LCD, 20x4, with I2C backpack
- Full-size breadboard
- Hobby servo
- Keypad, 4x4
- LED x 5
- Photoresistor sensor module
- Piezo speaker
- Pushbutton
- Reed switch
- Resistor x 5
- RFID reader, MFRC522
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
Locks without keys
A code on a keypad and a magnet nobody can see.
| Lesson | Time | What students do |
|---|---|---|
| A keypad code lockSixteen keys on eight wires: how a 4 x 4 keypad is scanned, and a code lock that lights the first lamp for the right year. | 35 min |
|
| A magnet for a keyA reed switch hidden in the box opens to a magnet held in the right place for two seconds: a lock with no keyhole. | 35 min |
|
Materials
- Arduino Mega 2560 R3
- Character LCD, 20x4, with I2C backpack
- Full-size breadboard
- Keypad, 4x4
- LED
- Piezo speaker
- Reed switch
- Resistor
Check for understanding
Each student finishes "A magnet for a key" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The second lamp".
Puzzles that sense
A card, a tilt and a flash of light, each read by a different sensor.
| Lesson | Time | What students do |
|---|---|---|
| Only the right cardAn MFRC522 reader on the SPI pins reads each card's UID, and only the card that ends in A7 opens the third lock. | 35 min |
|
| A tilt sequenceAn MPU-6050 feels which way gravity points, so the box knows how it is tipped. Left, right, then forward lights the fourth lamp. | 30 min |
|
| Three flashes of lightA photoresistor module counts flashes, with two thresholds so a flickering light is never counted twice. Three flashes light the fifth lamp. | 30 min |
|
Materials
- Accelerometer and gyroscope, MPU6050
- Arduino Mega 2560 R3
- Character LCD, 20x4, with I2C backpack
- Full-size breadboard
- LED
- Photoresistor sensor module
- Piezo speaker
- Resistor
- RFID reader, MFRC522
Check for understanding
Each student finishes "Three flashes of light" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The fifth lamp".
Lock it and escape
The clock, the hint and the lock, then all five puzzles at once.
| Lesson | Time | What students do |
|---|---|---|
| The clock, the hint and the lockA one-minute clock on the LCD and the five lamps, a hint button that costs time, and a servo lock with a game master's release. | 35 min |
|
| Escape the boxAll five puzzles in one box against a ten-minute clock, with hints that cost 30 seconds and a servo lock that opens only at the end. | 40 min |
|
Materials
- Accelerometer and gyroscope, MPU6050
- Arduino Mega 2560 R3
- Character LCD, 20x4, with I2C backpack
- Full-size breadboard
- Hobby servo
- Keypad, 4x4
- LED x 5
- Photoresistor sensor module
- Piezo speaker
- Pushbutton
- Reed switch
- Resistor x 5
- RFID reader, MFRC522
Check for understanding
Each student finishes "Escape the box" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Escape".
Teach this unit as a class
Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.