Project

# Title Team Members TA Documents Sponsor
42 Position-Sound Accurate Electric Snare Drum
Kadin Shaheen
Oscar Li
Tim Dager
Aniket Chatterjee design_document1.pdf
proposal1.pdf
Team Members:
Tim Dager (timcd2)
Kadin Shaheen (kadinas2)
Oscar Li (hongyil9)

Problem

Modern electronic snare drums are unable to replicate the detail of sound that changes continuously based on how and where you strike an acoustic drum. They generally relegate hits to one of three zones: head, center, or rim, with some degree of velocity sensitivity. The issue with determining strike zones through dedicated zone sensors is a limited resolution sound profile.

Our goal is to develop a digital snare that utilizes time difference of arrival (TDOA) with piezoelectric sensors to pinpoint drum strikes to a centimeter level of precision to realistically emulate the sound profile of an acoustic drum. Further positional detection improvements and low-latency benchmarks will be treated as stretch goals.

Solution

We will utilize three piezoelectric sensors with analog processing components feeding to an STM32 microcontroller to measure and calculate strike position. The piezos will be placed equidistantly from the center of the drum mesh and will detect the first arrival of a wave to triangulate the strike position. Signal processing will account for reflected waves from the rim of the snare drum as well as attenuation across the mesh. The STM32 microcontroller will be used for its DAC module, digital signal processing, and communication through USB as a MIDI device. The drum pad will divide into four subsystems including the piezo sensor array, analog pcb, MCU, and power subsystem.

Solution Components

Subsystem 1: Piezo Sensor Array

A set of concentrically spaced, commonly available piezo vibration sensors will be mounted to an inexpensive single zone mesh drum. A minimum of three sensors are needed to perform the time difference of arrival (TDOA) algorithm, but more may be added (while maintaining concentricity) to allow for cross referencing if necessary. The placement of these sensors will mimic implementations of TDOA systems in similar applications.

Subsystem 2: Analog PCB

An analog preprocessing board will take inputs from each of the piezo sensors, and convert them into usable analog inputs in the range of the microcontroller. It will consist of an op-amp as an impedance buffer for each piezo, a voltage translator to align our analog signal with the specification of the microcontroller (0 - 3.3v for STM 32), and a clamping circuit to protect from voltage spikes.

Subsystem 3: MCU (computation + data output)

An STM32 with a 12 bit ADC will be used to accept the three analog signals, perform the TDOA algorithm to compute a positional estimate, and generate the appropriate usb signals as MIDI, that the user may use for triggering drums, or other purposes.

Subsystem 4: Power

The power subsystem will take input from a USB source and output correct voltage levels to the Analog PCB Subsystem and to the MCU. The device will be powered from a 5V USB input with USB-C preferred. A 3.3V onboard regulator will generate the primary logic and analog supply rail for the STM32 microcontroller and other 3.3 V compatible components.

The subsystem will include input protection, local decoupling/bulk capacitors to maintain a stable 3.3V rail. If later component selection requires an additional power supply voltage for the analog subsystem, or other circuitry, an additional regulated rail may be added.


Criterion For Success

The drum must be capable of distinguishing between a minimum of 10 distinct radial zones, each of which may be mapped to different midi notes to confirm zone accuracy
Drum pad USB device endpoint is recognized as a MIDI interface
Net latency measured from impact time to USB handshake should be minimal enough to avoid causing an audio-tactile mismatch (delay between strike and sound) sensed by the player- roughly 40ms.

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