Project

# Title Team Members TA Documents Sponsor
7 Adaptive Light-Filtering Glasses
Jahnavi Thejo Prakash
Kewal Ghosalkar
Lukas Dumasius
# Team Members:
- Kewal Ghosalkar (kewalkg2)
- Jahnavi Thejo Prakash (jahnavi7)

# Problem

People around the world struggle with photosensitive epilepsy, migraines, TBI, and other such photosensitive medical conditions that increase sensitivity to light. Intense flickering lights can worsen sensitivity and in some cases also lead to convulsions and seizures. Current solutions include remedies like avoiding triggers, or using tinted glasses. In unfamiliar situations, these passive solutions can prove to be unreliable since they cannot update dynamically.

# Solution

We propose adaptive smart glasses that can detect lighting conditions that may trigger such photosensitive conditions and adapt the tint on the lenses accordingly. The glasses can also provide warnings and possibly contain a system to detect seizures.

# Solution Components
## Optical Attenuation Subsystem
- LCD light valve attached to the lenses of the glasses. These can darken proportionally to the perceived level of risk.

## Sensor Subsystem
- Set of 3 photodiodes for detecting the intensity of incoming light.
- Wide FOV photodiode placed in the front for measuring ambient light brightness
- Narrow FOV photodiode placed in front to measure light incident on the users eyes
- Feedback photodiode placed behind the lenses to measure the actual light exposure on the user's eye. This provides feedback for a closed feedback loop to make adjustments based on the attenuation of the LCD light valve on the lenses.
- Transimpedance amplifiers for each of the 3 photodiodes in the sensor subsystem to utilize the full range of the ADC

## Processing Subsystem
- STM32L series microcontroller, with an internal ADC sampling rate of 1000 Hz, which is large enough to avoid aliasing within the Epilepsy ranges of 3-60Hz
- Signal processing will first estimate and remove average brightness or DC component from each signal in the amplifier results. A band-pass filter will remove slower flicker changes caused by movements and noise. An FFT & modulation depth measurements will determine the frequency and strength of the dominating flicker.
- Similarity flicker frequency checks will run for the two forward facing photodiodes over several sampling windows. If risk is detected, the lens will become more attenuated and adjustments will be made based off of the flicker magnitude on the behind-lens sensor with a close loop feedback system.

## Power Subsystem
- Single LiPo to power the entire system.
- Boost converter to step up 3.7V of the LiPo to 5V for the Light valve.
- 3.3V LDO for the STM32, photodiodes and amplifiers.
- USB C charging.
- The Power subsystem will live on a separate hip mounted pack out of concerns for weight, space and safety.

# Criterion For Success
- Our solution can be considered successful if the glasses can:
- Accurately detect epilepsy triggering frequencies around 3 to 60Hz with an accuracy of at least 80%
- Accurately reject non-hazardous changes in light caused my sudden movements or environment changes with a false positive rate of less than 10%
- Assign a replicable risk score to each situation and activate the optical attenuation system within 0.5s of hazardous inputs
- Have a reasonable battery life for daily use of around >8 hours on a single charge.

# Alternatives
A paper titled “EpilepSee” from 2024 attempts to build a device very similar to ours, however there are a few improvements we are trying to make:
- The sampling frequency in the paper was limited to 40Hz which can lead to aliasing at flicker frequencies above 20Hz leading to faults in signal processing. We plan on using a much higher sampling frequency at around 1 kHz to avoid aliasing.
- The paper is measuring light inputs using a single sensor, we want to use multiple sensors to provide more data for signal processing.
- The device in the paper is a prototype and is not very portable. We are attempting to make our design more portable, hence more comfortable for use.
- The paper uses an open loop design. We are going to use a closed loop design which should allow for more precise attenuation
The response time for the device in the paper is 1-1.5s, we plan on having a much faster response time of <0.5s
# Extensions
- The ability for the users to input the exact frequencies they are susceptible to. This can be done through Bluetooth or with an extra serial debugger module to input this data.
- An IMU can monitor for seizure-like body movements and trigger a safety response, alerting the user’s emergency contact.
- A display that provides a warning before any optical attenuation takes place and allows users the option for manual overriding.

# Links

