Project

# Title Team Members TA Documents Sponsor
40 Variable Speed Running Music Device
Alan Wan
Nithin Boopalan
Weston Heard
Jianchong Chen design_document1.pdf
proposal1.pdf
# Variable Speed Running Music Device

Team Members:

Alan Wan (alanwan2),
Weston Heard (wheard2),
Nithin Boopalan (nithinb2)
# Problem

Most people bring their phone on a run to listen to music. It is big and bulky, and unless you have a perfect playlist, there isn’t going to be music that syncs with your running. If you do happen to have music that is the same as your pace, there is nothing to enforce that you are running at that speed.

# Solution

We intend to fix this by replacing your phone on runs with a device that can react to how fast or slow you are going compared to your intended pace, and a mode where the music will automatically adjust to the speed you are going, in case you don't want to have to worry about keeping on pace.

The device clips to your waistband and stores your music on an SD card so it doesn't move around in pockets. A motion sensor in the device picks up each step, and the device can calculate the steps per minute. It can then play a song that lines up with one’s steps, speeding it up or slowing it down slightly to keep it locked on. If the pace changes too much, it then switches to a different track instead. Everything will run on the device, so no phone or internet is needed.

## Subsystem 1, Motion Sensing

This subsystem determines the runner’s running cadence.

Running cadence usually falls between 140 and 190 steps per minute, which puts foot strikes at 2.3 to 3.2 Hz. An IMU is clipped at the hip in the device and samples acceleration at 200 Hz. The firmware in the STM32 then filters the signal to that range, removing the constant gravitational pull, and projects that reading as the direction of gravity.

Cadence is then found by autocorrelation, where the firmware compares four seconds of a signal against shifted copies of itself. Then the computed shift that best matches is used as the time it takes one stride to repeat, ie stm. This is more reliable than individual foot strikes as it uses the whole window together, so one missed step or short peak barely moves the result. The search first covers the Hz for the running range, then widens to cover walking if nothing is found. This prevents a reading of 180 spm from being labeled as walking. However, since this shift is a whole number of samples, the raw result can only land on certain values, around 2.7 spm apart at 180 spm. The STM32 then interpolates between neighboring values to get the accuracy to be within 0.3 spm.

Components:
6-axis IMU, SPI interface: TDK InvenSense ICM-42688-P
Microcontroller Unit: STM32F4 family


## Subsystem 2, Music Storage and Playback

This subsystem stores the songs and adjusts the speed to match the runner.

Songs are stored on a microSD card as uncompressed WAV files, preventing the processor from decoding MP3. Audio is read off the card using DMA, a block within the microcontroller that can move data without the processor copying, so that reading doesn’t interrupt playback. Each song’s tempo is worked out ahead of time on a computer before being saved in an index file on the SD card. The device then only has to do a lookup while running instead of processing audio for the BPM.

Tempo Matching: Tempo can be changed with WSOLA (waveform similarity overlap-add) by up to 10%. It cuts the audio into overlapping chunks and places them back closer or farther apart to change the speed. This allows for a speed change while preserving pitch. However, the further out the pace is, the worse it will start to sound, and the device will then be forced to change songs.

Target Tempo: plays songs at a targeted pace, and when the runner falls behind the set pace, a low-pass filter is placed to muffle the audio to signal falling behind and clears out as they return to pace. This provides the runner feedback without having to stop running

Components:
microSD card socket: Hirose DM3AT-SF-PEJM5
microSD card: 32 GB SanDisk High Endurance or Samsung PRO Endurance

## Subsystem 3, Audio Output

This subsystem turns the digital audio into a signal that can drive headphones. The main analog circuit design in the project.

Audio samples will travel from the microcontroller over I2S, a three-wire bus for audio, to a DAC, which converts each sample into voltage. This voltage is held until the next sample arrives, so the output appears as a staircase. They then pass through a reconstruction filter to remove the distortion before it reaches a headphone amplifier, which supplies the current that 16 to 32 ohm headphones need. This amplifier gain is capped so the output never exceeds 150 mV RMS into 32 ohm headphones.

