Skip to the content
2 layers85.2 × 57.2 mmLightbox MedTechPrototyping, the printed circuit board in 3D

Lightbox MedTechPrototyping

AlishaG15/Lightbox-MedTechPrototyping

Interactive LED system with custom PCB and real-time feedback.

Size
85.2 × 57.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
35
Pads
65
Tracks, vias
63, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
28 Apr 2026
Updated
28 Apr 2026

Overview

Lightbox MedTechPrototyping is an open-source printed circuit board by AlishaG15, from the AlishaG15/Lightbox-MedTechPrototyping repository on GitHub. It is a 2-layer board of 85.2 × 57.2 mm with 18 parts on 35 nets, routed with 63 tracks and 0 vias.

It is built around the B02B-XASK-1 and IRFZ44N. Its parts include 7 connectors, 3 resistors and 3 transistors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Lightbox

A custom embedded systems project built for BME 254 at Duke University — a 3D-printed panda enclosure housing a hand-soldered PCB, Arduino Nano Every, and three independently controlled LEDs (two eyes and a nose).


Overview

When a button is pressed, the panda's eyes light up for 5 seconds and its nose blinks for 10 seconds. The brightness of the eyes and blink rate of the nose are each controlled by a dedicated potentiometer mounted in the ears. An onboard heartbeat LED blinks at 1 Hz in all states to confirm the device is running.


Hardware

ComponentDetail
MicrocontrollerArduino Nano Every (ATmega4809)
PCBCustom single-sided board, hand-milled and soldered
LED driversIRFZ44 N-channel MOSFETs
Enclosure3D-printed PLA, two-part snap fit
Power9 V battery with SPST toggle switch
ControlsSPST push button + 2× 10 kΩ potentiometers

Internals Side view with potentiometers


Firmware

Written in C++ using the Arduino framework via PlatformIO. Key design decisions:

  • State machine with three explicit states: IDLE, ANALOG_READ, and LED_OUTPUT
  • Interrupt-driven button input using attachInterrupt() — no polling in the main loop
  • Non-blocking timing throughout using millis() — no delay() calls anywhere
  • PWM brightness control on the eye LEDs via analogWrite(), mapped linearly from the potentiometer ADC reading
  • Clean digital blink on the nose LED using digitalWrite() to avoid the Nano Every's 255/256 PWM artifact
  • All pin assignments and timing constants defined as #define macros at the top of the file
text
IDLE ──(button press)──▶ ANALOG_READ ──▶ LED_OUTPUT ──(10 s elapsed)──▶ IDLE

Testing Results

All measurements taken with a Tektronix TBS 1102B oscilloscope.

Heartbeat LED

  • Period: 1000 ms, Frequency: 1.000 Hz, Duty cycle: 50.0%
  • Identical in both IDLE and LED_OUTPUT states
  • Zero measurable variation across 10 trials in each state (limited by oscilloscope resolution)

Eye LED brightness (vs. potentiometer resistance)

  • Linear relationship (R² ≈ 1.0) from 0% duty cycle at max resistance to ~80% at minimum
  • Did not reach 100% due to potentiometer mechanical travel limits

Nose LED blink rate (vs. potentiometer resistance)

  • Linear relationship from 5.00 Hz (max resistance) to 7.45 Hz (min resistance)
  • Lower bound matches spec exactly; upper bound limited by the same pot range constraint

Gallery

AssembledBack panel
frontback
Internals (PCB)Internals (Arduino + connectors)
pcbarduino

Built With

  • PlatformIO — build system and upload toolchain
  • KiCad — schematic capture and PCB layout
  • Fusion 360 / CAD — enclosure design
  • Python / Jupyter — data analysis and technical report (scipy, matplotlib, pandas)

Parts

18
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
31kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3
3B02B-XASK-1Connector_JST:JST_XA_B02B-XASK-1_1x02_P2.50mm_VerticalJ57, J69, J71
3IRFZ44NPackage_TO_SOT_THT:TO-220-3_VerticalQ1, Q2, Q3
2Conn_01x02_PinConnector_JST:JST_XA_B02B-XASK-1_1x02_P2.50mm_VerticalJ12, J23
1Arduino_Nano_EveryModule:Arduino_NanoA1
1POT_BLINK_CONNConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ41
1POT_BRIGHT_CONNConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ35

Similar boards

  • 2 layers91.4 × 71.1 mmPico w rover, the printed circuit board in 3D

    Pico w rover

    NikodemBartnik/Mini-Mars-Rover

    Educational robotic platform made to look like a mini mars rover

    20 parts143MIT
  • 2 layers54.6 × 85.1 mmOpenScrewCounter, the printed circuit board in 3D

    OpenScrewCounter

    Indystrycc/OpenScrewCounter

    Open source screw counting machine

    28 parts71
  • 2 layers97.8 × 66 mmPico Watering System, the printed circuit board in 3D

    Pico Watering System

    NikodemBartnik/Pico-Watering-System

    Raspberry Pi Pico based automated watering system for your garden

    33 parts59MIT
  • 4 layers262 × 110.5 mmHM CENTRAL-02 painel, the printed circuit board in 3D

    HM CENTRAL-02 painel

    BenjamimKrug/robo_humanoide

    Repositorio para arquivos gerais necessários para o desenvolvimento do Robô humanoide

    303 parts10
  • 2 layers55.4 × 82 mmG board V0 1, the printed circuit board in 3D

    G board V0 1

    2technology/g-board

    ESP32 IoT Home automation PCB - 1 * 12V relay, 4 * input button connector with HW debounce, 4 * ws2812b output

    42 parts5GPL-3.0
  • 2 layers45.5 × 35.5 mmPWM, the printed circuit board in 3D

    PWM

    AvishkaVishwa/12V-DC-Motor-Speed-Controller-PCB-Design-using-KiCAD

    using 555 timer is at Astable mode

    16 parts4
  • 2 layers186.7 × 81.8 mmDD Scope PCBv3, the printed circuit board in 3D

    DD Scope PCBv3

    RichardBenear/DDScopeX-Hardware

    Hardware documentation for Direct Drive Scope

    85 parts3MIT

Questions

How big is the Lightbox MedTechPrototyping PCB?

It measures 85.2 × 57.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lightbox MedTechPrototyping use?

18 parts, built around the B02B-XASK-1 and IRFZ44N. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Lightbox MedTechPrototyping KiCad files?

From the AlishaG15/Lightbox-MedTechPrototyping repository on GitHub, at the commit this page was made from: the board is circuit/circuit.kicad_pcb and its schematic circuit/circuit.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lightbox MedTechPrototyping design in my own project?

Its repository states no licence, so its author keeps all rights: ask AlishaG15 before reusing the design.