Matthew Kwee – Status Report for 12/5

Since the last report, our team’s progress was limited by PCB shipment delays, but I made progress on designing a usable PCB casing for the final product. After importing the transciever/IMU PCB model and built cylinder/box stand-ins for the charging coil, charging PCB, and battery, I developed two basic shells that cleanly fit together and can be sealed with epoxy or other adhesive. While the design process would be simple for anyone moderately familiar with 3D modeling, most of my time designing the casing was spent learning FreeCAD’s UI and capabilities.

Initial Bottom Shell:

Initial Top Shell:

Because a cylindrical capsule with nowhere to attach a strap cannot be easily strapped to an athletes wrist[citation needed], I added two strap handles, then filleted the edges for comfort.

Additionally, I placed four tabs on the top half of the casing to hold the main PCB in place to prevent it from shifting while in use, which would create unnecessary noise.

I have verified that none of the components clip into each other within the CAD software – all of the electrical components (Top to bottom: main PCB, LiPo battery, induction charger PCB, and induction charger coil) will fit in the casing with a few millimeters of space for cables.

I have exported the casing to STL files and will have them 3D-printed in the next few days so that we can finish the device ASAP.

Over the course of the semester, most of the unit tests I conducted were for the web-app’s functionality – such as verifying intended behavior using dummy swimmer telemetry data. None of these tests changed the fundamental design of the project, but they helped me debug potential issues before they became problematic.

We are unfortunately behind schedule due to PCB shipment delay (as of the time of writing, the boards have been shipped from Hong Kong to Pittsburgh but have not yet been delivered to CMU’s ECE department), but should be able to integrate our subsystems before the final deadline. I have set aside significant time next week to ensure that the project is finished on time.

Team Status Report for 11/21

This week, our team has fully integrated the base station with the web-app, and is ready to finish integrating the wearable device with the base station. Jeffrey loaded the web-app onto the Raspberry Pi 4 base station and successfully connected to it via USB. By feeding pre-recorded swimming data Jeffrey and Matthew collected at the Cohon University Center pool into the app, we validated both the webapp’s functionality and the wearable prototype’s functionality. Additionally, Jeffrey updated the stroke detection algorithm to take into account both the magnitude of acceleration and the rotational position, greatly reducing error.

Haowen has developed firmware for the nRF52833 DK (our transciever chip) such that we can flash it onto the wearable PCBs – we should be able to do this for the prototype if the PCB chips do not arrive on schedule. She has also been developing a solution for the ANT-B10’s 25-device limitation; because each device will spend approximately half of the time under water, we can re-connect to devices above the surface, taking advantage of the ~50% duty cycle. Each device will periodically advertise its availability and perform a handshake with the base station before sending its motion data. While this will not matter for our demonstration (we will only have 2-3 devices to test), we believe that this is still a good design choice.

Currently, our biggest risk is the wearable PCBs being delayed in shipping. To mitigate this risk, we have been conducting testing and developing firmware for the much larger prototype device, and have determined that it can serve the same functions as the PCBs, should they not arrive in time. While it does not meet the size and comfort requirements, it is more than enough to demonstrate the device’s telemetry, which we can showcase alongside the final wearable’s casing, which will represent the device’s final dimensions.

While our overall goals have not changed, the smaller details of our plan are being adjusted to account for integration risks/issues.

Matthew Kwee – Status Report for 11/21

This week, I modified the web dashboard and implemented additional test cases in preparation for integrating it with the Raspberry Pi 4 base station, assisted Haowen in conducting signal tests between the nRF transciever chip for the wearable and the ANT-B10 antenna array on the base station, and began designing a casing for the PCB wearables we ordered, which I will pick up from the ECE office on Monday.

During mandatory labs, I helped Haowen run telemetry tests to measure the signal strength between the prototype transciever and the base station, but the bulk of my work this week revolved around the wrist-worn wearable device’s casing, which requires waterproofing and sealing. I have settled on a size of 32x42x16mm or smaller to minimize water drag, with material thickness of 2mm. The 3D printed casing must be made from SLA resin, as FDM printing leaves microscopic pores in the material, defeating any waterproofing measures we take. Additionally, we will layer sealant around the casing, permanently waterproofing the device such that it does not need to be disassembled.

