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.

Haowen’s Weekly Status Report (Week 12)

This week, I worked on integrating the software and testing it on my nRF52833 DK. I first went through Jeffrey’s Zephyr code to understand how IMU data is read, stored in the ring buffer, and converted into packets. I then implemented ble_set_payload() to connect the encoded packets to the periodic BLE advertising process. I also set up two build configurations so the firmware can run with either synthetic data or real IMU data.

I spent roughly 14 hours this week on this project.

  • Code integration and debugging: 4 hours
  • Firmware build and DK validation: 3 hours
  • Packet validation tools: 2 hours
  • AoA analysis tools: 3 hours
  • PCB review and documentation: 2 hours

I successfully built and flashed the firmware in synthetic data mode on my DK. I ran it continuously for 10 minutes and also tested it after powering the board off and on again. The logs showed no errors in packet generation, encoding, buffer management, or advertising updates. I also confirmed that the real IMU configuration compiles successfully, although I have not tested it with the physical sensor yet. In addition, I checked the packet format, which consists of an 8-byte header, 12 bytes per sample, and a 4-byte footer. The firmware supports both 5-sample and 6-sample packets, with total sizes of 76 and 88 bytes. I also wrote a PC-side Python script to check packet length, CRC, and sequence numbers. It passed validation with 1,000 generated packets.

Besides the firmware work, a Python tool for AoA data analysis also groups measurements by file, tag, and antenna, and generates statistics and time-series plots. It can also calculate MAE when reference angles are available. I tested the tool using two existing CSV files, although those datasets did not include reference positions, so I could not use them to evaluate positioning accuracy. I also organized the integrated code, build instructions, and usage notes, and reviewed the PCB documentation to identify the changes needed for GPIO assignments, LEDs, clock settings, and logging.

The software integration and initial DK testing are progressing as planned, but the hardware testing is not finished yet. I still need to test the integrated firmware with the ANT-B10 receiver, verify real IMU data on Jeffrey’s device, and collect AoA measurements at known angles and distances. The firmware also needs to be adapted and tested on the final PCB. These tasks depend partly on coordinating with my teammates and accessing the hardware. I have prepared the code and testing tools, so next week I plan to focus on completing the receiver and IMU tests first, followed by initial AoA experiments. I will also start adapting the firmware to the final PCB and document any issues found during testing.

During this work, I became more familiar with the Zephyr codebase and how BLE periodic advertising is connected to sensor data and packet generation. I also learned more about packet validation, CRC checks, and processing AoA measurement data in Python. Most of this knowledge came from reading the existing code, checking Zephyr documentation, looking at runtime logs, and testing individual parts of the implementation. When developing the analysis scripts, I also referred to Python documentation and online examples, then tested the results using existing CSV data. These hands-on tests helped me understand the code and find issues before moving on to testing with the actual hardware.

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.

Team Status Report for Week 11

Haowen finished the main part of the tag data path. The firmware can now receive Jeffrey’s sensor packets over UART, check the CRC, and discard packets that are corrupted. Valid packets, up to 88 bytes, are then included in the Bluetooth advertisement. The 160-microsecond tone used for angle measurement continues running at the same time. I tested this using a frame generator and on the actual board.

Jeffrey and Matthew also collected pool data at the Cohon pool this week. They recorded all four stroke types and counted the laps by hand. The current algorithm counted almost twice as many strokes in the water as it should. The thresholds were originally tuned using movements on land, which are different from actual swimming movements. Jeffrey is now using the recorded pool data to adjust the algorithm.

On the Raspberry Pi side, the software can receive messages from the anchor and separate the IMU data from the angle data. It also converts the angles into positions and lane information, filters noisy readings, and uses an extended Kalman filter to fill in missing data. We tested this with recorded session data. The connection to the web portal is still being worked on.

For the hardware, we placed the PCB order. The assembled boards are expected to arrive in less than a week and a half. We also reinforced the connections on the base station after experiencing some connection dropouts.

Risks and How We Are Handling Them

One concern is that the PCB may arrive later than expected, since the delivery date is close to Thanksgiving. To avoid holding up the project, we have already prepared the firmware for the same chip on the development board, and the required build versions are ready. If the PCB does not arrive in time, we can continue the pool tests with the current working wearable and test the PCB later in the lab.

