Project

# Title Team Members TA Documents Sponsor
4 Secure Chain-of-Custody Container
Alp Oguz
Selim Mamak
Sena Tiryaki
Alex Lee design_document1.pdf
proposal1.pdf
**Team Members:**

- Selim Mamak (smamak2)
- Serdar Alp Oguz (soguz2)
- Sena Bahar Tiryaki (stiry2)

## Problem

Confidential engineering prototypes may need to be transported between labs, offices, and authorized employees before they are publicly released. A standard locked case can restrict access, but it provides little information about who opened it, when it was opened, or whether someone attempted to bypass the lock or tamper with the enclosure.

Paper custody logs depend on users recording every interaction and can be modified after the fact. Shipping data loggers may record events such as impact or temperature but generally do not control access, while electronic lockboxes primarily focus on restricting entry rather than maintaining a detailed physical tamper and custody history. A reusable system that combines controlled access, tamper detection, and persistent event logging could provide a more complete electronic chain-of-custody record.

## Solution Overview

We will build a battery-powered secure container that opens only for authorized NFC credentials and records access and physical tamper events. An electronic latch will control access, while a lid sensor, conductive tamper loop, and accelerometer will monitor the enclosure for unauthorized opening, physical damage, and significant impact events.

Each event will be time stamped and stored in nonvolatile memory. Event records will be hash-linked so that modification of previously stored records can be detected when the log is exported and verified.

Low-power operation will be a major engineering focus of the project. Because the container may remain unused for long periods, the design will minimize standby consumption using low-power sensing components and power gating. Higher-power components such as the NFC reader and electronic latch circuit will normally remain disabled and will only be powered when needed.

The complete system will be implemented using a custom PCB containing the microcontroller, power-management circuitry, sensor interfaces, storage, NFC interface, and latch-control circuitry.

## Solution Components

### 1. Power Subsystem

The container will use a protected rechargeable Li-Po battery with USB-C charging. Low-quiescent-current regulation and power gating will be used to reduce standby power consumption.

The NFC reader and electronic latch circuit will normally remain powered off. A low-power wake mechanism, such as a Hall-effect sensor or pushbutton, will activate the main system when a user wants to authenticate without requiring the NFC reader to continuously scan.

Low-power sensors used for enclosure monitoring will remain active while the rest of the system is in standby. The firmware will control transitions between standby, wake, authentication, latch actuation, event logging, and return to standby.

Battery voltage and current consumption will be measured so that standby and active-state power consumption can be experimentally characterized.

### 2. Access Control and Tamper Sensing Subsystem

An NFC reader and enrolled credentials will identify authorized users. The exact NFC reader and credential pair will be selected through early compatibility testing. The design will use authenticated credentials rather than relying only on a card UID, which would provide weaker access control.

An electronically controlled latch will remain mechanically locked when unpowered and will only consume significant power during lock or unlock actuation.

A Hall-effect sensor will determine whether the container lid is open or closed. A conductive tamper loop routed through protected portions of the enclosure will detect interruption caused by cutting, drilling, or other physical penetration. A low-power accelerometer will detect significant impacts above a defined threshold.

Tamper and lid events will wake the control system so that suspicious activity can be time stamped and recorded even while the system is normally operating in its low-power state.

### 3. Control, Logging, and Readout Subsystem

A low-power microcontroller will coordinate access control, sensing, power management, latch control, and event logging.

A real-time clock with backup power will maintain accurate timestamps if the main battery is disconnected or replaced. Nonvolatile FRAM will store event records containing the event type, timestamp, and user identity when applicable.

The event records will be hash-linked so that altering a previously stored record can be detected when the history is verified.

A USB-C connection will allow the event history to be transferred to a computer. A simple desktop program will display the stored chain-of-custody record and indicate whether the log passes its integrity check.

## Criterion for Success