- [EpilepSee Paper](https://ora.ox.ac.uk/objects/uuid%3Aabb3258d-264e-42e0-8967-40408397f96f/files/scj82k980j)
- [Small Liquid Crystal Light Valve – The Pi Hut](https://thepihut.com/products/small-liquid-crystal-light-valve-controllable-shutter-glass)

Instant Nitro Cold Brew Machine

Danis Heto, Mihir Vardhan

Instant Nitro Cold Brew Machine

Featured Project

# Instant Nitro Cold Brew Machine

Team Members:

- Mihir Vardhan (mihirv2)

- Danis Heto (dheto3)

# Problem

Cold brew is made by steeping coffee grounds in cold water for 12-18 hours. This low-temperature steeping extracts fewer bitter compounds than traditional hot brewing, leading to a more balanced and sweeter flavor. While cold brew can be prepared in big batches ahead of time and stored for consumption throughout the week, this would make it impossible for someone to choose the specific coffee beans they desire for that very morning. The proposed machine will be able to brew coffee in cold water in minutes by leveraging air pressure. The machine will also bring the fine-tuning and control of brewing parameters currently seen in hot brewing to cold brewing.

# Solution

The brew will take place in an airtight aluminum chamber with a removable lid. The user can drop a tea-bag like pouch of coffee grounds into the chamber along with cold water. By pulling a vacuum in this chamber, the boiling point of water will reach room temperature and allow the coffee extraction to happen at the same rate as hot brewing, but at room temperature. Next, instead of bringing the chamber pressure back to atmospheric with ambient air, nitrogen can be introduced from an attached tank, allowing the gas to dissolve in the coffee rapidly. The introduction of nitrogen will prevent the coffee from oxidizing, and allow it to remain fresh indefinitely. When the user is ready to dispense, the nitrogen pressure will be raised to 30 PSI and the instant nitro cold brew can now be poured from a spout at the bottom of the chamber.

The coffee bag prevents the coffee grounds from making it into the drink and allows the user to remove and replace it with a bag full of different grounds for the next round of brewing, just like a Keurig for hot coffee.

To keep this project feasible and achievable in one semester, the nitrogenation process is a reach goal that we will only implement if time allows. Since the vacuum and nitrogenation phases are independent, they can both take place through the same port in the brewing chamber. The only hardware change would be an extra solenoid control MOSFET on the PCB.

We have spoken to Gregg in the machine shop and he believes this vacuum chamber design is feasible.

# Solution Components

## Brewing Chamber

A roughly 160mm tall and 170mm wide aluminum chamber with 7mm thick walls. This chamber will contain the brew water and coffee grounds and will reach the user-set vacuum level and nitrogenation pressure if time allows. There will be a manually operated ball valve spout at the bottom of this chamber to dispense the cold brew once it is ready. The fittings for the vacuum hose and pressure sensor will be attached to the screw top lid of this chamber, allowing the chamber to be removed to add the water and coffee grounds. This also allows the chamber to be cleaned thoroughly.

## Temperature and Pressure Sensors

A pressure sensor will be threaded into the lid of the brewing chamber. Monitoring the readings from this pressure sensor will allow us to turn off the vacuum pump once the chamber reaches the user-set vacuum level. A temperature thermocouple will be attached to the side of the brewing chamber. The temperature measured will be displayed on the LCD display. This thermocouple will be attached using removable JST connectors so that the chamber can be removed entirely from the machine for cleaning.

## Vacuum Pump and Solenoid Valve

An oilless vacuum pump will be used to pull the vacuum in the brewing chamber. A solenoid valve will close off the connection to this vacuum pump once the user-set vacuum pressure is reached and the pump is turned off. To stay within the $100 budget for this project, we have been given a 2-Stage 50L/m Oil Free Lab Vacuum Pump on loan for this semester. The pump will connect to the chamber through standard PTFE tubing and push-fit connectors

If time allows and we are able to borrow a nitrogen tank, an additional solenoid and a PTFE Y-connector would allow the nitrogen tank to connect to the vacuum chamber through the same port as the vacuum pump.

## LCD Display and Rotary Encoder

The LCD display allows the user to interact with the temperature and pressure components of the brewing chamber. This display will be controlled using a rotary encoder with a push button. The menu style interface will allow you to control the vacuum level and brew time in the chamber, along with the nitrogenation pressure if time allows. The display will also monitor the temperature of the chamber and display it along with the time remaining and the current vacuum level.

# Criterion For Success

- A successful cold brew machine would be able to make cold brew coffee at or below room temperature in ten minutes at most.

- The machine must also allow the user to manually control the brew time and vacuum level as well as display the brew temperature.

- The machine must detect and report faults. If it is unable to reach the desired vacuum pressure or is inexplicably losing pressure, the machine must enter a safe ‘stop state’ and display a human readable error code.

- The reach goal for this project, not a criterion for success, would be the successful nitrogenation of the cold brew.

Project Videos