I am still on track to complete my responsibilities; next week I will work on finalizing and printing the casing design, and finishing the web-app design, as well as finishing integrating our three sub-systems into the final product.

Over the course of this project, I found that the biggest challenge was designing device specifications before manufacturing, and the practical application of the ECE principles I have learned. In particular, while learning how to use KiCad to design the PCB for the wearable device, I found physical laws such as impedance and capacitance dictating where components were placed, and how long/thick power and signal traces could be.

Matthew Kwee – Status Report for 11/14

This week, I completed a variety of “odd jobs” with the end goal of aligning our three sub-systems into one cohesive product.

For the interim demo, I implemented a simple GUI to visualize and verify that Haowen’s Angle-of-Arrival measurements between the device’s transciever chip and the ANT-B10 antenna array were accurate; we demonstrated that the angle detection was acceptable during said demo. Additionally, I placed the Purchase Order Form for the JLCPCB order with guidance from my team’s assigned TA; the assembled PCBs will arrive in under a week and a half.

Later in the week, we noticed that the main components base station setup (Raspberry Pi 4 + ANT-B10 array) were prone to losing connection; during a brief visit to TechSpark, I reinforced these connections with hot glue (taking care not to damage or permanently attach the RPi4, since we received it as a loan from the ECE department). Additionally, I helped gather motion data for stroke detection with Jeffrey’s help using the wearable prototype by utilizing the Cohon University Center’s swimming pool during free swim hours. After the data was recorded, we noticed minor condensation on the prototype; in order to reduce moisture inside the final wearable device’s casing, I am considering placing a silica gel packet next to the device’s PCB.

I am still on track to complete my responsibilities. Next week, I plan to design a basic sealed casing for the wearable device, which I will stress-test with physical shocks followed extended water exposure to verify that the waterproofing is acceptable. This is necessary to avoid damage to the wearable devices, and more importantly to mitigate the risk of electric shock and LiPo battery overheating/combustion.

Matthew Kwee – Status Report for 11/7

This week, I exported the wearable device’s Printed Circuit Board to Gerber format, completed the Bill of Materials and Component Placement Documents to send to JLCPCB (our selected PCB manufacturer), fixed an error I made with the pinout of the motion sensor chip (IMU), and worked out component placements.

When I began to draft the order with JLCPCB, I noticed a discrepancy between the orientation of the IMU chip and the footprint; upon re-reading the datasheet for the NINA-B406, I found that I had incorrectly placed the pins clockwise for the chip’s footprint, while the actual chip’s pins are oriented counter-clockwise. After re-creating the footprint and rerouting the power/signal traces, I was able to save an order in JLCPCB’s cart and receive a quote for the cost of the PCBs.

Because we are constrained by our $600 budget, the cost-efficiency of our PCBs is lower than we would like. For 5 PCBs, the cost-per-unit is approximately $42 – while this does not meet our desired $40-per-unit cost, I believe that potential bulk orders will lower the per-unit cost significantly.

In preparation for the interim demo this coming Monday, I will be meeting with my team tomorrow to integrate our hardware and software systems as best we can.

While I am still slightly behind schedule, the webapp’s dashboard is mostly complete, hopefully allowing us to present a functional prototype in the next few days.

Team Status Report for 10/31/2026

Overall Summary

This week, our team finalized the wearable PCB layout for manufacturing export, validated the core wearable firmware modules, and established our Bluetooth direction-finding toolchain. While working around limitations such as RF keepout rules for the NINA-B406 (our transciever chip), we completed and verified our final PCB design, replacing vertical pin I/O with through-hole pads to minimize water resistance. Core wearable firmware (including CRC16 verification, packet serialization, and ring-buffer management) passed stress tests, and small simulated swimming IMU datasets were recorded across all four strokes. On the direction-finding front, we configured the nRF Connect SDK, built tag firmware, and developed automated test scripts for validation.

Key Progress

Hardware

Matthew: Created the 24x32mm wearable PCB layout, passing all design rule checks and preparing files for Gerber export. Optimized board z-height and water resistance by replacing vertical battery and Qi pin headers with through-hole solder pads. Configured copper clearances and RF ground fill around the NINA-B406’s internal trace antenna, widened +3V3, V_BAT, and GND power traces to minimize impedance, and integrated as many hardware test points for power rails/debug lines as possible.