1. **Authorized Access:** The container remains locked until an enrolled NFC credential is successfully authenticated. An authorized access is recorded with the user identity and timestamp, while an unenrolled credential is denied access.

2. **Tamper Detection:** Opening the lid without authorization, breaking the conductive tamper loop, and producing a predefined significant-impact event are individually detected and recorded with timestamps.

3. **Low-Power Operation:** The completed system achieves a measured standby current below **100 µA** while the NFC reader and latch circuitry are inactive. Standby, authentication, and latch-actuation current will be measured and documented.

4. **Reliable Locking:** The electronic latch performs at least **20 consecutive authorized lock/unlock cycles** without resetting or disrupting the control electronics.

5. **Persistent Event Logging:** Stored event records remain available after complete loss of the main battery, and modifying an existing stored record causes the log-integrity verification software to report an error.

6. **Timestamp Preservation:** The real-time clock continues to maintain time during a main-battery removal and provides correct timestamps after the main system is powered again.

## Alternatives

A standard mechanical lockbox provides physical access restriction but does not automatically identify users or maintain an electronic record of access and tamper events.

Electronic lockboxes can provide credential-based access control, but their primary purpose is generally controlling entry rather than monitoring multiple forms of physical tampering and maintaining a persistent chain-of-custody history.

Shipping data loggers provide another alternative and can measure events such as shock or environmental conditions during transportation, but they generally do not physically control access to the protected contents.

Our project combines **identity-linked access control, physical tamper detection, persistent timestamped logging, and low-power battery operation** in a single reusable container intended for maintaining the custody history of confidential engineering prototypes.

Oscillosketch: Handheld XY Etch-a-Sketch Signal Generator for Oscilloscopes

Josh Jenks, Eric Vo

Oscillosketch: Handheld XY Etch-a-Sketch Signal Generator for Oscilloscopes

Featured Project

Team Members:

- Josh Jenks (JaJenks2)

- Eric Vo (ericvo)

# Problem

Oscilloscope XY mode is a powerful way to visualize 2D parametric signals and vector like graphics, but interactive control typically requires multiple bench instruments or ad hoc setups. There is no simple, handheld, purpose-built controller that can safely generate stable, low noise bipolar X/Y signals for XY mode while providing an intuitive drawing interface. Additionally, producing clean vector style graphics requires careful mixed signal design (DAC, filtering, level shifting, buffering, protection) and deterministic embedded control.

# Solution

We will design a custom PCB and handheld enclosure that connects to an oscilloscope’s CH1 and CH2 inputs (X and Y). The device will function like an Etch-a-Sketch: two rotary encoders control the on screen cursor position, allowing continuous line drawing on the oscilloscope in XY mode. The PCB will include:

- A microcontroller (STM32- or ESP32-class) to read the encoders/buttons and generate X/Y sample streams

- An external dual channel DAC to produce two analog voltages

- Analog filtering, level shifting, and buffering to generate bipolar outputs with selectable full scale up to ±5 V

- A complete power subsystem powered from USB-C 5 V, including a generated negative rail to support bipolar analog output

- Output protection/current limiting so the device cannot damage the oscilloscope inputs under reasonable misuse

Stretch goals: add a vector rendered game/demo mode (Pong; Asteroids as further stretch), including optional Z axis blanking to reduce retrace artifacts, and optional line level audio output to monitor/play back generated signals.

# Solution Components

## Subsystem 1: User Input / UI

Purpose: Provide intuitive control for drawing and mode selection.

Components (examples):

- 2x incremental rotary encoders with push switch (e.g., Bourns PEC11R series or equivalent)

- 4x tactile pushbuttons (e.g., mode select, clear/recenter, scale/zoom, optional pen/blank)

- Optional status LEDs for mode feedback

## Subsystem 2: Microcontroller + Firmware

Purpose: Read inputs, maintain drawing state, and generate X/Y sample buffers at a fixed update rate.

Components:

- MCU (STM32- or ESP32-class)

