Escape room puzzle

This was my team's puzzle for a class-wide escape room in Cornerstone of Engineering 2 (spring 2026), placed at the transition between the first and second rooms. It's housed in a wooden security box with a 3D-printed keypad enclosure and an LCD. First, players press four colored buttons together to mix new colors (red and blue make purple), working through orange, purple, and pink to earn a code. Then they scan three colored keycards past a color sensor in order (red, green, blue) to unlock a second code.
Relative thresholds tuned from real readings let the color sensor tell blue keycards from green ones.
I handled the electronics, component selection, and code. The puzzle runs on a Raspberry Pi Pico in MicroPython, with a TCS34725 sensor built for Arduino adapted to run alongside the LCD on its own I2C bus. Calibration took the most work. Red and green read cleanly, but blue barely registered above green, so detection uses relative thresholds tuned from real readings instead of fixed values.