Waterproofing and battery safety are another concern. We found condensation inside the prototype, so we are adding a sealed casing and a silica gel packet. We also plan to test the casing with shocks and longer periods of water exposure. If the casing is not ready for the demo, we will use a double-sealed bag while keeping the battery protection circuit in place.

The stroke counting algorithm also needs more work. The thresholds that worked on land caused the system to count too many strokes in the pool. Jeffrey is adjusting the thresholds using the recorded swimming data. We will then test the updated version on a new session rather than using only the data used for tuning. If the accuracy is still below the target, we will report the results separately for each stroke type.

Wireless reliability is another issue. In the initial test, the anchor received about 92% of the tag’s transmissions, and it can track up to 25 tags at the full update rate. We plan to send each packet more than once and test shorter advertising intervals next week. We have also changed the tag capacity requirement from 50 to 25. If more tags are needed later, the system may have to use a second anchor or reduce the update rate.

There is also a limitation with the angle measurements. A single anchor can measure direction, but it cannot directly tell how far away the tag is. This means we need to make some assumptions about the tag’s position in the pool. We plan to test at several measured points along different lanes. For now, the main goal is to make sure the system can correctly identify the swimmer’s lane.

We have reinforced the connections to reduce the chance of losing the hardware, and we are keeping recorded data so that software development and testing can continue even without the physical devices.

Design Changes

We changed the CTE tone length from 128 to 160 microseconds after checking the anchor manual, which requires this setting along with a specific beacon format. This did not require any additional hardware, and we updated the design document before testing.

We also reduced the maximum number of supported tags from 50 to 25 because the anchor can only track 25 tags at the full update rate. This is a smaller capacity than originally planned, but it should still be enough for one lane group. If we can get another anchor, we can consider increasing the capacity.

Another change was adding a 2 ms delay between characters when sending commands to the anchor. We found that commands sent too quickly sometimes lost individual characters. In the test, 11 out of 200 commands failed without the delay, while all 200 worked after adding it. This makes the setup process slightly slower but does not affect normal data transmission.

We also added a sealed casing with silica gel to the wearable design to address the condensation found inside the prototype.

Updated Schedule

During week 12 (November 16–22), we plan to work with Matthew on checking the forwarded packets and running the timing tests. We will also test the UART connection between Jeffrey’s Pico and the development board. On the software side, we need to get the web app and firmware running on the Raspberry Pi and test the updated stroke detection algorithm using a new swimming session. We also plan to complete the first half of the angle accuracy test and build and test the sealed casing.

During week 13 (November 23–29), we will bring up the PCB once it arrives. Pool testing is planned for Monday through Wednesday, including angle accuracy out to 25 m, lane discrimination, packet loss, and latency. We will then focus on final integration and the report. Since Thanksgiving is on November 26, we are not planning project work from Thursday through Sunday.

Verification and Validation

Each subsystem is responsible for testing its own technical requirements, as described in the individual subsystem reports. In addition, we need to test the complete system to make sure it works for the actual swimming use case.

For stroke counting, we will test all four stroke types in the pool and compare the system’s results with laps counted by hand. We will calculate the accuracy for each lap and the average accuracy for each stroke type. The final test will use sessions that were not used to adjust the algorithm. The target is at least 85% accuracy.

For position accuracy and lane discrimination, we will place the tag at points measured with a tape along several lanes, with test distances up to 25 m. We will calculate the position error at each point, along with the mean and 95th percentile error, and check how often the system identifies the correct lane. The position error should stay below 1.07 m.

We will also check timing accuracy by recording wall touches and comparing the actual times from the video with the timestamps shown on the dashboard. We plan to test at least 20 touches and calculate the error for each one, including the average and worst-case error. The target is less than 110 ms. For end-to-end latency, we will record the tag event and dashboard update in the same video and repeat the test at least 20 times. We will calculate the median and 95th percentile latency, which should both stay below 1 second.

To test capacity, we will use real tags along with replayed traffic to simulate 25 tags sending data through the Raspberry Pi and web app. We will check packet loss and latency as the number of tags increases. The system should keep packet loss below 5% and latency below 1 second.