- Example options: ESP32-WROOM-32E module OR STM32G4/F4-class MCU with SPI + timers

Firmware features:

- Quadrature decoding for encoders; button debouncing

- Drawing modes:

- Base mode: “etch-a-sketch” continuous drawing (position integration with adjustable step/scale)

- Optional modes: predefined shapes/patterns for testing

- Fixed rate DAC update engine (timer driven), with buffered generation to keep output stable independent of UI activity

## Subsystem 3: Dual-Channel DAC + Analog Output Chain (X and Y)

Purpose: Generate clean, low noise bipolar voltages suitable for oscilloscope XY inputs.

Components (examples):

- Dual-channel SPI DAC, 12-bit (Microchip MCP4922 or equivalent)

- Reference for stable scaling / midscale (e.g., LM4040-2.5 or equivalent 2.5 V reference)

- Optional reconstruction filtering per channel (RC and/or 2nd order low-pass) to eliminate high frequency components

- Op-amp signal conditioning:

- Level shift around midscale + gain to produce bipolar output centered at 0 V

- Buffer stage for stable drive into coax cables and oscilloscope inputs

- Example op-amp class: dual op-amp supporting ±5 V rails (e.g., OPA2192/OPA2197 class or equivalent)

- Output connectors:

- 2x PCB mount BNC connectors (X and Y outputs)

- Output protection / safety features (per channel):

- Series output resistor (current limiting and stability into cable capacitance)

- Clamp diodes to rails to limit overvoltage at the connector

- ESD considerations and robust grounding strategy

## Subsystem 4: Power Regulation

Purpose: Provide clean digital and analog rails from a safe, convenient input.

Components (examples):

- USB-C 5 V input (sink configuration with CC resistors) + input protection

- 3.3 V regulator for MCU and logic (e.g., AP2112K-3.3 or equivalent)

- Negative rail generation for analog (e.g., TPS60403 inverting charge pump or equivalent) to enable bipolar outputs

- Power decoupling and analog/digital rail isolation as needed

## (Stretch) Subsystem 5: Z-Axis Blanking Output (Optional)

Purpose: Improve vector graphics/game rendering by blanking the beam during “retrace” moves.

Components:

- Protected Z-output driver (0–5 V-class control) to oscilloscope Z-input

Firmware:

- Assert blanking during reposition moves; unblank during line segments

## (Stretch) Subsystem 6: Line-Level Audio Output (Optional)

Purpose: Provide an auxiliary line out to monitor synthesized signals audibly.

Components:

- 3.5 mm TRS jack (line out)

- AC coupling + attenuation network and optional buffer

Firmware:

- Optional stereo mapping (e.g., X→Left, Y→Right) after removing DC offset

# Criterion For Success

The project is considered successful if all of the following are demonstrated and measured:

1. Bipolar XY output with selectable range:

- Device generates two analog outputs (X and Y) centered at 0 V, with selectable full-scale up to ±5 V.

- Verified with DMM and oscilloscope measurements (documented calibration procedure).

2. Stable interactive drawing in XY mode:

- Using the two rotary encoders, a user can draw continuous line art on an oscilloscope in XY mode.

- At minimum, demonstrate repeatable drawing of a square and a circle using the controller’s clear/recenter and scaling functions.

3. Deterministic update behavior:

- The firmware updates the DAC using a hardware timer or equivalent mechanism to maintain stable, non intensity varying output during user interaction.

4. Safe interfacing / cannot damage scope under reasonable misuse:

- Output stage includes current limiting and voltage clamping such that accidental output short-to-ground and brief overdrive conditions do not produce damaging currents into the oscilloscope input.

- Verified by bench test (short to ground test and measurement of limited fault current through series resistor).

(Stretch) Demonstrate a vector rendered mode (Pong; Asteroids further stretch) with reduced retrace artifacts if Z-blanking is implemented. Optional line-out demonstration if implemented.

Project Videos