top of page

DiscoG X Workshop 9: Only One Way Out

  • Jul 11
  • 3 min read

Updated: Jul 17

DiscoG X Workshop 9 banner celebrating 10 years of DiscoG Coding Academy, 11 July 2026, with a breadboard-wired Raspberry Pi Pico and a finished digital lock box showing green switch and LED lit up.
Workshop 9 of DiscoG X, 11 July 2026. Ten workshops marking ten years of DiscoG Coding Academy.

Workshop 9 of DiscoG X, our 10-week celebration of DiscoG's 10th anniversary, turned students into secret agents. The mission: crack a 4-bit digital lock and escape the room.



Only One Way Out was Workshop 9 / 10. You can see the full series here.


The mission

Students became junior field agents for the DiscoG Intelligence Bureau. A rogue hacker had locked the building behind a 4-bit encrypted security system, and the only way out was to understand it well enough to beat it.


The lock worked on binary. Every code was a number between 1 and 15, entered as a 4-bit binary value using four ON/OFF switches. Students learned how binary underpins every digital circuit, why a switch or GPIO pin can only ever be on or off, and how to convert a denary number into binary bit by bit, working through the place values of 8, 4, 2 and 1.



Once they'd cracked the logic, they turned to the physical system built to test it. Set the switches, press the button, and the lights tell you how close you are. Red means your guess is too high, yellow means too low, and green with a buzzer means you're in.



The tech behind the lock

Each lock ran on a Raspberry Pi Pico W, wired up with a 4-bit DIP switch, a push button, three LEDs, and a buzzer.


Presentation slide introducing the Raspberry Pi Pico W microcontroller with a USB cable, describing it as the component that reads binary input and controls the LEDs and buzzer.
Presentation slide showing the Raspberry Pi Pico W, the microcontroller at the heart of every lock.

Students saw the full input-process-output pipeline in action: switches send a binary guess in, the Pico compares it to the secret code, and the LEDs and buzzer report back out.


Presentation slide showing the components of the escape-room circuit: a 4-bit ON/OFF switch, a push button, red, yellow and green LEDs, a buzzer, and a Raspberry Pi Pico W microcontroller.
Presentation slide showing the components included in the circuit for each lock: a 4-bit switch, push button, three LEDs and a buzzer, all controlled by a Raspberry Pi Pico W.


They also learned about how to convert from denary to binary, and how this can be achieved using basic switches.



Presentation slide explaining binary conversion, showing the denary digits 0 to 9 alongside a switch illustration labelled ON (1) when up and OFF (0) when down.
Presentation slide about converting a denary number into binary using ON and OFF switches.


Built with help from a familiar face

Preparing for this workshop was a lot of work, but involved all the things Gerard and Kat love best... electronic engineering and designing 3D parts and boxes.



A desk with a breadboard prototype, tangled jumper wires and a notebook showing hand-drawn circuit diagrams with GPIO pin numbers.
Working out the wiring on paper before it went anywhere near a breadboard.


The circuits behind each lock were built and soldered with help from a former DiscoG student, now in Year 11, who had just finished her GCSE in Engineering. She helped connect the components and solder the circuits ahead of the workshop.



Screwdrivers and craft knife on a cutting mat, with a green circuit board and grey switch panel being wired together for the DiscoG X escape-room lock.
Attaching the switches to a panel for one of the digital locks.


Four lock control panels on a workbench, including a 3D-printed orange panel and finished grey panels fitted with toggle switches and red, yellow and green LEDs.
Lock panels at different stages, from 3D-printed casing to fully wired switches and LEDs.


We'd offered her the work experience after seeing a project of hers that she'd been working on earlier in the year. It was a fantastic opportunity to put her Engineering skills to real use, and the workshop wouldn't have come together in the same way without her.



Playing the game

After writing some of the logic to make the game work, students took turns trying to crack their binary lock. Each guess started with the four switches, flipped up or down to set a binary number between 1 and 15, then submitted by pressing the button.


The lock replied with a light. If the guess was too high, the red LED turned on. If it was too low, the yellow LED turned on. If it was correct, the green LED lit up and the buzzer sounded for a few seconds to confirm the system was unlocked.



A finished white 3D-printed lock box with switches and LEDs sitting in front of a monitor running the escape-room Python program in Thonny.
A student successfully guessing the correct code for their "escape-room".


With those clues, students worked through each guess and narrowed in on the code, adjusting their switches up or down until the green light and buzzer told them they'd cracked it.



Join us this summer

DiscoG X is a short series of workshops for Years 5 to 9, but DiscoG Coding Academy runs weekly term-time classes during the academic year as well as Summer Holiday Bootcamps for students in Years 1 to 13.


Whatever stage your child is at, there is a place for them here.


Summer Bootcamps are intensive and hands-on, with Specialised Courses built around the same approach you've seen in this post. Spaces fill up quickly.



Not able to make summer? Register your interest for September term-time classes to be one of the first to hear when spaces open.


Any questions? Get in touch!


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page