Battery life will be tested by running the wearable PCB from a full charge until shutdown. If needed, we will also measure the average current consumption and use it to estimate battery life. The target is at least 4 hours. Finally, we will check the device’s weight, strap pressure, and waterproofing. This includes weighing the complete device, calculating the pressure from the strap, and checking for water inside after shock and water exposure tests. The device should weigh no more than 55 g, the strap pressure should stay below 9.5 kPa, and there should be no water inside the casing.

For each test, we will record the actual results and the number of samples. If something does not meet the requirement, we will first try a simple change, such as adjusting the advertising interval, changing the stroke detection thresholds, or moving the anchor to a better position.

Haowen’s Weekly Status Report (Week 11)

What I Accomplished This Week

UART frame receiver. I wrote a C module to receive and parse Jeffrey’s UART packet format, including sync bytes, length, packet data, and CRC-16. I also tested it on my laptop without needing the Pico. The CRC values matched Jeffrey’s implementation: 0x29B1 for the standard test string and 0x369B for his test frame. All nine automated tests passed, covering garbage data before a frame, invalid lengths, back-to-back frames, minimum and maximum packet sizes, and a stress test with 1,000 frames. I also wrote send_frames.py to generate test data and simulate the Pico.

Firmware v3. I updated the tag firmware to read UART frames, discard invalid ones, and put valid packets into the periodic advertising data. The payload can carry up to 88 bytes, which is within the anchor’s 255-byte limit. The 160-microsecond CTE continues running while the tag sends the data. I also added two LEDs to help check the receiver’s status. After flashing the firmware, I sent 20 frames per second from my laptop. The first LED flashed continuously, while the second stayed off. When I introduced bad frames and random bytes, the second LED started flickering, confirming that the firmware was detecting bad frames.

Pin selection. While checking the board files, I noticed that my original pin choice was shared with the radio’s antenna switch and SPI. I changed it to the board’s built-in Arduino serial port on D0.

Firmware v3.1. I made the tag ID and advertising interval configurable through build settings. I also built the versions needed for next week’s tests, with intervals of 50, 30, and 25 ms. The serial log confirms that the test build uses tag ID 000000000002 and a 30 ms interval.

I also collected the test outputs, build logs, LED test video, serial log, and pin analysis, and updated the firmware notes. The build uses about 20% of flash and 15% of RAM.

I spent approximately 16 hours on the project this week.

Is My Progress on Schedule?

The firmware work and everything I could test independently are done. The IMU test and power measurements are also still pending because I don’t have access to an IMU board or a current meter yet.

Verification

The signal subsystem needs to meet several requirements from our design review. The average angle error should be no more than 2.45 degrees, with a standard deviation of no more than 0.8 degrees, to keep the lane position error below 1.07 m. The system should also receive packets reliably at distances up to 25 m in line of sight, keep packet loss below 5%, maintain end-to-end latency under 1 second, and allow the tag to run for at least 4 hours on a 150 mAh battery.

So far, I have completed several initial tests. For the anchor command link, I found that the anchor occasionally missed individual characters in incoming commands. In the first test, 11 out of 200 commands failed. After adding a 2 ms delay between characters, all 200 commands were received correctly. I still need to run a longer test with 1,000 commands to make sure this is consistent. I also tested the tag-to-anchor link. During the first live test, the anchor received about 92% of the tag’s transmissions, at a rate of roughly 18 packets per second. The reported angle also changed smoothly as I moved the tag. For the packet receiver, all nine automated tests using Jeffrey’s test frame passed. I also tested the firmware with 20 generated frames per second. When I introduced damaged frames, the receiver rejected them instead of forwarding them to the anchor.

The next step is to collect enough data to check the angle accuracy. I plan to test 28 fixed positions, covering angles from -60 to +60 degrees and distances of 5, 10, 15, and 25 m, with 500 samples at each position. I will measure the positions with a tape and compare the reported angles with the actual angles. For each position, I will calculate the mean error, standard deviation, maximum error, and percentage of samples within 2.45 degrees. I will also calculate the overall mean absolute error. Before collecting the data, I will calibrate out any fixed angle offset at 0 degrees. The target is a mean absolute error of no more than 2.45 degrees and a standard deviation of no more than 0.8 degrees. I will also convert the angle error into sideways position error using distance × tan(angle error) and check whether it stays below 1.07 m, which is half a lane width, including at 25 m.