Firmware & Embedded Systems

Jeffrey: Implemented, debugged, and validated core wearable firmware, including CRC16 checksum calculation, timestamp/IMU/battery packet assembly, and a ring-buffer structure designed to buffer telemetry while submerged and burst-transmit upon surfacing. Validated routines and edge cases with testbenches and random stress tests.

Haowen: Configured nRF Connect SDK v3.4.1 and compiled direction_finding_connectionless_tx for the nRF52833 DK.

Signals & Base Station:

Haowen: Reviewed the ANT-B10 Manual and created anchor_tool.py supporting anchor configuration for verification.

Jeffrey: Connected the Raspberry Pi 4 base station to the ANT-B10 antenna array to supply power and establish the communication interface. Conducted initial dry-land wearable stroke simulations with Matthew, gathering baseline 6-axis IMU data across freestyle, backstroke, breaststroke, and butterfly; confirmed that stroke counting and classification are viable via planar motion filtering and peak detection.

We are largely on schedule for baseline testing with the prototype. While the webapp dashboard is running slightly behind, we believe that prioritizing the hardware is more important at this point in time.

Matthew Kwee – Status Report for 10/31

This week, I finalized the wearable PCB design, and am ready to export it to a Gerber file for fabrication with a manufacturer.

The wearable PCB had a few design constraints I needed to work around. First, the overall PCB dimensions were 24x32mm – making it significantly larger would add uncomfortable water resistance to the final wearable. Additionally, the NINA-B406 (our nRF52833 transceiver chip) required special consideration regarding its own placement and the placement of other components.

The NINA-B406 (U_MCU1 on the circuit schematic) uses an internal metal sheet trace antenna rather than an external antenna. This means that any unrelated components or traces around this area can interfere with its signal, increasing noise. To mitigate this issue, I minimized the amount of metal near this part of the component, removing copper fills and only including the necessary GND traces in this area. Note that the 3V3, V_BAT, and GND power traces are thicker than the other signal traces to reduce impedance.

After drafting the circuit schematic and creating an equivalent initial PCB design, I found that my choice of connecting the LiPo battery and charging assembly with pins extending upwards from the circuit board would significantly increase the device’s thickness, in turn increasing the device’s water resistance, which goes against one of our fundamental design requirements.

To mitigate this issue, I made the decision to replace the vertical pins with through-hole solder pads, which reduced the board thickness but occupied more horizontal area. Fortunately, there was still barely enough horizontal area for the necessary components and debug test-points, the placements of which are shown below.

I probably could have done better with the via placements but I was running out of space

I have done my best to verify the integrity of my design, and I believe that it will not cause any potential issues. However, I have included as many oscilloscope test points as possible for debugging.

While I am still slightly behind schedule, I believe that I should be able to complete my next priorities (finalizing the webapp’s live dashboard and helping set up the base station) without too much issue.

Matthew Kwee – Status Report for 10/24

This week, I deviated from my expected schedule – after consulting with a course instructor and TA, I decided to develop the PCB instead of setting up the base station so that I can place an order with a PCB manufacturer and receive the final wearable PCB as soon as possible.

In addition to making a small change to the wearable device’s design, I drafted the schematic for the wearable PCB with KiCad, an open-source tool for electronic design.

When re-reading the specifications for the NINA-B406 (our nRF52833 transceiver chip), I found that the NINA-B40 series has open CPU architecture, allowing it to run custom programs. This means that we can omit the Seeed XIAO RP2040 microcontroller and write code for the NINA-B406 instead. Writing code for the B406 will likely be more difficult than for the XIAO, omitting the XIAO will allow us to slightly reduce the size and weight of the final wearable and cut about $4-5 off the device’s unit cost, which is approximately 10-15% of its previous estimated cost. Additionally, without the XIAO, we expect significantly reduced power consumption, increasing the device’s battery life by a few hours.

In order to keep the schematic tidy, I broke the design into four “blocks”: Power (LiPo battery and induction charging coil), Voltage Regulator (reduces the battery’s 3-4V to >=3.3V), IMU Subsystem (powering and receiving signals from the ST LSM6DSOX 6-Axis IMU), and Processing/Transceiver (the NINA-B406 subsystem, plus a debug connector). These blocks should be visible in the below KiCad screenshot.