Components:
Stereo audio DAC: Texas Instruments PCM5102A
Low-noise audio op-amp for reconstruction filter: Texas Instruments OPA1662
Headphone amplifier, no capacitor output: Texas Instruments TPA6132A2
3.5mm TRS headphone jack: CUI SJ-3524-SMT-TR

## Subsystem 4, Power

This subsystem powers the device from a single lithium cell and handles charging.

The lithium cell will fall from 4.2 V to 3.0 B as it drains, and in the process will cross a 3.3 V logic rail; a buck-boost converter can then be used so the rail remains stable as the discharge finishes. The DAC and headphone amp are fed through dropout regulators that keep the noise from the converter out of the audio. An MCP73831 charges the cell over USB-C, and a MAX17048 fuel gauge will report the charge to the microcontroller.

Components:
Single-cell lithium-polymer battery, 1000 mAh
Low-dropout regulator
Buck-boost regulator: Texas Instruments TPS63020
Battery Charger: MCP73831
Battery fuel gauge: Maxim MAX17048

# Criterion For Success

Cadence is measured within 1 spm of the true value for the range 140-190 spm. The true value can be obtained with a fixed motor setup and verified through video.

Once the device is locked onto a speed, play music to within 1 BPM of the runner’s steps per minute. Verify by checking the audio output and comparing the speed to video of the runner.

After the pace changes by 15 spm or more, change music to match th
e new pace within 10 seconds. Test both speeding up and slowing down by 15 spm or more.

Recognizes stops and starts within 10 seconds of them happening.

The device lasts at least 2 hours of continuous usage.

The device remains lightweight, under 300g, and stays clipped to the waistband over a 15-minute run.

Electric Water Blaster

Jaejin Lee, John Lee, Clark Taylor

Electric Water Blaster

Featured Project

# Electric Water Blaster

Team Members:

- clarkmt2

- jaejin2

- junhee2

# Problem

Common problems with traditional water guns are that they rely on manual pumping and squeezing, leading to inconsistent water pressure, limited range, and user fatigue. They also provide no feedback on the water level or have any interface for the users. Our project is to build a fully electric, high-pressure water blaster that aims to fix those issues and add additional features. It will deliver consistent, controlled bursts of water while providing real-time feedback along with improved ergonomics and enhanced water resistance. We will integrate intelligent electronics with a robust mechanical system to provide a more engaging and reliable experience for users.

# Solution

For our project, we will develop an electric water blaster. At a high level, it will have a 12V DC electric pump. The pump will fill the tank and pressurize the water up to 60 PSI. A solenoid valve will control the release of water to allow it to fire powerful bursts. Our project will make use of an array of sensors to detect internal leaks and the current water level of the tank. The water blaster will also feature an OLED display which will display the current state (filling, firing, idle, etc) of the water blaster to the user so they can understand what is happening at all times. The OLED display will also display the fill level of the water blaster so the user knows how many bursts of water remain in the tank. There will also be buttons below the OLED to allow the user to navigate through the menus and make adjustments to the firing logic of the water blaster. We plan to power the water blaster through an off-the-shelf battery, likely from electric tools due to its more durable and high output characteristics.

# Solution Components

## Subsystem 1: Control Board

The control board will ultimately receive all the sensor data and move through our state machine acting accordingly given the inputs from the sensors and the IO subsystems. It will interface directly with the 12V fast actuation solenoid valves, the 12V DC electric pump, the SPI display, and the IO board.

### Components Used:

STM Microcontroller - STM32G070KBT6

## Subsystem 2: Input & Output