For packet loss, I will use the packet counter to identify transmissions that never reach the anchor. I plan to test advertising intervals of 50, 30, and 25 ms, followed by 10-minute runs. The target is to keep packet loss below 5%. Since each packet is sent twice, the expected loss would be around 0.6% if the two transmission failures are independent. However, I still need to check whether packet losses actually occur independently rather than assuming that they do.

I also need to test the system at different distances, up to 25 m, and check how it performs near the pool with a moving tag and water splashing. I will record the reception rate, packet loss, and RSSI at each distance. For the enclosure test, I will compare the tag in three conditions: without a cover, inside a plastic bag, and taped to the forearm. The tests will be done at a fixed distance of 1 m. I will compare RSSI, the number of received events per second, and angle variation to see whether the enclosure or the position on the body affects performance. Both tests should meet the packet loss and angle accuracy requirements.

For latency, I plan to record the tag event and the corresponding dashboard update on video and repeat this for 20 events. I will measure the time between the two and report both the median and worst-case latency. The requirement is to stay below 1 second. For battery life, I will measure the tag’s average current consumption if I can borrow a current meter. If the meter is unavailable, I will use the datasheet values to make an estimate. The calculation will use 80% of the 150 mAh battery capacity as usable capacity, divided by the average current. The target is at least 4 hours of operation.

Finally, I will test multiple tags and check the anchor’s current limit of 25 tags. I will record whether the anchor can receive the angle data from each tag and how long it takes to switch between tags. The results will also help determine whether the tag-count requirement needs to be updated.

If any test does not meet its target, I will first try changes that are relatively easy to make. For example, I can reduce the advertising interval if packet loss is too high, adjust the anchor position or recalibrate if the angle error is too large, and make the enclosure thinner or change its position if it affects reception. I will record the number of samples and actual results for each test so that the conclusions are supported by the measurements.

Deliverables for Next Week

  1. Testing with Matthew: Verify that forwarded packets reach the anchor with a valid CRC, including both normal and stress tests. Run timing tests at 50, 30, and 25 ms, check the angle at 1 m, and test the enclosure.
  2. Testing with Jeffrey: Connect the Pico to the DK and verify the complete UART data path, with his Raspberry Pi reading the data from the anchor.
  3. Accuracy testing: Complete the first part of the test at 5 m and 10 m.

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.

Jeffrey’s Status Report for 11/14/2026

This week I did work on several systems to made progress towards full system integration.

On the Pico prototype, I rebuilt the IMU to Pico connection and changed the code to retry connections based on reliability issues encountered during real-world testing. The system would sometimes stall, which was found to be caused by the ground losing connection to the pin on the Pico. I fixed that by resoldering all the connections and making the code send retries to connect to the IMU. With the reliability improvements, that allowed us to conduct real-world testing with the prototype device. With Matthew’s help doing the swimming, we tested in the CUC pool all four stroke types, while I was manually counting strokes for accuracy. The results from the recorded data is pictured below. With the more accurate conditions of the pool, it seemed that the algorithm recorded almost exactly double the amount of strokes, which is due to the change in motion when the arm is in the air versus the water. The previous testing on land did not account for that effect, so I am in the process of improving the stroke detection to account for that.

On the Raspberry Pi firmware side, I also made significant progress with the firmware and system integration. Having received the format of antenna messages from Haowen, I implemented the code that will receive the antenna data, separate that into IMU data and AoA data, convert the AoA data into position/lane in the pool, perform filtering to remove noise, and impelment the EkF to fill in gaps about the swimmer’s position/velocity. All methods were verified with testbenches that was fed our real session data. I am in the process of implementing the Pi’s connection to Matthew’s web portal.