Unfortunately, despite my progress, I am now slightly behind my ideal schedule, as I did not anticipate KiCad’s learning curve – although I certainly should have expected as much. As such, I have not yet created the full PCB footprint/traces that I will need to send to the PCB manufacturer. In the next week, I hope to finalize the wearable design and place the order, ideally receiving the final circuit boards in the next couple weeks.

Matthew Kwee – Status Report for 10/11

This week, in addition to writing the Design Review document with my team, I started work on the performance history utilities for the web-app, drafting databases and Django templates.

Much of my contribution to the Design Review document involved putting existing, unrefined ideas into clear, concise terminology, particularly deriving the quantitative Design Requirements and Trade-Offs from qualitative ideas such as “user comfort/convenience” and “low-maintainance systems.”

Additionally, I assisted Jeffrey in assembling the wearable prototype, soldering the power shim to the RPi Pico* and covering as many sharp edges with hot glue as possible – the glue is necessary because we will be testing the prototype device in the CUC pool during free swim hours and would like to minimize the risk of water leaking into the plastic bag housing the device.

Below is the tentative database relational schema for the site:

 

I am still on schedule. Next week, I plan to complete the web-app’s View History functions and move on to setting up the Raspberry Pi that we will use as the base station, so that we can begin testing ASAP.

*If anything goes wrong with the Pico’s connections, I accept full responsibility and apologize in advance I am confident that my ability to solder connections was adequate for this task – there should be no issues.

Team Status Report for 10/3

Overall Summary:

This week, we delivered our design review presentation and focused on component selection, toolchain configuration, and prototyping our initial development hardware. We verified the functionality of our core dev boards (u-blox ANT-B10, Raspberry Pi Pico WH, and FPGA), established communication with the FPGA’s Linux core via SSH, and finalized key wearable components, such as selecting the low-power ST LSM6DSOX IMU on a breakout board to de-risk prototype assembly. We also set up our Nordic direction-finding software environment. Our project is on schedule for fabricating the prototype next week to gather data.

Key Progress

Design Presentation:

Haowen + Matthew: Assisted in writing the Design Presentation slide deck.

Jeffrey: Wrote and delivered the Design Presentation on Wednesday.

Signals:

Haowen: Unboxed and verified the u-blox ANT-B10 antenna array, mapped SWD and UART pin headers, and configured the nRF Connect SDK environment to prepare for flashing the direction-finding firmware and testing 20 Hz BLE Constant Tone Extension (CTE) packet broadcasts from the Pico WH.

Software:

Matthew: Maintained development trajectory for the web platform’s upcoming historical data portal, setting up infrastructure for serving performance insights to users.

Jeffrey: Established SSH access to the FPGA’s Linux environment and began implementing a C benchmark suite on the ARM core to evaluate processing latency against FPGA SystemVerilog logic.

Hardware:

Matthew: Evaluated multiple IMUs and selected the ST LSM6DSOX 6-axis chip for its ultra-low power consumption (~0.5 mA) and decently low output error.

Jeffrey: Validated basic power and GPIO operation across all received microcontroller boards.

New Risks + Mitigation: Dead Reckoning Drift vs Angle of Arrival Inaccuracy

Tracking swimmer position down the lane relies on combining wearable IMU dead reckoning with Bluetooth Angle of Arrival (AoA) direction finding at the poolside base station. However, both modalities face compounding error sources. Dead reckoning suffers from exponential integration drift within seconds of forward swimming, while AoA suffers from signals reflecting off the water’s surface, and periodic signal loss when the wearable is submerged

We plan to manage these issues through a combination of the two systems:

1. Swimmers should be physically restricted to linear lanes, and cannot deviate from a 1D line by more than 1.5m. Rather than solving for 2D/3D positions, we will project AoA angle rays directly onto the swimmer’s known 1D lane vector.
2. The continuous IMU dead reckoning model will be updated periodically whenever the wearable surfaces and transmits a valid AoA packet.
3. Zero-Velocity Reset: Every time the IMU detects an impulse from a swimmer pushing off the wall, their spatial position and velocity will be hard-reset to the known physical pool boundary, clearing all accumulated dead-reckoning drift every lap.

 

No significant changes to the schedule were made at this point in time.