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.

Jeffrey’s Status Report for 11/21/2026

This week, I completed several tasks for the integration of our system, as well as continued to add functionality and improve the accuracy of our system.

For total system integration, I setup the Raspberry Pi anchor station, transferred/ran all the firmware for the Pi on SSH, installed Matthew’s web dashboard code onto it, and setup the connection between the output of the firmware onto the web dashboard hosted by the Pi. Now, the pipeline from anchor/wireless input to the web dashboard, which other devices are able to connect to, is complete. It was validated real data from our pool testing with simulated anchor input, and was able to show the motion of the swimmer live on the web dashboard.

To do so, I expanded the firmware on the Pi by creating the script streaming each tag to the web dashboard, as well as created the file to upload the pool’s configuration to the dashboard. I also completed several accuracy improvements. As mentioned last week, the formula was overcounting several strokes as two strokes due to the change in motion in the arm in air versus in water. I adjusted the formula to track the continuous rotation along the swimmer’s axis in addition to looking at the peaks of gyroscopic motion. Together it weigh both factors to better see what peaks are a continous stroke. That reduced the margin of error from our real data from ~43% to ~15%. To further reduce the number, I implemented wall detection firmware that will take the swimmer’s position and IMU data to determine when the swimmer touches the wall. It can then know to ignore motion associated with wall touches, which should further reduce the amount of overcounted strokes. Wall detection will also help with our location accuracy, as it provides a reference point to where exactly the end of the pool is. Another major firmware change I worked on was converting function calls in my c code into Zephyr formats to get those to run on the NRF, since our final prototype doesn’t have a Pico.

My progress is on schedule. For now, I have done most of the firmware of my system, so I will spend the remaining time working with the rest of the team towards full system integration. That will include both the physical setup of the devices, pool testing, further fine tuning of my system to improve accuracy, and work towards deliverables like the final presentation and report.

Over the course of this project, I learned a lot about the practical integration of systems, which differs a lot from studying the details of how components work and such. For example, I am currently taking a MEMS class and part of the class is studying how devices like accelerometers work; it is a completely different task to take an IMU and learn how to process the data it outputs and connect it to other devices. 

Overall, I would say the greatest challenges were not limitations of ECE knowledge, but the task of getting all the different interfaces to connect, (such as converting c code to run on a Pico, getting the Pico to convert into binary and then into Zephyr for the NRF). And on the anchor side the conversion from reading serial into Python, and then converting them into webhook calls for the web dashboard. All of that effort went into just converting formats. There’s also the physical aspect of integration challenges. During the planning phase, I had to search digikey extensively to find the right components to connect the various components we were buying. There were all sorts of different variables to consider such as connector layout and voltage it runs on. All that planning was necessary to reduce the orders needed and save on shipping costs.

Our antenna adapter illsutrates the challenges of that. No specific harness existed, so we would have to build it from scratch, so I researched the correct connectors, pins, and UART boards to create the adapter. But during physical assembly, we found that the connector did not give us enough pitch to solder individual wires to pins. So I again scoured DigiKey to find an alternative connector that had different pitched output pins. And once we got the components I had to consult the datasheets to know which pins to connect and so on.

A huge part of my learning in this project was just how to efficiently find resources to handle those types of practical challenges. I learned how to efficiently find datasheets for components and know where to look to find the information I’m looking for, as well as find and understand guides for setting up and using development tools/libraries to convert between all sorts of formats. I also found that I did have to utilize a lot of informal sources to find solutions to specific problems. I mentioned the antenna connector above, and the replacement component that worked well I actually found through a link on some random forum. In general, this course taught me a lot about the practical challenges of integrating a multifaceted system, which has been very different than the conceptual learning done in courses.

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.

Updated Schedule – Interim Demo

Week 11:

Haowen:

Tag firmware v3 and IMU. The nRF receives Jeffrey’s UART frames, checks the CRC, and forwards each packet in the periodic advertising data. Verify end to end through the anchor. Measure how enclosures affect the signal.

Jeffrey:

Continue working on Pi-side firmware to take AoA data and combine with motion data to extrapolate lane positioning, as well as firmware for wall detection. Improve accuracy of stroke detection by implementing EKF.

Matthew:

Finalize order for PCBs; 

Group:

Work to integrate the wireless system and conduct more real-world testing. Interim Demo

Weeks 12/13:

Haowen:

AoA accuracy test (7 angles x 4 distances, 500 frames each). Target: mean absolute error of 2.45 degrees or less and standard deviation of 0.8 degrees or less. Move the anchor tool to Jeffrey’s Pi. Test with 2 to 3 tags.

Jeffrey:

Transfer and Pi firmware on the actual Raspberry Pi. Work to integrate Pi’s firmware with anchor’s serial stream, enabling us to test the end to end integration from wearable through wireless connection to anchor, which will turn data into usable metrics. Work with Matthew to host web portal on an anchor computer.

Matthew:

Conduct stroke measurements and other testing in CUC pool during free swim hours; 3D-print PCB casing. Finalize webapp to accept input from base station.

Group:

Continue system integration and conduct accuracy testing/validation of metrics. Final Presentation Slides

Week 14:

Jeffrey:

Buffer time to continue debugging any issues that come up during integration or continue developing firmware to improve accuracy/performance/latency. Work on the physical setup of components (anchor/computer). Work with Matthew to transfer firmware from Pico prototype to PCB final device.

Haowen: Pool test using the Pi: range, adjacent lanes, packet loss under 5 percent, end-to-end latency under 1 second with the dashboard. Wrap up the data.

Matthew:

Finalize project design; work with team for final testing and assembly.

Group: Further real-world testing and fine tuning of systems to improve accuracy. Prepare Final Demo/Report 

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.