I am currently on schedule with my tasks. Most of the initial development is done, leaving the rest of the semester as time to perform and smooth out the integration of our separate subsystems, as well as iterate on the code/processes to improve accuracy metrics. Next week, I will attempt to have the web app running on the Pi as well as the firmware (development was done on a separate computer) running on the Pi. With a successful swim session, I will also attempt to get the stroke detection accuracy closer to the real recorded numbers. And depending on when our team can meet, I may help with establishing the wireless connection from tag to anchor.

So far, the tests that I have run have been primarily related to stroke detection. With Matthew’s help, we have conducted numerous trials consisting of the wearer performing a certain number of strokes and making sure that the outputted number on the code reflects the number actually performed. Additionally, we introduced other motion into the IMU readings, such as by bumping the wearable, to ensure that motion that is not a stroke gets filtered out properly. Most of our dry land tests were correct with about 1/2 extra strokes that may have been caused by my handing the wearable over or relation motions that were not 100% filtered out. After that, as mentioned previously, we conducted a real-world test in the swimming pool. During the test, Matthew performed a variety of stroke types (IM, butterfly, backstroke, breathstroke, freestyle). For every lap done, I manually recorded the type of stroke and the number of strokes performing during the lap. With the raw data on hand, I will then tune the stroke detection algorithm to improve accuracy to the real numbers. Within the data, there are gyroscopic peaks showing every stroke as well as turns that leave a different motion signature. From there, I can tune the algorithm to better fit the training data we recorded. Our stroke count accuracy goal was stated at 85%, which can be verified by comparing the recorded stroke count to the count produced by the code.

In terms of future tests, we plan on conducting more real-world testing. We can use those to not only test out the revised stroke detection algorithm on new data (better reflecting the algorithm’s true accuracy), as well as test other aspects of my code that haven’t been fully implemented with other parts yet. Stroke detection will be tested the same way in the future as previously mentioned. Once implemented, we can also test the positioning accuracy, which depends on both the Pi’s firmware and the antenna setup accuracy. That can be tested in the pool by measuring certain distances along the lane and comparing the measurements to what is read on the Pi. A variety of lanes can be tested. Those tests will tell us whether we have met the 1.07m position accuracy. Testing of the 110ms timing, 1s latency and 25 device throughput requirements are affected by my system, but will be tested as a team since they involve all of our systems.

Additionally, all of my firmware I wrote (on the Pico and the Pi) has been verified using testbenches. Initially, the testbenches were fed simulated data to make sure that each individual step produced an expected outcome. Afterward, simulated data was fed to the end-to-end firmware dataflow to produce expected outcomes. Finally, the firmware was run using recorded measurements from our test sessions to verify functionality. In doing so, I confirmed the functionality of my code (pre-integration in an ideal environment).

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 

Team Status Report for 11/7/2026

This week, our team made progress towards continuing to integrate our system and working towards our interim working product. Haowen worked primarily on wireless firmware, Jeffrey worked on the compute firmware for the Pico/Raspberry Pi anchor, and Matthew worked on the PCB wearable used in our final product.

At this point, we are close to achieving a minimum viable product. The biggest risks will therefore be the unexpected challenges we encounter during integration, as well as the accuracy of the metrics we are able to measure. Specifically, some measurements such as wall detection, latency and AoA are still untested untill we have a systemwide integration. We are meeting on Sunday (Tomorrow) to work on systemwide integration, where we are hoping to establish a wireless connection between the wearable and antenna/anchor.

To address risks, In the short term, we have allocated significant time during the day tomorrow to account/derisk for integration challenges/hiccups. In the longer term, we plan to move ahead our integration time line to prioritize the cohesive system, while deprioritizing some lower-risk miscellaneous tasks. However we are still sticking to our relative schedule in terms of major tasks/deadlines. To address the risk relating to accuracy, we plan to do more extensive real-world testing after we are ready for our interim demo. The limited testing we have done with stroke count gives us an okay baseline accuracy, which will only get better with testing reflecting more realistic conditions. And once we have our rough integration ready, we should have a baseline working system that will allow us to make optimizations in parellel, reducing any risk of one dependency holding us up. In addition, Matthew’s prioritizing the PCB development helps derisk us from the PCB bringup risk identified in previous weeks.

Although some smaller tasks have shifted around, our overall schedule in terms of major goals has not changed.