Lightbox
Designed and built a custom PCB, wrote state-machine C++ firmware on an Arduino Nano Every, and 3D-printed a fitted enclosure to create a button and potentiometer-controlled LED device.

Problem / Goal
The goal was to build a functional LED lightbox from the ground up as a full-stack embedded systems exercise in a medical device design course at Duke. The device had to respond to button and potentiometer inputs, with control logic managed by state-machine firmware running within the memory constraints of an Arduino.
What I Did
I started by building state diagrams to map the control logic before writing any firmware, then implemented it in C++ on an Arduino Nano Every using PlatformIO, with hardware interrupts driving state transitions. I managed all project files in a Git repository throughout.

On the electrical side, I designed the schematic and PCB layout in KiCad, ran ERC and DRC checks, and ran SPICE simulations to verify circuit behavior before cutting the board. After fabrication, I soldered the components and confirmed connectivity at each stage with a multimeter.







For the enclosure, I modeled it in Onshape to fit the PCB exactly, 3D printed it, and assembled everything with heat-set inserts.

Results
A fully functional device: working PCB, fitted enclosure, and firmware handling all input and LED control logic as designed.




What I Learned
This was the first time I built every layer of an electromechanical system myself. Working through schematic, firmware, and enclosure in sequence made the dependencies between them concrete in a way that isolated exercises don’t capture. A layout choice affects solderability; a firmware architecture shapes memory usage; an enclosure dimension constrains everything that goes inside it.