This subsystem provides user interaction through a display, buttons, and possibly analog controls. The SPI display will show real-time information like fill level, pressure status, and firing mode, and the buttons and knobs will allow for the firing to be altered to be more powerful or less powerful using a menu. If we find additional ways to tweak the firing characteristics in testing we will add those options for the user in the final menu. This will also control the basic trigger functionality with a push button and some creatively engineered 3D-printed parts.

### Sensors & Components Used:

OLED SPI Display – NHD-0420CW-AB3 – Displays system status, fill level, and settings.

Physical Buttons & Potentiometer – TS02-66-43-BK-160-LCR-D, PTV09A-4020U-B103-ND

– Allow user control over burst length, power level, and menu navigation.

Push button – TS02-66-43-BK-160-LCR-D – Trigger for water blaster

## Subsystem 3: Battery

The battery subsystem will provide the power for the entire water blaster. We currently would like to use some sort of tool battery due to its characteristics like high current ratings and a relatively low voltage. This battery subsystem would likely be around 18V and would then be stepped down to the 12V we need for the electric pump, solenoid valve, and power input on the control board.

### Components Used:

Battery - Milwaukee® M18™ RedLithium™ Battery XC5.0

12V DCDC – COM-18732 – Converts our 18V battery output to 12V

## Subsystem 4: Frame & Shell

The frame and shell house and protect all components from water leakage. We will 3D-print our shell for precision, and use TPU-sealed buttons and NPT fittings to prevent any water leakage.

### Features & Components:

TPU-Sealed Buttons & Covers – Prevent water ingress.

3D-Printed or Composite Shell – Ensures lightweight durability, potentially carbon fiber or fiberglass

Conformal Coating – MG Chemicals - 419D-55ML 419D Premium Acrylic Conformal Coating – Protects electronics from potential moisture exposure.

## Subsystem 5: Sensor Array

The sensor array will monitor various signals throughout the water blaster. Currently we would like to track for water leaks inside so we can safely shut off the device. To do this we will use water sensors. A larger part of the sensor array is the water level tracking. We currently have a few ideas but will need to investigate further before we decide on a final implementation. The current ideas are for an array of ultrasonic sensors to approximate the fill level, an LED and a photoresistor to determine the presence of water based on the measured resistance, and a pressure sensor at the bottom of the tank to estimate the weight of the water and therefore the volume of the water.

### Sensors Used:

Water Leak Sensor – 101020018 water sensor – Detect leaks inside the frame of the water blaster

Ultrasonic Sensor (Optional) – – Estimate how much water is in the tank

Pressure Sensor (Optional) – MHR01305PBMNNEAA01 – Measures tank pressure for optimal pump operation.

Flow Sensor (Optional) – 114991172 – Measures water input and output to track fill level

## Subsystem 6: Pump, Solenoid Valve & Tank

This subsystem handles water pressurization and delivery. A 12V self-priming diaphragm pump will pressurize water up to 60 PSI, and a fast-actuating solenoid valve will control short, high-powered bursts. The tank will store pressurized water and be monitored for safe operation.

This subsystem is responsible for filling the reservoir, pressurizing the water, and ultimately firing it from the water blaster. It will make use of a 12V self-priming diaphragm pump rated for up to 60 PSI.

### Sensors Used:

12V DC Electric Pump - HIGH FLO 12 DC Electric Electric 12 Volt Sprayer Pumps - fills the tank and pressurizes the water

12V Fast actuation solenoid valve – 1528-1280-ND – Opens and closes to release a burst of water

Flow Sensor (Optional) – 114991172 – Measures water output for performance tuning.

# Criterion For Success

The goals we would like to meet for our project to be considered complete are as follows:

- Consistent water bursts

- Distance coverage of over 20ft

- Complete frame of water blaster that houses all the components and is leak resistant

- A screen that displays the current state of the blaster based on sensor data and timing as well as buttons to navigate the configuration menus

- Accurately detects leaks and shuts down accordingly

- Tracks water level and remaining shots

Project Videos